How to use certain voices in speechSDK with one line command

Sabiya 1 Reputation point
2020-06-06T12:28:56.927+00:00

In Azure Cognitive Services, there is a document to choose a voice for test-to-speech with REST API in Microsoft website. Is it possible to choose a voice with one line command to write In the same SpeechSDK sample code?, like this:

Voice name = en-US-GuyNeural

Thank you.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,787 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,914 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,986 Reputation points Microsoft Employee
    2020-06-08T15:38:30.53+00:00

    Hello Sabiya,

    To use the neural voices along with the SDK the samples in this document would be a great start.
    If you are planning to build something along the lines of a UI to select the required voice this github repo provides a simple sample using REST API.

    -Rohit

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.