Prepare application for production use, including health check

Adds production deployment configurations, a health check endpoint, and fixes voice command confidence level.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ff0be73b-afdd-4747-978b-bb8301fb0a82
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/43bdd979-982d-4330-b7ca-c1484048813c.jpg
This commit is contained in:
ghaddaditw
2025-06-08 06:34:35 +00:00
parent 16e7648193
commit 7d7cae69ef
5 changed files with 180 additions and 2 deletions
+1 -2
View File
@@ -37,7 +37,6 @@ export function useEnhancedVoice() {
const { toast } = useToast();
const recognitionRef = useRef<SpeechRecognition | null>(null);
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
const commandQueueRef = useRef<string[]>([]);
const [settings, setSettings] = useState<VoiceSettings>({
@@ -107,7 +106,7 @@ export function useEnhancedVoice() {
if (result.isFinal) {
finalTranscript += transcript;
if (alternative.confidence >= settings.confidenceThreshold) {
processVoiceCommand(transcript, result[0].confidence);
processVoiceCommand(transcript, alternative.confidence);
}
} else {
interimTranscript += transcript;