prompt_tts
prompt_tts
Play text-to-speech as a prompt and collect input. A typed convenience over
play_and_collect() that builds the TTS media item for you.
Parameters
text
The prompt to speak.
collect
Input collection configuration, in the same format as
play_and_collect().
language
Language code for the voice, such as "en-US". Keyword-only.
gender
Voice gender, "male" or "female". Keyword-only.
voice
Voice ID. Keyword-only.
volume
Volume adjustment in dB, from -40.0 to 40.0. Keyword-only.
on_completed
Callback invoked when the operation reaches a terminal state. Can be a regular function or async coroutine. Keyword-only.
Returns
CollectAction — An action handle that resolves when input is collected, the operation times out, or an error occurs.