getFunction for _socket WebSocket in LiveClient for live transcription with twilio
Closed this issue · 3 comments
Rajan-Gupta1 commented
Proposed changes
Provide a get method getW3CWebSocket() to return the URI
Context
To be able to live transcription from a Twilio Live Stream, Twiml
This should avoid setting up a webproxy server as described here https://deepgram.com/learn/deepgram-twilio-streaming for simple cases where one needs to get the transcription, show it to user and then be able to send the complete transcription to OpenAI for summarization
Possible Implementation
public getW3CSocket() {
return this._socket
}
Other information
lukeocodes commented
Check out draft PR #283 which makes the socket connection public. That Twilio blog also predates a ton of improvements we've made
Rajan-Gupta1 commented
Awesome Thank You.
lukeocodes commented
this will be available in the conn
property of the client