; ; HSPVOICEVOXプラグインによる音声読み上げ ; 「VOICEVOX:ずんだもん」のボイスを使用します ; #use hspvoicevox #vatstr vvversion, vvmetas ; voicevoxの初期化 mes "初期化を開始します" voicevoxinit : res=stat if res : dialog "voicevoxの初期化に失敗しました。終了します。("+stat+")" : end voicevoxgetversion vvversion mes "version="+vvversion voicevoxload 3 ; ずんだもん:ノーマル if stat : goto *vverror mes "準備を完了しました" voicevoxmmload "こんにちは、ずんだもんなのだ。", 3, 0 if stat : goto *vverror mes "再生を開始します" mmplay 0 stop *vverror errstr="" voicevoxgeterror errstr dialog "voicevoxの呼び出しに失敗しました。終了します。\n("+errstr+")" end