> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # setPushToTalkActive > While push-to-talk is enabled, sets the talk state. ```ts setPushToTalkActive(active): void ``` While push-to-talk is enabled, sets the talk state. `true` = transmitting, `false` = silent. No-op if push-to-talk has not been enabled. ## **Parameters** **`active`** `boolean` — required Whether push-to-talk transmission is currently active. --- ## **Returns** `void` ## **Examples** ### Bind to a press-and-hold button ```ts talkButton.addEventListener('pointerdown', () => call.setPushToTalkActive(true)); talkButton.addEventListener('pointerup', () => call.setPushToTalkActive(false)); talkButton.addEventListener('pointercancel', () => call.setPushToTalkActive(false)); ``` ## **See** * [`enablePushToTalk`](/docs/browser-sdk/v4/reference/webrtc-call/enable-push-to-talk) — install the pipeline (required first). * [`disablePushToTalk`](/docs/browser-sdk/v4/reference/webrtc-call/disable-push-to-talk) — tear down the pipeline. > While push-to-talk is enabled, sets the talk state.