deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
127 stars 45 forks source link

getFunction for _socket WebSocket in LiveClient for live transcription with twilio #289

Open Rajan-Gupta1 opened 1 month ago

Rajan-Gupta1 commented 1 month ago

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 1 month ago

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 1 month ago

Awesome Thank You.