You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to stream audio from a remote source such as when using Amazon Polly or Eleven Labs?
There are currently ways to download a full audio file and play it via gr.Audio or an HTML embed, but in streaming demos/applications (real time translation, chatbots) it would be useful to be able to play sound from a streaming remote server rather than waiting to download the whole file.
The text was updated successfully, but these errors were encountered:
Thanks for your question @arjunbansal. Yes, this should be possible. It kind of depends on your streaming setup, but you could write a generator function and keep yield-ing the output audio file to an Audio output component. See iterative outputs: https://gradio.app/key-features/#iterative-outputs
By the way, for general questions like this (that are not feature requests or bug reports), please ask in GitHub Discussions or our Discord. (I'll close this issue)
related: Request for streaming audio output component #1775
Is there a way to stream audio from a remote source such as when using Amazon Polly or Eleven Labs?
There are currently ways to download a full audio file and play it via
gr.Audio
or an HTML embed, but in streaming demos/applications (real time translation, chatbots) it would be useful to be able to play sound from a streaming remote server rather than waiting to download the whole file.The text was updated successfully, but these errors were encountered: