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

# XSpeechToTextSendString

> XSpeechToTextSendString

# XSpeechToTextSendString

게임 타이틀 화면에 텍스트를 표시합니다.

## 구문

```cpp theme={null}
HRESULT XSpeechToTextSendString(  
         const char* speakerName,  
         const char* content,  
         XSpeechToTextType type  
)  
```

### 매개 변수

*speakerName*   \_In\_z\_\
형식: char\*

텍스트의 원본이 되는 화자의 이름입니다.

*content*   \_In\_z\_\
형식: char\*

게임 타이틀 화면에 표시할 텍스트입니다.

*type*   \_In\_\
형식: [XSpeechToTextType](/reference/system/xaccessibility/enums/xspeechtotexttype)

텍스트의 원본 유형을 나타내는 열거형 값입니다. 전사된 게임 음성 채팅, 게임 내 음성 자막, 게임 내 텍스트 읽기 또는 게임 내 텍스트 채팅 중 하나가 될 수 있습니다. 게임 타이틀은 *type* 매개 변수의 값을 사용하여 게임 화면의 텍스트 옆에 마이크 아이콘 또는 키보드를 표시합니다.

### 반환 값

형식: HRESULT

성공하면 HRESULT입니다. 그렇지 않으면 오류 코드를 반환합니다.\
오류 코드 목록은 [오류 코드](/reference/errorcodes)를 참조하세요.

## 설명

<Note>이 함수는 시간에 민감한 스레드에서 호출하기에 안전하지 않습니다. 자세한 내용은 [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)를 참조하세요.</Note>

이 함수가 성공하려면 폐쇄 자막이 활성화되어 있어야 합니다.
사용자는 게임 타이틀의 UI에서 폐쇄 자막 기능을 활성화해야 합니다.
사용자가 폐쇄 자막을 활성화했다면, 게임 타이틀은 [XClosedCaptionSetEnabled](/reference/system/xaccessibility/functions/xclosedcaptionsetenabled)를 호출하여 폐쇄 자막의 상태를 표시할 수 있습니다.

다음 예제는 음성-텍스트 창에 텍스트를 표시하는 방법을 보여줍니다.

```cpp theme={null}
auto hr = XSpeechToTextSendString("Sandy", "This is my text.", XSpeechToTextType::Text);
)  
```

## 요구 사항

**헤더:** XAccessibility.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 문서

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 함께 보기

[XAccessibility](/reference/system/xaccessibility/xaccessibility_members)

[XSpeechToTextType](/reference/system/xaccessibility/enums/xspeechtotexttype)

[XClosedCaptionSetEnabled](/reference/system/xaccessibility/functions/xclosedcaptionsetenabled)


## Related topics

- [XSpeechToTextType](/ko/reference/system/xaccessibility/enums/xspeechtotexttype.md)
- [XSpeechToTextPositionHint](/ko/reference/system/xaccessibility/enums/xspeechtotextpositionhint.md)
- [XAccessibility](/ko/reference/system/xaccessibility/xaccessibility_members.md)
- [XSpeechToTextUpdateHypothesisString](/ko/reference/system/xaccessibility/functions/xspeechtotextupdatehypothesisstring.md)
- [XSpeechToTextBeginHypothesisString](/ko/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring.md)
