Get raw audio of synthesized speech
How to get raw audio from text-to-speech synthesis.
阅读时间1 分钟最后更新于 12 天前
You can synthesize speech into an audio buffer for your direct use rather than having it maintained internally by the Vivox SDK.
vx_tts_speak_to_buffervx_tts_utterance_tvx_tts_utterance_t *utterance = NULL;vx_tts_status status = vx_tts_speak_to_buffer(managerId, voiceId, "Gimme the audio samples", &utterance);// If succeeds, utterance will contain the audio samples and the metadata for the synthesized speech.
vx_tts_status status = vx_tts_destroy_utterance(managerId, utterance);