Created
September 23, 2018 10:51
-
-
Save katahiromz/23986b96c9145c291da24d8fa9045b95 to your computer and use it in GitHub Desktop.
Speech.vbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Speech.vbs | |
' Copyright (C) 2018 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com> | |
' This file is public domain software. | |
' Usage: cscript Speech.vbs | |
Option Explicit | |
Sub Main | |
Dim SpVoice | |
On Error Resume Next | |
Set SpVoice = WScript.CreateObject("Speech.SpVoice") | |
If Err.Number <> 0 Then | |
Set SpVoice = WScript.CreateObject("SAPI.SpVoice") | |
End If | |
SpVoice.Speak "ピラフさん、こんにちわ" | |
End Sub | |
Main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment