SpeechRecognizer.CreateOnDeviceSpeechRecognizer(Context) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Méthode de fabrique pour créer un nouveau 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
Paramètres
- context
- Context
dans lequel créer SpeechRecognizer
Retours
un nouvel appareil SpeechRecognizer.
- Attributs
Remarques
Méthode de fabrique pour créer un nouveau SpeechRecognizer.
Notez qu’il #setRecognitionListener(RecognitionListener) doit être appelé avant de distribuer une commande à la commande créée SpeechRecognizer; sinon, aucune notification ne sera reçue.
<strong>Important :</strong> l’appelant DOIT appeler #destroy() sur un objet SpeechRecognizer lorsqu’il n’est plus nécessaire.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.