gpt4 book ai didi

cmd - 来自命令行的 ms 语音

转载 作者:行者123 更新时间:2023-12-03 09:36:44 30 4
gpt4 key购买 nike

有没有办法从命令行使用 MS Speech 实用程序?我可以在 Mac 上完成,但在 Windows XP 上找不到任何引用。

最佳答案

我在这个主题上的 2 美分,命令行单行:

  • 在 Win 上使用 PowerShell.exe
      PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('hello');"
  • 在 Win 上使用 mshta.exe
      mshta vbscript:Execute("CreateObject(""SAPI.SpVoice"").Speak(""Hello"")(window.close)")
  • 在 OSX 上使用 say
      say "hello"
  • Ubuntu 桌面 (>=2015) 使用 native spd-say
      spd-say "hello"
  • 在任何其他 Linux 上
  • 引用 How to text-to-speech output using command-line?
  • 命令行函数using google TTS (wget 到 mp3->mplayer)
  • 使用谷歌命令 with mplayer directly :
  • /usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&q=Hello%20World&tl=en" ;


  • 在 Raspberry Pi、Win、OSX(或任何远程)上使用 Node-Rednpm i node-red-contrib-sysmessage
  • 关于cmd - 来自命令行的 ms 语音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1040655/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com