SetAudioMute
Mute or unmute a specific audio source in OBS by specifying the source name and desired mute status. Integrates with Presentation Buddy MCP Server for automated streaming workflows.
Instructions
Mutes or unmutes an audio source.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Implementation Reference
- src/index.ts:508-536 (handler)Handler implementation for the SetAudioMute tool. Extracts 'source' and 'mute' parameters, validates presence, logs the action, and sends an OBS WebSocket 'SetInputMute' request with inputName and inputMuted. Catches and re-throws OBS errors.case "SetAudioMute": console.log("SetAudioMute params:", JSON.stringify(params, null, 2)); // Extract parameters const audioSourceName = params.source || (params.params && params.params.source); const muteState = params.mute !== undefined ? params.mute : (params.params && params.params.mute !== undefined ? params.params.mute : null); if (!audioSourceName || muteState === null) { throw new Error("Missing required parameters: source or mute"); } console.log(`Setting mute state for source "${audioSourceName}" to: ${muteState}`); try { obsResponseData = await sendToObs( "SetInputMute", { inputName: audioSourceName, inputMuted: muteState }, context, action.name ); console.log("SetAudioMute response:", JSON.stringify(obsResponseData, null, 2)); } catch (error) { console.error("Error setting audio mute state:", error); throw error; } break;