mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2023-11-04 02:52:44 +03:00
Update README.md and finalize the whisper.wasm example
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<br>
|
||||
|
||||
<!-- textarea with height filling the rest of the page -->
|
||||
<textarea id="output" rows="20"></textarea>
|
||||
@@ -254,6 +254,10 @@
|
||||
return new type(buffer);
|
||||
}
|
||||
|
||||
//
|
||||
// load model
|
||||
//
|
||||
|
||||
function loadFile(event, fname) {
|
||||
var file = event.target.files[0] || null;
|
||||
if (file == null) {
|
||||
@@ -281,6 +285,10 @@
|
||||
reader.readAsArrayBuffer(file);
|
||||
}
|
||||
|
||||
//
|
||||
// audio file
|
||||
//
|
||||
|
||||
function loadAudio(event) {
|
||||
if (!context) {
|
||||
context = new AudioContext({sampleRate: 16000});
|
||||
@@ -327,7 +335,7 @@
|
||||
}
|
||||
|
||||
//
|
||||
// Microphone
|
||||
// microphone
|
||||
//
|
||||
|
||||
var mediaRecorder = null;
|
||||
|
||||
Reference in New Issue
Block a user