ms speech from command line

前端 未结 7 1751
遥遥无期
遥遥无期 2020-12-02 11:23

Is there a way to use the MS Speech utility from command line? I can do it on a mac, but can\'t find any reference to it on Windows XP.

7条回答
  •  离开以前
    2020-12-02 11:47

    There's also Balabolca: http://www.cross-plus-a.com/bconsole.htm It has a command line tool balcon.exe. You can use it like this:

    1. List voices:

      balcon.exe -l
      
    2. Speak file:

      balcon.exe -n "IVONA 2 Jennifer" -f file.txt
      
    3. Speak from the command-line:

      balcon.exe -n "IVONA 2 Jennifer" -t "hello there"
      

    More command line options are available. I tried it on Ubuntu with SAPI5 installed in Wine. It works just fine.

提交回复
热议问题