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
But I do not see speechsdk.SpeechSynthesisRequestInputType.TextStream in this library. How do achieve text streaming using this library?
Version
1.36.0 (Latest)
What browser/platform are you seeing the problem on?
Node, browsers, reactjs
Relevant log output
Key steps
Create a text stream request: Use speechsdk.SpeechSynthesisRequestInputType.TextStream to initiate a text stream.
Set global properties: Adjust settings such as output format and voice name directly, as the feature handles partial text inputs and doesn't support SSML. Refer to the following sample code for instructions on how to set them. OpenAI text to speech voices aren't supported by the text streaming feature. See this language table for full language support.
Python
Copy
# set a voice name
speech_config.speech_synthesis_voice_name = "en-US-AvaMultilingualNeural"
Stream your text: For each text chunk generated from a GPT model, use request.input_stream.write(text) to send the text to the stream.
Close the stream: Once the GPT model completes its output, close the stream using request.input_stream.close().
The text was updated successfully, but these errors were encountered:
What happened?
On the API docs, I found https://learn.microsoft.com/en-au/azure/ai-services/speech-service/how-to-lower-speech-synthesis-latency?pivots=programming-language-python#text-streaming
But I do not see
speechsdk.SpeechSynthesisRequestInputType.TextStream
in this library. How do achieve text streaming using this library?Version
1.36.0 (Latest)
What browser/platform are you seeing the problem on?
Node, browsers, reactjs
Relevant log output
The text was updated successfully, but these errors were encountered: