Michael Rea
Michael Rea8mo ago

How to approach Streaming Audio

https://docs.play.ht/reference/integrating-with-chatgpt So I'm wanting to use Play.ai text to speech where you can stream text results from an LLM like chatGPT and stream the audio back to the client. I'm having trouble conceptualising how I could even do this in convex if at all. My LLM logic and RAG is all happening in convex logic. Is it even possible to pipe a audio-stream back to the browser from a convex action? Not sure how to integrate something like this with my existing convex functions. I'm using NextJS. Cheers
PlayHT API
Input and Output Streaming with chatGPT (or any LLM)
Make ChatGPT speak by using PlayHT text-to-speech APIs
1 Reply
Michael Rea
Michael ReaOP8mo ago
Could this be done somehow with HTTP actions?

Did you find this page helpful?