1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

音声合成で しゃべらせる バッチファイル

Last updated at Posted at 2020-10-29

とりあえず しゃべらせる。
以下のファイルをダブルクリックで実行。
文字化けするときは UTF-8 じゃなく Shift-JIS (ANSI) で保存。
(Windows10, Window7 等)

talk.bat


@echo off

PowerShell -Command "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('生麦 生米 生卵');"

call :_sp "生麦"
call :_sp "生米"
call :_sp "生玉子"

pause
goto :eof


:_sp
echo %~1
PowerShell -Command "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('%~1');"
goto :eof

しゃべらない? なら、
マイクロソフトスピーチプラットフォームをインストール。

 x86_SpeechPlatformRuntime¥SpeechPlatformRuntime.msi
  または
 x64_SpeechPlatformRuntime¥SpeechPlatformRuntime.msi

日本語を追加

 MSSpeech_SR_ja-JP_TELE.msi
 MSSpeech_TTS_ja-JP_Haruka.msi

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?