Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
357 views
in Technique[技术] by (71.8m points)

node.js - How to send data from RecordRTC to Vosk for Speech-to-text

I am using a Vosk server for speech-to-text conversion. I send the audio/wav blob data obtained using this method

recorder.stopRecording(function() {
    var blob = this.blob;

    // below one is recommended
    var blob = this.getBlob();
});

from RecordRTC(https://recordrtc.org/RecordRTC.html) at 16000 samples with LINEAR16 encoding to the Vosk WebSocket server(https://github.com/alphacep/vosk-server/blob/master/websocket/asr_server.py). The server works with the test16k.wav file that ships with Vosk-server for testing but returns an empty detection response for my audio data. What would be the correct way to send data to Vosk?

question from:https://stackoverflow.com/questions/65878149/how-to-send-data-from-recordrtc-to-vosk-for-speech-to-text

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...