Start with a voice.
Enable microphone capture, mute and unmute, or switch an input device. Your application controls when it asks for permission.
Microphone reference ↗'use client';import { useLocalParticipant } from '@relayrtc/react';export function Microphone() { const local = useLocalParticipant(); return ( <button disabled={!local} onClick={() => void local?.microphone .enable().catch(console.error)} > Enable microphone </button> );}Use inside a connected RelayRoom. Your participant token must allow this media publication.