Skip to main content
Glama

Voice Mode

by mbailey
useLocalMicTrack.ts•552 B
import { TrackReferenceOrPlaceholder, useLocalParticipant } from "@livekit/components-react"; import { Track } from "livekit-client"; import { useMemo } from "react"; export default function useLocalMicTrack() { const { microphoneTrack, localParticipant } = useLocalParticipant(); const micTrackRef: TrackReferenceOrPlaceholder = useMemo(() => { return { participant: localParticipant, source: Track.Source.Microphone, publication: microphoneTrack, }; }, [localParticipant, microphoneTrack]); return micTrackRef; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mbailey/voicemode'

If you have feedback or need assistance with the MCP directory API, please join our Discord server