ここまでくると、このおしゃべり音声をWAVファイルにできないのか?と思い、ググってみると、こんなサイトがありました。
Windowsバッチで,手軽に日本語テキストを自動読み上げ(Text To Speech)する方法 …WSHでSAPIやSpeech.SpVoiceを使う音声合成の手順とサンプルコード
http://language-and-engineering.hatenablog.jp/entry/20150202/JapaneseTextToSpeechProgramming
以下は上記サイトからの抜粋です。
下記をhoge2.jsとして保存:
var tts = WScript.CreateObject("SAPI.SpVoice"); var stream = WScript.CreateObject("SAPI.SpFileStream");
// ストリームを開いて stream.open( "fuga.wav", 3 );
tts.AudioOutputStream = stream;
// しゃべる(WAVに書き込みされる) tts.Speak("Hello world! Konnichiwa!"); tts.Speak("I think that that that that that boy wrote is wrong."); // 英語の早口言葉
// ストリームを閉じる stream.close();
|