Skip to content

Commit 1dbbc62

Browse files
exzosexzos
authored andcommitted
docs: update README.md
1 parent 8869b3c commit 1dbbc62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ export default function AudioWaveform() {
6161

6262
const analyzeAudio = useCallback(async () => {
6363
try {
64-
const result = computeAmplitude(
65-
'/path/to/your/audio.mp3',
66-
1000 // Number of amplitude samples to generate
64+
const path = await load(
65+
'https://file-examples.com/storage/fe180a8b03688f5559b9baf/2017/11/file_example_MP3_1MG.mp3'
6766
);
67+
const result = computeAmplitude(path, 100);
6868
setAmplitudeData(result);
6969
} catch (error) {
7070
console.error('Error analyzing audio:', error);

0 commit comments

Comments
 (0)