Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for websocket server to start_speech_recog #80

Closed
MayamaTakeshi opened this issue Mar 7, 2024 · 0 comments
Closed

Add support for websocket server to start_speech_recog #80

MayamaTakeshi opened this issue Mar 7, 2024 · 0 comments

Comments

@MayamaTakeshi
Copy link
Owner

MayamaTakeshi commented Mar 7, 2024

Similar to #79.
We could implement support for example to local whisper transcription but I usually run sip-lab in low-end VMs with limited resources.
Instead we can just establish a WebSocket connection to Speech Server and stream audio to it. Then we can use any STT engine like gsr, whisper etc.

The function call would be like this:

sip.call.start_speech_recog(call_id, {
  server_url: 'ws://127.0.0.1/speech_recog',
  engine: 'whisper',
  language: 'en-US',
  media_id: 0,  //optional
})
MayamaTakeshi added a commit that referenced this issue Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant