C#System.speech.synthesispost处理
C# System.speech.synthesis post processing
有没有什么方法可以在 C# 中对 system.speech.synthesis 的输出应用 post 处理效果(改变速度、音高、音量)。更清楚地说,我正在调用 system.speech.synthesis.SpeechSynthisizer.Speak(String);我想编辑输出。谢谢你的帮助。
您可以使用 属性 Volume 和 Rate
更改音量和速率
static void Main(string[] args)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
// Synchronous
synthesizer.Speak("Hello World");
// Asynchronous
synthesizer.SpeakAsync("Hello World");
}
SpeechSynthesizer let's you set a lot of properties that you mentioned here. What do you mean by post processing effects? Once you call the Speak function, any changes to the Synthesizer will not apply towards the output. You could potentially save the output to file and try to apply additional effects if you wanted. Perhaps us this 合成器上提供的功能。
有没有什么方法可以在 C# 中对 system.speech.synthesis 的输出应用 post 处理效果(改变速度、音高、音量)。更清楚地说,我正在调用 system.speech.synthesis.SpeechSynthisizer.Speak(String);我想编辑输出。谢谢你的帮助。
您可以使用 属性 Volume 和 Rate
更改音量和速率 static void Main(string[] args)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
// Synchronous
synthesizer.Speak("Hello World");
// Asynchronous
synthesizer.SpeakAsync("Hello World");
}
SpeechSynthesizer let's you set a lot of properties that you mentioned here. What do you mean by post processing effects? Once you call the Speak function, any changes to the Synthesizer will not apply towards the output. You could potentially save the output to file and try to apply additional effects if you wanted. Perhaps us this 合成器上提供的功能。