共用方式為


TextToSpeechService.OnGetVoices 方法

定義

查詢服務是否有一組支持的語音。

[Android.Runtime.Register("onGetVoices", "()Ljava/util/List;", "GetOnGetVoicesHandler")]
public virtual System.Collections.Generic.IList<Android.Speech.Tts.Voice>? OnGetVoices ();
[<Android.Runtime.Register("onGetVoices", "()Ljava/util/List;", "GetOnGetVoicesHandler")>]
abstract member OnGetVoices : unit -> System.Collections.Generic.IList<Android.Speech.Tts.Voice>
override this.OnGetVoices : unit -> System.Collections.Generic.IList<Android.Speech.Tts.Voice>

傳回

支援的語音清單。

屬性

備註

查詢服務是否有一組支持的語音。

可以在多個線程上呼叫。

默認實作會嘗試列舉所有可用的地區設定,並將其傳遞至 #onIsLanguageAvailable(String, String, String) 並建立語音實例(使用地區設定的 BCP-47 語言標記作為所支援之語音名稱)。 請注意,此實作僅適用於單一地區設定沒有多個語音的引擎。 此外,此實作不適用於 方法所 Locale#getAvailableLocales() 傳回集合中未列出的地區設定。

android.speech.tts.TextToSpeechService.onGetVoices()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於