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

# XSpeechToTextSetPositionHint

> XSpeechToTextSetPositionHint

# XSpeechToTextSetPositionHint

음성-텍스트 창의 위치를 설정합니다.

## 구문

```cpp theme={null}
HRESULT XSpeechToTextSetPositionHint(  
         XSpeechToTextPositionHint position  
)  
```

### 매개 변수

*position*   \_In\_\
형식: [XSpeechToTextPositionHint](/reference/system/xaccessibility/enums/xspeechtotextpositionhint)

음성-텍스트 창의 위치를 지정하는 열거형입니다.

### 반환 값

형식: 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 = XSpeechToTextSetPositionHint(XSpeechToTextPositionHint::BottomCenter);
)  
```

## 요구 사항

**헤더:** 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)

[XSpeechToTextPositionHint](/reference/system/xaccessibility/enums/xspeechtotextpositionhint)

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