@p0llen/speaker-detector-client
Version:
React client for interfacing with the [speaker-detector](https://pypi.org/project/speaker-detector) Python backend. Supports real-time speaker identification, meeting transcription, and speaker enrollment.
19 lines • 890 B
JavaScript
import React from "react";
import useMicCheck from "../hooks/useMicCheck";
var MicStatus = () => {
var micStatus = useMicCheck();
var readableStatus = {
pending: "⏳ Checking microphone...",
ok: "🎤 Microphone is working",
silent: "⚠️ Microphone detected but silent (muted or virtual)",
none: "❌ No microphone detected (unplugged or missing)",
blocked: "🚫 Microphone access blocked — allow permissions",
error: "⚠️ Microphone check failed"
}[micStatus] || "❓ Unknown mic status";
return /*#__PURE__*/React.createElement("div", {
className: "mic-status-panel"
}, /*#__PURE__*/React.createElement("h4", {
className: "speaker-heading"
}, "\uD83C\uDFA4 Microphone Status"), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("strong", null, "Status:"), " ", readableStatus));
};
export default MicStatus;