Skip to content

Commit

Permalink
Merge pull request huggingface#21 from xenova/whisper
Browse files Browse the repository at this point in the history
[whisper] Add support for audio clips > 30 seconds
  • Loading branch information
xenova authored Mar 17, 2023
2 parents 4c6e9d2 + 6b48e6c commit 9c3c29d
Show file tree
Hide file tree
Showing 13 changed files with 1,139 additions and 94 deletions.
Binary file added assets/audio/ted_60.wav
Binary file not shown.
4 changes: 4 additions & 0 deletions assets/js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ async function speech_to_text(data) {
data: decodedText.trim()
});
}
}, {
// Choose good defaults for the demo
chunk_length_s: 30,
stride_length_s: 5,
})
}

Expand Down
Loading

0 comments on commit 9c3c29d

Please sign in to comment.