在Mac中,我们可以使用类似RunTime.getRunTime()。exe(“ Say \ hello world \”);为了使我们的Java程序使用say命令说出字符串,在Windows中有没有办法做类似的事情?在此先感谢您。我环顾四周,却找不到有关如何使用Java进行此操作的任何信息。
好像他们在github上放置了样本来回答这个问题。
https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/quickstart/java/jre/text-to-speech
https://github.com/Azure-Samples/cognitive-services-speech-sdk