Created
August 9, 2014 13:46
-
-
Save mitaken/80add6cde14fd3227796 to your computer and use it in GitHub Desktop.
SAPI.SpVoiceのテスト
This file contains hidden or 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
| Option Explicit | |
| Const PROG_ID = "SAPI.SpVoice" | |
| Dim StrMessage | |
| StrMessage = InputBox("しゃべらす文字", PROG_ID) | |
| If Len(StrMessage) = 0 Then | |
| WScript.Quit | |
| End If | |
| Dim ObjSapi | |
| Set ObjSapi = WScript.CreateObject(PROG_ID) | |
| Call ObjSapi.Speak(StrMessage) | |
| Set ObjSapi = Nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment