LoginSignup
6
4

More than 3 years have passed since last update.

実行すると任意の文字列を読み上げるPowerShellスクリプト

Posted at

tl;dr

日本語を読み上げさせるときはスクリプトファイルの文字コードを「BOM付きUTF-8」にするとよい。

helloworld.ps1
$sapi = New-Object -com SAPI.SpVoice
$sapi.Speak('こんにちは、世界') | out-null
6
4
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
6
4