Spaces:
Sleeping
Sleeping
Update static/js/script.js
Browse files- static/js/script.js +3 -2
static/js/script.js
CHANGED
@@ -3,7 +3,7 @@ let mediaRecorder;
|
|
3 |
let recordedChunks = [];
|
4 |
|
5 |
// Handles the recording button click event
|
6 |
-
document.getElementById('recordButton').addEventListener('click',
|
7 |
if (!isRecording) {
|
8 |
startRecording();
|
9 |
} else {
|
@@ -60,7 +60,8 @@ function transcribeAudio(blob) {
|
|
60 |
const formData = new FormData();
|
61 |
formData.append('audio', blob, 'audio.webm');
|
62 |
|
63 |
-
fetch('https://tri4-semalab.hf.space/transcribe', { //
|
|
|
64 |
method: 'POST',
|
65 |
body: formData
|
66 |
})
|
|
|
3 |
let recordedChunks = [];
|
4 |
|
5 |
// Handles the recording button click event
|
6 |
+
document.getElementById('recordButton').addEventListener('click', function () {
|
7 |
if (!isRecording) {
|
8 |
startRecording();
|
9 |
} else {
|
|
|
60 |
const formData = new FormData();
|
61 |
formData.append('audio', blob, 'audio.webm');
|
62 |
|
63 |
+
//fetch('https://tri4-semalab.hf.space/transcribe', { // https://jikoni-semabox.hf.space/transcribe
|
64 |
+
fetch('https://jikoni-semabox.hf.space/transcribe', { // https://tri4-semalab.hf.space/transcribe
|
65 |
method: 'POST',
|
66 |
body: formData
|
67 |
})
|