Real Time transcription of Twilio call: transaction_key":"deprecated" #157
-
I'm trying to get the transcription of inbound payload from Twilio Voice call. My code is heavily inspired by this blog post https://blog.deepgram.com/deepgram-twilio-streaming/
In this file I'm opening Websocket connection to Deepgram:
This is the data that I'm sending to Deepgram: But this is the response I get from Deepgram: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This line:
is creating an Can you try removing that line, and then doing this for the send:
(or whatever the logical equivalent of the above line is, if I'm not massaging types quite correctly there) |
Beta Was this translation helpful? Give feedback.
While the above advice is reasonable, I think it may not be the core issue - I tried out snippets of the code, and the
websocket-client
library is doing something interesting here.the line:
will send the payload as a text websocket message. When I use it to send some audio to Deepgram, it prints in my terminal something like:
it is sending the binary as text (opcode=1) (also one can see that I'm sending a containerized WAV file in this example...)
If I instead do:
I get the following output: