Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!
I understand your query about the difference between 'speak-text-async' and 'speak_async.
Differences between speak_text_async
and speak_async
in the SpeechSynthesizer class:
speak_text_async:
Purpose: This method is designed specifically for synthesizing speech from plain text strings asynchronously.
Input: Accepts a single text string as input.
Use Case: Ideal for straightforward scenarios where only plain text needs to be converted into speech.
speak_async:
- Purpose: This method provides greater flexibility, allowing you to synthesize speech from a SpeechSynthesisRequest asynchronously.
- Input: Accepts a SpeechSynthesisRequest, which can include additional configuration, such as plain text, SSML (Speech Synthesis Markup Language), or other custom inputs.
- Use Case: Suitable for advanced scenarios that require more control over the input, such as using SSML for fine-tuned speech output.
The speak_async
method is not available in the Java SDK for Azure Speech at this time.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.