Skip to content

Custom text-to-speech project using azure cognition AI

Notifications You must be signed in to change notification settings

dev81log/Text-to-Speech-Azure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asher_Duarte_Microsoft CognitiveServices Speech_182ed9d7-987d-4044-8cf1-5deab11cbbe9 (1)

Speech Synthesis Example

This is an example of how to use the Microsoft Cognitive Services Speech library for speech synthesis. The application accepts text input and then uses the Text-to-Speech API to generate an audio file that is saved to a specified location.

Getting Started

  1. Replace YourSubscriptionKey and YourServiceRegion with your own subscription key and service region values.
  2. Replace "file.wav" in AudioConfig.FromWavFileOutput("file.wav") with the desired file output format and directory save path.
  3. Replace "string that you want to speak" with the text you want to be spoken.
  4. Replace pt-BR-FranciscaNeural with the language of the voice you want to use.

Note

Make sure you have the Microsoft.CognitiveServices.Speech package installed.

Output

The program will output the synthesized speech and save the audio to the specified file path.

About

Custom text-to-speech project using azure cognition AI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages