Spaces:
Running
Running
Commit
·
33e4e84
1
Parent(s):
be50aa8
Update statics JS voice handler
Browse files- statics/script.js +1 -1
statics/script.js
CHANGED
@@ -42,7 +42,7 @@ async function initMedia() {
|
|
42 |
answerEl.textContent = "";
|
43 |
|
44 |
try {
|
45 |
-
const res = await fetch("
|
46 |
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
47 |
const data = await res.json();
|
48 |
|
|
|
42 |
answerEl.textContent = "";
|
43 |
|
44 |
try {
|
45 |
+
const res = await fetch("/voice-transcribe", { method: "POST", body: form });
|
46 |
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
47 |
const data = await res.json();
|
48 |
|