Are you using someone else’s idea of a typescript library for interacting with realtime? It may have hard-coded allowed values of the past. The same fault as OpenAI’s library - immediately obsolete forever by trying to validate inputs.
You cannot change a voice once a session has been initiated. It is likely equivalent to an initial prompt injection to make the AI follow the response pattern.
You can easily circumvent this by coercing the type.
type asdf = "abc" | "def";
const a = "abcd" as asdf;
No fault here. It’s now very easy to know that asdf has been prepared to use a subset of strings, instead of crossing fingers. This is just a very simplified enum.
That what I thought it would be, just wanted Jeff to confirm. Unfortunately, that’s just one turn of the conversation, so the API is still very expensive. Usually an entire call costs that much using Deepgram/GPT4o. I would estimate the cost to be about 10x more than our current solution.
one doubt I have, when I checked their documentation, and in their playground, I’m able to see the cached tokens as you shared. But when I check it in code, I’m using webRTC connection to use it, there I can’t see anything, only thing I see is input and output tokens, not even categorized if they are of audio or text. Can anyone help me on this, finding what even I’m missing