API version 17

SpeechSynthesizer.SetVoiceメソッド

iOSAndroidWindows

 

説明

デフォルトで使用する音声を設定します。

 

StartSpeakingVoiceクラスオブジェクトが指定された場合は、そちらが優先されます。

 

呼出形式

synthesizer.SetVoice( vo )

 

戻り値

なし

 

引数

Voice vo

Voiceクラスオブジェクト

 

例外

SPEECH-1

音声合成機能がロードされていません。

 

使用例

var synthesizer = new SpeechSynthesizer();
synthesizer.Load();
var engines = synthesizer.GetEngines();
if (engines.length > 2){
 synthesizer.SetEngine(engines[1]);
}

 

関連項目

GetAvailableVoicesGetCurrentVoiceStartSpeakingメソッド

 



「オンラインマニュアル」一覧へ戻る
「Bizの宝箱」TOPへ戻る