Windowsでは、次の手順を実行できます。
1. Open Notepad
2. Copy and Paste
CreateObject("SAPI.SpVoice").Speak"Hello."
3. Save it as xyz.vbs
4. Run it/Open it
その後、「こんにちは」と話します。Ubuntuにこのようなものはありますか?
パッケージをインストールします。次に、ターミナルで実行しますespeak
espeak -v en "Hello"
声を変えるには、マンページを参照してください。からの抜粋man espeak
:
--voices[=<language code>]
Lists the available voices. If =<language code> is present then only
those voices which are suitable for that language are listed.
-v <voice name>
Use voice file of this name from espeak-data/voices
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加