I am using the openai transcribe-->openai realt...
# agents
s
I am using the openai transcribe-->openai realtime api 4o--> elevenlabs pipeline, but the latency is about 3-4 seconds, I was wondering if there are anything I can do to improve the latency
d
Hello @steep-cpu-95589, May I ask why are you adding openai transcribe and elevenlabs pipeline at the top of a realtime model ? The openai realtime model should already publish transcription into the room so I am not sure that you need to add transcription in the first place. Latency likely comes from openai realtime -> eleven labs. You could just remove eleven labs since the realtime model already provides speech output except if you do not like the voice.
In that case using Realtime model might not be relevant except if you force text output and in that case you lose all the realtime advantages since you have to convert the text output to speech anyway. Basically if you want to build a voice-pipeline it might be preferable not to use the realtime model but a regular one like gpt-4o and just try to tune the other parameters
s
I use elevenlabs because it has better voice. OpenAI only has limited type of voice with an American accent. Also, we need to have text output from LLM for some downstream tasks.
d
In that case maybe you should try a regular voice pipeline. Realtime is designed for Speech to Speech.