Text-to-Speech-Azure

所属分类:模式识别(视觉/语音等)
开发工具:C#
文件大小:3KB
下载次数:1
上传日期:2023-01-22 14:00:45
上 传 者sh-1993
说明:  文本到语音Azure,使用Azure认知AI的自定义文本到语音项目
(Text-to-Speech-Azure,Custom text-to-speech project using azure cognition AI)

文件列表:
Program.cs (2418, 2023-01-22)
Speech.csproj (356, 2023-01-22)
global.json (43, 2023-01-22)
obj (0, 2023-01-22)
obj\Debug (0, 2023-01-22)
obj\Debug\net6.0 (0, 2023-01-22)
obj\Debug\net6.0\.NETCoreApp,Version=v6.0.AssemblyAttributes.cs (186, 2023-01-22)
obj\Debug\net6.0\Speech.GlobalUsings.g.cs (287, 2023-01-22)

![Asher_Duarte_Microsoft CognitiveServices Speech_182ed9d7-***7d-4044-8cf1-5deab11cbbe9 (1)](https://user-images.githubusercontent.com/105469529/213919709-07f17e87-c0f9-48df-a366-3a3934e13a16.png) # 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](https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech) installed. ### Output The program will output the synthesized speech and save the audio to the specified file path.

近期下载者

相关文件


收藏者