Best Practice
Text Parameter Handling
URL Encoding: It is recommended to URL encode the text parameter before transmission to avoid errors caused by special characters.
Efficiency Enhancements
Temporary Data Saving: Setting
save_temp
to true can significantly reduce processing time for repeated requests.
Real-Time Audio Playback
Streaming: The stream option is ideal for real-time audio playback scenarios. For large text inputs, streaming generates and transmits audio in segments, allowing the user terminal to start playback sooner.
Last updated
Was this helpful?