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?

https://api.elevenlabs.io/docs#/text-to-speech/Text_to_speech_v1_text_to_speech__voice_id__stream_post

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!