Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我了解 SpeechSynthesizer (System.Speech.dll) 可用于将文本转换为语音。我正在开发一个需要能够将文本保存为 mp3 和 wav 文件的应用程序。
这可能使用WPF吗?
我相信您应该可以通过SpeechSynthesizer::SetOutputToWaveFile轻松保存到 WAV 文件。我认为 .NET 中没有内置支持转换为 MP3,但是一旦您将音频数据作为 WAV ,这应该在 3rd 方库/实用程序(如LAME )的帮助下很简单。