*** id: 96cf18f5-7aac-45ca-9a35-055bb3c78e71 title: audioMute slug: /node/reference/video/room-session/audio-mute description: audioMute method for the RoomSession class. max-toc-depth: 3 ---------------- [roomsession-41]: /docs/server-sdk/v4/node/reference/video/room-session ### audioMute * **audioMute**(`params`): `Promise` Mutes the audio of a given member for all other participants. #### Parameters Object containing the parameters of the method. ID of the member to mute. #### Returns `Promise` #### Example In this example, we mute the audio of a member as soon as they join the room. This example assumes that there is a [`RoomSession`][roomsession-41] already active. ```js import { SignalWire } from "@signalwire/realtime-api"; // Initialize the SignalWire client const client = await SignalWire({ project: "ProjectID Here", token: "Token Here" }) // Access the video client from the main client const videoClient = client.video; // Setup listener for when a room starts await videoClient.listen({ onRoomStarted: async (roomSession) => { console.log("Room started", roomSession.displayName); await roomSession.listen({ // Listen for when a member joins the room onMemberJoined: async (member) => { // Mute member's audio console.log(`Muting ${member.id}'s audio`); await roomSession.audioMute({ memberId: member.id }); } }); }, onRoomEnded: async (roomSession) => { console.log("Room ended", roomSession.displayName); } }); ```