Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is that possible using TTS in a streaming way? Text to speech continuously?

The questions refers is possible to get the text and already building the audio output in a streaming way? In STT we have some streaming functions but I can't find one in the TTS Google documentation.

1 5 8,675
5 REPLIES 5

Hi @luizcalaca

Welcome and thank you for reaching out to our community.

I get that you wanted to utilize our Text-to-Speech service in a streaming manner but for now this is not possible for TTS alone. You may need to study and integrate multiple APIs to achieve this use case.

Let me share with you some useful resources to assist with your research.

Another option is to submit this as an issue or feature request or you can also reach out to Cloud Text-to-Speech support for better assistance.

 

it's 2024 and yet this api doesn't allow streaming. what the heck lol

TextToSpeechLongAudioSynthesize can you help me to use it , please provide me a complete sample code.

Hi @lsolatorio 

What do you suggest in June 9, 2024?

Check out this Typescript example using the new StreamingSynthesize method:

https://gist.github.com/qtangs/adda94fa7c1a273b3dc1010e705550c3