*** id: dac92e23-5682-4ba9-ae0e-4b2dfc83a807 title: undeaf slug: /node/reference/video/room-session/undeaf description: undeaf method for the RoomSession class. max-toc-depth: 3 ---------------- [roomsession-41]: /docs/server-sdk/v4/node/reference/video/room-session [video-roomsession-5]: /docs/server-sdk/v4/node/reference/video/room-session/audio-mute ### undeaf * **undeaf**(`params`): `Promise` Unmutes the incoming audio for a given member. The affected participant will start hearing audio from the other participants again. Note that in addition to allowing a participants to hear the others, this will also automatically unmute the microphone of the target participant. If you want, you can then manually mute it by calling [audioMute][video-roomsession-5]. #### Parameters Object containing the parameters of the method. ID of the member to affect. #### Returns `Promise` #### Example In this example, we mute a member when they join the room, and then unmute them after 5 seconds. This example assumes that there is a [`RoomSession`][roomsession-41] already active and users are joining it. ```js import { SignalWire } from "@signalwire/realtime-api"; // Initialize the SignalWire client const client = await SignalWire({ project: "ProjectID Here", token: "Token Here" }); // Access 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) => { console.log("Member joined", member.name); // Deafen the member console.log("Deafing member", member.name); await roomSession.deaf({ memberId: member.id }); // Undeafen the member after 5 seconds setTimeout(async () => { console.log("Undeafing member", member.name); await roomSession.undeaf({ memberId: member.id }); }, 5000); } }); }, onRoomEnded: async (roomSession) => { console.log("Room ended", roomSession.displayName); } }); ```