Azure Speech CLI: How To Set Style?

hendryman 11 Reputation points

I would like to use Neural Voice "Jenny" to speak in the "sad" style. How can I do this from the CLI?

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,272 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,195 questions
{count} vote

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,321 Reputation points Microsoft Employee

    @hendryman The speech cli does not directly support setting the voice styles yet. You can however use the SSML with the required voice and style setting and run the command to get the required output. Here is a similar question that was answered to use the SSML with the speech cli.

    Example: This SSML can be used with speech cli

    <speak xmlns="" xmlns:mstts="" xmlns:emo="" version="1.0" xml:lang="en-US"><voice name="en-US-JennyNeural"><s /><mstts:express-as style="excited"></mstts:express-as><s /></voice></speak>  

    With the command:

    spx synthesize --file file.ssml --audio output ssml.wav  

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    1 person found this answer helpful.
    0 comments No comments