我正在嘗試爲通用應用程序使用語音合成功能。 我看着Microsoft documentation,它說名稱空間是System.Speech.Synthesis。 但是,當我輸入System.Speech.Synthesis
。它說這種言論不被承認。 我在做什麼錯?使用System.Speech.Synthesis時的語音無法識別。
-1
A
回答
0
這裏是一個工作示例:
using System.Speech.Synthesis;
static void Main(string[] args)
{
...
// Speech helper
SpeechSynthesizer reader = new SpeechSynthesizer();
const string msg = "Hello";
Console.WriteLine(msg);
reader.SpeakAsync(msg);
}
此外,還要確保您引用 'System.Speech':
0
您需要添加引用到您的項目。參考資料,右鍵單擊,找到它後添加參考。
如果仍然不起作用,您需要右鍵單擊變量上的.cs文件並解析爲System.Speech。
相關問題
- 1. Microsoft語音無法識別語音
- 2. VOCE無語法語音識別
- 3. 語音識別/識別
- 4. 語音/語音識別 - PhoneGap
- 5. Android:語音識別方法
- 6. 語音識別
- 7. 語音識別
- 8. iOS上的法語語音識別
- 9. 語音識別的簡單語法
- 10. Android語音識別 - 使用語言
- 11. System.Speech.Synthesis安裝替代語言語音
- 12. Win7語音識別 - 通過語音識別用戶?
- 13. 發音識別 - 語音API或算法
- 14. 用於非常簡單的語音/語音識別的算法
- 15. 如何使用Android語音識別來識別短語
- 16. 語音識別算法如何識別同音字?
- 17. 使用語音識別的命令
- 18. 使用Openears框架的語音識別?
- 19. 的Windows 10 - System.Speech.Synthesis不能得到語音
- 20. 語音識別API沒有語法C#
- 21. 語音識別語法問題 - VB.NET
- 22. Java語音識別
- 23. 語音識別,nodeJS
- 24. PHP語音識別?
- 25. 語音識別vb6
- 26. Android語音識別?
- 27. android語音識別
- 28. 語音識別API
- 29. 語音識別API
- 30. JavaScript語音識別
謝謝你,這個工作 – ProgrammingPotato 2014-10-30 17:25:59