語言

SpeechRecognizer.CreateOnDeviceSpeechRecognizer(Context) 方法

定義

工廠方法來建立新的 SpeechRecognizer。

[Android.Runtime.Register("createOnDeviceSpeechRecognizer", "(Landroid/content/Context;)Landroid/speech/SpeechRecognizer;", "", ApiSince=31)]
public static Android.Speech.SpeechRecognizer CreateOnDeviceSpeechRecognizer(Android.Content.Context context);
[<Android.Runtime.Register("createOnDeviceSpeechRecognizer", "(Landroid/content/Context;)Landroid/speech/SpeechRecognizer;", "", ApiSince=31)>]
static member CreateOnDeviceSpeechRecognizer : Android.Content.Context -> Android.Speech.SpeechRecognizer

參數

context
Context

創作的方向 SpeechRecognizer

傳回

一個新的裝置 SpeechRecognizer上。

屬性

備註

工廠方法來建立新的 SpeechRecognizer。

請注意 #setRecognitionListener(RecognitionListener) ,在向已建立 SpeechRecognizer者發送任何指令前,必須先呼叫,否則不會收到任何通知。

<strong>重要:</strong> 呼叫者必須在不再需要 SpeechCognir 物件時呼叫 #destroy() 。

Java 文件 android.speech.SpeechRecognizer.createOnDeviceSpeechRecognizer(android.content.Context)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於