> ## 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.

# XSpeechToTextFinalizeHypothesisString

> XSpeechToTextFinalizeHypothesisString

# XSpeechToTextFinalizeHypothesisString

Finalise une hypothèse et met à jour sa chaîne dans une superposition de texte.

<a id="syntaxSection" />

## Syntaxe

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

<a id="parametersSection" />

### Paramètres

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

ID d'hypothèse renvoyé par [XSpeechToTextBeginHypothesisString](/fr/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring).

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

Version finale de la chaîne d'hypothèse.

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

HRESULT de réussite ou code d'erreur.

<a id="remarksSection" />

## Remarques

Cette fonction finalise une hypothèse et met à jour sa chaîne sur place, sans la déplacer en 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'est pas encore finalisée ou annulée, sa valeur *hypothesisId* devient non valide. Le passage d'une valeur *hypothesisId* non valide ne renvoie pas d'erreur.

Pour mettre à jour une chaîne d'hypothèse sans la finaliser, utilisez [XSpeechToTextUpdateHypothesisString](/fr/reference/system/xaccessibility/functions/xspeechtotextupdatehypothesisstring).

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

Sur certaines plateformes, la chaîne d'hypothèse n'est pas affichée tant que l'application n'a pas appelé `XSpeechToTextFinalizeHypothesisString`. Sauf si l'hypothèse est annulée, votre application doit toujours appeler `XSpeechToTextFinalizeHypothesisString` pour garantir l'affichage de la chaîne.

Pour obtenir des exemples de code, consultez la section [Remarques](/fr/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring#remarksSection) de [XSpeechToTextBeginHypothesisString](/fr/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/reference/system/xaccessibility/xaccessibility_members)


## Related topics

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