Share via


class SpeechSynthesisResult

텍스트 음성 변환 합성의 결과에 대한 정보를 포함합니다. 버전 1.4.0에 추가되었습니다.

멤버

ResultId

구문: public const std::string & ResultId;

고유 결과 ID입니다.

이유

구문: public const ResultReason & Reason;

합성 결과의 이유입니다.

AudioDuration

구문: public const std::chrono::milliseconds & AudioDuration;

합성된 오디오의 기간이며 완료된 합성에만 유효합니다. 버전 1.21.0에 추가되었습니다.

속성

구문: public constPropertyCollection & Properties;

추가 SpeechSynthesisResult 속성의 컬렉션입니다.

SpeechSynthesisResult

구문: public inline explicit SpeechSynthesisResult ( SPXRESULTHANDLE hresult );

제공된 핸들을 사용하여 새 instance 만듭니다.

매개 변수

  • hresult 결과 핸들입니다.

GetAudioLength

구문: public inline uint32_t GetAudioLength ( );

합성된 오디오의 크기를 바이트 단위로 가져옵니다.

반환

합성된 오디오의 길이

GetAudioData

구문: public inline std::shared_ptr< std::vector< uint8_t > > GetAudioData ( );

합성된 오디오를 가져옵니다.

반환

합성된 오디오 데이터

연산자 SPXRESULTHANDLE

구문: public inline explicit operator SPXRESULTHANDLE ( );

명시적 변환 연산자입니다.

반환

핸들입니다.

~SpeechSynthesisResult

구문: public inline ~SpeechSynthesisResult ( );

소멸자