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
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;
}