来自命令行的 ms 语音 [英] ms speech from command line
本文介绍了来自命令行的 ms 语音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从命令行使用 MS Speech 实用程序?我可以在 Mac 上执行此操作,但在 Windows XP 上找不到任何参考.
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.
推荐答案
我的 2 cents on the topic, command line one-liners:
My 2 cents on the topic, command line one-liners:
在 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) 使用原生 spd-say
spd-say "hello"
在任何其他 Linux 上
on any other Linux
- 请参阅如何使用命令行进行文本转语音输出?
- 命令行功能使用谷歌TTS (wget 到 mp3->mplayer)
- 使用谷歌的命令直接使用mplayer:
/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"
;
- refer to How to text-to-speech output using command-line?
- commandline function using google TTS (wget to mp3->mplayer)
- command using google 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-Red
on Raspberry Pi, Win, OSX (or any remote) using Node-Red
npm i node-red-contrib-sysmessage
这篇关于来自命令行的 ms 语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文