API version 17
iOSAndroidWindows
|
説明 |
PauseSpeakingメソッドで中断した発話を再開します。
このメソッドで発話を再開すると、UtteranceStateChangedイベントが発生します。stateはSpeechSynthesizer.UTTERANCE_RESUMEDとなります。
|
|
|
呼出形式 |
synthesizer.ResumeSpeaking()
|
|
|
戻り値 |
なし
|
|
|
引数 |
なし
|
|
|
例外 |
SPEECH-1 |
音声合成機能がロードされていません。 |
|
|
SPEECH-6 |
発話を再開できませんでした。 |
|
|
SPEECH-8 |
発話中断中ではありません。
|
|
使用例 |
Form Form1 {
X = 0;
Y = 0;
Width = 150;
Height = 150;
SpeechSynthesizer synthesizer {
Function OnUtteranceStateChanged(e) {
print("State:" + str(e.state) + " Text:" + e.text + "\n");
}
}
Button Button1 {
X = 10;
Y = 10;
Width = 100;
Height = 25;
Title = "Start";
function OnTouch(e) {
^.synthesizer.StartSpeaking("Hello world!");
}
}
Button Button2 {
X = 10;
Y = 40;
Width = 100;
Height = 25;
Title = "Stop";
function OnTouch(e) {
^.synthesizer.StopSpeaking(true);
}
}
Button Button3 {
X = 10;
Y = 70;
Width = 100;
Height = 25;
Title = "Pause";
function OnTouch(e) {
^.synthesizer.PauseSpeaking(false);
}
}
Button Button4 {
X = 10;
Y = 100;
Width = 100;
Height = 25;
Title = "Resume";
function OnTouch(e) {
^.synthesizer.ResumeSpeaking();
}
}
if ( !$DESIGNTIME ) {
synthesizer.Load();
}
}
|
|
|
関連項目 |
||