play_silence
play_silence
Play silence for duration seconds. A typed convenience over play()
that builds the {"type": "silence", "params": {"duration": ...}} media item for
you.
Parameters
duration
Seconds of silence to play.
on_completed
Callback invoked when the operation reaches a terminal state. Can be a regular function or async coroutine. Keyword-only.
Returns
PlayAction — An action handle with stop(), pause(), resume(), volume(), and wait() methods.