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.
我一直在使用终端中的“说”命令很开心,我想知道是否有可能有一个命令行工具,我在运行时编写“说”它的输出。谢谢!
您可能想使用NSSpeechSynthesizer自己编写的代码。
NSSpeechSynthesizer
当然,语音合成编程指南也是相关阅读。
您可以使用NSTaskCocoa 执行终端命令。
NSTask