alphacep / alphacep/vosk-api

not getting transcribed text

Offen
#1,436 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
15.1k
Forks
1.8k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

i am sending audio blob using mediarecorder to django websocket using this
navigator.mediaDevices.getUserMedia({ audio: true }).then((stream) => {
const mediaRecorder = new MediaRecorder(stream, { mimeType: 'audio/webm' });
const socket = new WebSocket('ws://localhost:8000/ws/transcribe/');

mediaRecorder.addEventListener('dataavailable', async (event) => {
if (event.data.size > 0) {
const audioBlob = await event.data.arrayBuffer();
socket.send(audioBlob);
console.log(audioBlob);
}
}); but i am not able to convert audioBlob to proper vosk supported format tried everything but not able to convert it. Earlier i tried by saving audio and then converting it that works fine but now i am trying to do real time transcription that is not working

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.