alphacep / vosk-server

WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Apache License 2.0
882 stars 243 forks source link

Vanilla javascript websocket with microphone example #171

Closed iprovalo closed 1 year ago

iprovalo commented 2 years ago

Vanilla javascript websocket client using AudioWorklet

iprovalo commented 2 years ago

This example is using a microphone with AudioWorklet interface of the Web Audio API to communicate with vosk server via a websocket.

iprovalo commented 2 years ago

Adding a buffer to the AudioWorkletProcessor to improve the quality of the data transfer and to speed up the recognition.

nshmyrev commented 1 year ago

Amazing, huge thanks!