Get raw audio of synthesized speech
How to get raw audio from text-to-speech synthesis.
読み終わるまでの所要時間 1 分最終更新 7ヶ月前
You can synthesize speech into an audio buffer for your direct use rather than having it maintained internally by the Vivox SDK. can synthesize the speech signal and return it in the form of an ITTSAudioBuffer class object. This object includes a pointer to the raw audio data and metadata, such as the buffer length and audio format properties.
ITextToSpeech::SpeakToBuffer()ITTSAudioBuffer *Buffer;VivoxCoreError Status = MyLoginSession->TTS().SpeakToBuffer("Some Text", &Buffer);// If successful, Buffer will contain audio samples and metadata for the synthesized speech.