Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -305,7 +305,7 @@ async function initMedia() {
|
|
| 305 |
mediaRecorder.onstop = () => {
|
| 306 |
// We process the audio here, and free the previous one, if any
|
| 307 |
console.log('Chunks: ', audioChunks);
|
| 308 |
-
const blob = new Blob(audioChunks, {type: '
|
| 309 |
console.log('Blob: ', blob);
|
| 310 |
// if (audioUrl) window.URL.revokeObjectURL(audioUrl);
|
| 311 |
audioUrl = window.URL.createObjectURL(blob);
|
|
|
|
| 305 |
mediaRecorder.onstop = () => {
|
| 306 |
// We process the audio here, and free the previous one, if any
|
| 307 |
console.log('Chunks: ', audioChunks);
|
| 308 |
+
const blob = new Blob(audioChunks, {type: 'audio/webm'});
|
| 309 |
console.log('Blob: ', blob);
|
| 310 |
// if (audioUrl) window.URL.revokeObjectURL(audioUrl);
|
| 311 |
audioUrl = window.URL.createObjectURL(blob);
|