STT Control

이 API들은 Server를 재시작하거나 Stream을 다시 생성하지 않고도, Runtime 중 특정 Stream에 대한 실시간 Speech-to-Text (STT) 추론을 일시 중지하거나 재개할 수 있습니다.

전체 STT 구성 방법은 Realtime Speech-to-Text를 참조하십시오.

Enable STT

Stream에 대한 STT 추론을 재개합니다. Audio Frame이 Whisper Model로 다시 전달되며, Subtitle Cue 생성도 다시 시작됩니다.

Request

chevron-rightPOST v1/vhosts/{vhost}/apps/{app}/streams/{stream}:enableStthashtag

Header

Authorization: Basic {credentials}

# Authorization
    Credentials for HTTP Basic Authentication created with <AccessToken>

Body

{}

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Content-Type: application/json

Body

{
    "statusCode": 200,
    "message": "OK",
    "response": {
        "enabled": true
    }
}

# statusCode
    Same as HTTP Status Code
# message
    A human-readable description of the response code
# response.enabled
    true if STT is now running
chevron-right401 Unauthorizedhashtag

Authentication required

Header

WWW-Authenticate: Basic realm="OvenMediaEngine"

Body

{
    "message": "[HTTP] Authorization header is required to call API (401)",
    "statusCode": 401
}
chevron-right404 Not Foundhashtag

The given vhost, app, or stream name could not be found, or no STT encoder exists for this stream.

Body

chevron-right503 Service Unavailablehashtag

The Transcoder module is not running.

Disable STT

STT 추론을 일시 중지합니다. Audio Frame은 처리되지 않은 채 폐기되며, Subtitle Rendition은 Stream에 그대로 유지되지만 더 이상 새로운 Cue를 받지 않습니다. 기반이 되는 STT Model과 GPU 할당은 계속 로드된 상태로 유지됩니다.

Request

chevron-rightPOST v1/vhosts/{vhost}/apps/{app}/streams/{stream}:disableStthashtag

Header

Body

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Body

chevron-right401 Unauthorizedhashtag

Authentication required

Header

Body

chevron-right404 Not Foundhashtag

The given vhost, app, or stream name could not be found, or no STT encoder exists for this stream.

Body

chevron-right503 Service Unavailablehashtag

The Transcoder module is not running.

Get STT Status

해당 Stream의 활성화 상태와 활성화된 모든 STT Rendition Configuration을 반환 (조회)합니다.

Request

chevron-rightPOST v1/vhosts/{vhost}/apps/{app}/streams/{stream}:sttStatushashtag

Header

Body

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Body

chevron-right401 Unauthorizedhashtag

Authentication required

Header

Body

chevron-right503 Service Unavailablehashtag

The Transcoder module is not running.

Last updated