SpeechRecognizer.TriggerModelDownload メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| TriggerModelDownload(Intent) |
指定された |
| TriggerModelDownload(Intent, IExecutor, IModelDownloadListener) |
指定された |
TriggerModelDownload(Intent)
指定された recognizerIntentのサポートのダウンロードを試みます。
[Android.Runtime.Register("triggerModelDownload", "(Landroid/content/Intent;)V", "GetTriggerModelDownload_Landroid_content_Intent_Handler", ApiSince=33)]
public virtual void TriggerModelDownload(Android.Content.Intent recognizerIntent);
[<Android.Runtime.Register("triggerModelDownload", "(Landroid/content/Intent;)V", "GetTriggerModelDownload_Landroid_content_Intent_Handler", ApiSince=33)>]
abstract member TriggerModelDownload : Android.Content.Intent -> unit
override this.TriggerModelDownload : Android.Content.Intent -> unit
パラメーター
- recognizerIntent
- Intent
には、実行する認識のパラメーターが含まれています。 意図には省略可能な追加項目が含まれている場合もあります。 RecognizerIntentを参照してください。
- 属性
注釈
指定された recognizerIntentのサポートのダウンロードを試みます。 これにより、ユーザーの操作によってダウンロードが承認される可能性があります。 呼び出し元は、 #checkRecognitionSupport(Intent, Executor, RecognitionSupportCallback)を使用して要求の状態を確認できます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
TriggerModelDownload(Intent, IExecutor, IModelDownloadListener)
指定された recognizerIntentのサポートのダウンロードを試みます。
[Android.Runtime.Register("triggerModelDownload", "(Landroid/content/Intent;Ljava/util/concurrent/Executor;Landroid/speech/ModelDownloadListener;)V", "GetTriggerModelDownload_Landroid_content_Intent_Ljava_util_concurrent_Executor_Landroid_speech_ModelDownloadListener_Handler", ApiSince=34)]
public virtual void TriggerModelDownload(Android.Content.Intent recognizerIntent, Java.Util.Concurrent.IExecutor executor, Android.Speech.IModelDownloadListener listener);
[<Android.Runtime.Register("triggerModelDownload", "(Landroid/content/Intent;Ljava/util/concurrent/Executor;Landroid/speech/ModelDownloadListener;)V", "GetTriggerModelDownload_Landroid_content_Intent_Ljava_util_concurrent_Executor_Landroid_speech_ModelDownloadListener_Handler", ApiSince=34)>]
abstract member TriggerModelDownload : Android.Content.Intent * Java.Util.Concurrent.IExecutor * Android.Speech.IModelDownloadListener -> unit
override this.TriggerModelDownload : Android.Content.Intent * Java.Util.Concurrent.IExecutor * Android.Speech.IModelDownloadListener -> unit
パラメーター
- recognizerIntent
- Intent
には、実行する認識のパラメーターが含まれています。 意図には省略可能な追加項目が含まれている場合もあります。 RecognizerIntentを参照してください。
- executor
- IExecutor
リスナー コールバックをディスパッチする場合
- listener
- IModelDownloadListener
モデルのダウンロード要求に関する更新プログラムを受け取ります。
- 属性
注釈
指定された recognizerIntentのサポートのダウンロードを試みます。 これにより、ユーザーの操作によってダウンロードが承認される可能性があります。 呼び出し元は、 #checkRecognitionSupport(Intent, Executor, RecognitionSupportCallback)を使用して要求の状態を確認できます。
モデルのダウンロード要求に関する更新は、指定された ModelDownloadListenerを介して受信されます。
<li> モデルが既に使用可能な場合は、 ModelDownloadListener#onSuccess() が直接呼び出されます。 モデルは後で安全に使用できます。
<li>RecognitionServiceがダウンロードを開始した場合、ダウンロードが完了するまで、ModelDownloadListener#onProgress(int)は指定されていない (0 回以上) 回数呼び出されます。 ダウンロードが完了すると、 ModelDownloadListener#onSuccess() が呼び出されます。 モデルは後で安全に使用できます。
<li>RecognitionService がダウンロードをスケジュールしたが、すぐには満たさない場合は、 ModelDownloadListener#onScheduled() が呼び出されます。 このリスナーに対するそれ以上の更新はありません。
<li> ネットワークまたはスケジューリングエラーが原因で要求がいつでも失敗した場合は、 ModelDownloadListener#onError(int) が呼び出されます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。