play
Add a play verb to the main section. Plays audio from a URL or a list of URLs.
Exactly one of url or urls must be provided. Calling play() without either
raises a ValueError.
Parameters
url
Single URL to play. Supports audio file URLs and the say: prefix for
text-to-speech (e.g., "say:Hello world"). Mutually exclusive with urls.
urls
List of URLs to play in sequence. Mutually exclusive with url.
volume
Volume adjustment level, from -40 to 40 dB.
say_voice
Voice name for text-to-speech playback.
say_language
Language code for text-to-speech (e.g., "en-US").
say_gender
Gender for text-to-speech voice selection.
auto_answer
Whether to automatically answer the call before playing audio.
Returns
Self — The builder instance for method chaining.