Provide guidance on creating a header for streaming_synthesize
in streaming_tts_quickstart.py
#13080
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
triage me
I really want to be triaged.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
From googleapis/google-cloud-python#13405, the response to
streaming_synthesize
isheaderless LINEAR16 audio with a sample rate of 24000.
. The code sample below prints the size of the audio content but does not include the necessary header to actually play the audio.python-docs-samples/texttospeech/snippets/streaming_tts_quickstart.py
Lines 46 to 48 in 5e8e178
This may not be the purpose of the code sample, however having this extra information in the code sample will help with debugging customer issues such as googleapis/google-cloud-python#13405.
I added code which includes the raw audio header, however there is likely an easier way to achieve this. We should provide guidance on how folks should create the audio header.
The text was updated successfully, but these errors were encountered: