> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XSpeechToTextUpdateHypothesisString

> XSpeechToTextUpdateHypothesisString

# XSpeechToTextUpdateHypothesisString

Met à jour une chaîne d'hypothèse dans une superposition de texte.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
HRESULT XSpeechToTextUpdateHypothesisString(  
         uint32_t hypothesisId,  
         const char* content  
)  
```

<a id="parametersSection" />

### Paramètres

*hypothesisId*   \_In\_\
Type : uint32\_t

L'identificateur d'hypothèse retourné par [XSpeechToTextBeginHypothesisString](/fr-CA/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring).

*content*   \_In\_z\_\
Type : char\*

La chaîne d'hypothèse mise à jour.

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

Code HRESULT de réussite ou d'erreur.

<a id="remarksSection" />

## Remarques

Cette fonction met à jour une chaîne d'hypothèse sur place, sans la déplacer au bas de la superposition.

La superposition ne peut afficher qu'un nombre limité de chaînes. Lorsque le maximum est atteint, les chaînes les plus anciennes expirent. Si une chaîne expirée est une hypothèse qui n'a pas encore été finalisée ou annulée, sa valeur *hypothesisId* devient non valide. Passer une valeur *hypothesisId* non valide ne retourne pas d'erreur.

Pour annuler une hypothèse et la retirer de la superposition, utilisez [XSpeechToTextCancelHypothesisString](/fr-CA/reference/system/xaccessibility/functions/xspeechtotextcancelhypothesisstring).

Pour finaliser une hypothèse, utilisez [XSpeechToTextFinalizeHypothesisString](/fr-CA/reference/system/xaccessibility/functions/xspeechtotextfinalizehypothesisstring).

Sur certaines plateformes, la chaîne d'hypothèse n'est pas affichée tant que l'application n'appelle pas `XSpeechToTextFinalizeHypothesisString`. À moins que l'hypothèse ne soit annulée, votre application doit toujours appeler `XSpeechToTextFinalizeHypothesisString` pour s'assurer que la chaîne est affichée.

Pour des exemples de code, consultez la section [Remarques](/fr-CA/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring#remarksSection) de [XSpeechToTextBeginHypothesisString](/fr-CA/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** XAccessibility.h

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

<a id="seealsoSection" />

## Voir aussi

[XAccessibility](/fr-CA/reference/system/xaccessibility/xaccessibility_members)


## Related topics

- [XSpeechToTextUpdateHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextupdatehypothesisstring.md)
- [XSpeechToTextFinalizeHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextfinalizehypothesisstring.md)
- [XSpeechToTextCancelHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextcancelhypothesisstring.md)
- [XSpeechToTextBeginHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring.md)
