GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.32k stars 1.75k forks source link

Provide example code for texttospeech streaming synthesis #4426

Open chrbsg opened 1 month ago

chrbsg commented 1 month ago

There is no existing sample code that demonstrates use of StreamingSynthesize for input-streaming TTS. It would be great if this could be available at https://cloud.google.com/text-to-speech/docs/samples/tts-quickstart

Code should document that there is no way to configure audio output. Only LINEAR16 audio with a sample rate of 24000Hz is available.

Code should document that most text-to-speech voices will not work - only Journey voices are supported by streaming synthesis.

(originally reported as google-cloud-go issue #10955)