Using the ElevenLabs API for text to speech streaming?

Hello how can I use the ElevenLabs API for realtime text-to-speech streaming output with Gradio please?

Many thanks

Hi @ethantan !

This gradio demo uses a different streaming api but I imagine you can adept it to your use case.

Cc @ysharma

Thanks Freddy - it’s text streaming rather than audio but will give it a go!

Hi @freddyaboulton I can’t figure out how to play a stream of audio - would appreciate any help!

I’m off today - will check back tomorrow!