SpeechRecognizer.CreateOnDeviceSpeechRecognizer(Context) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于创建新的 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命令之前调用,否则不会收到任何通知。
重要说明: 当不再需要 SpeechRecognizer 对象时,调用方必须调用 #destroy() 它。
Java文档android.speech.SpeechRecognizer.createOnDeviceSpeechRecognizer(android.content.Context)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。