From dccf05947c1e65e5a88877af0e64c4a6a57f9f56 Mon Sep 17 00:00:00 2001 From: Sergei Date: Wed, 28 Jan 2026 19:53:53 -0800 Subject: [PATCH] Add Voice API type to debug UI and logs Changes: - Show API function (voice_ask or ask_wellnuo_ai) in Debug tab - Update console.log to include API type in transcript log - Add "API Function" field in Status Card with blue color Now Debug tab clearly shows which API function is being used, making it easy to verify the Profile settings are working correctly. --- app/(tabs)/voice-debug.tsx | 14 ++++++++++++++ contexts/VoiceContext.tsx | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/(tabs)/voice-debug.tsx b/app/(tabs)/voice-debug.tsx index 47a06f6..8eb3597 100644 --- a/app/(tabs)/voice-debug.tsx +++ b/app/(tabs)/voice-debug.tsx @@ -41,6 +41,7 @@ export default function VoiceDebugScreen() { status, startSession, stopSession, + voiceApiType, } = useVoice(); const { @@ -250,6 +251,19 @@ export default function VoiceDebugScreen() { + {/* Voice API Type */} + + 📡 + + + API Function + + + {voiceApiType} + + + + {/* Silence Timer */} {sttIsListening && status !== 'processing' && status !== 'speaking' && ( diff --git a/contexts/VoiceContext.tsx b/contexts/VoiceContext.tsx index e75bc41..f8bc4d4 100644 --- a/contexts/VoiceContext.tsx +++ b/contexts/VoiceContext.tsx @@ -245,7 +245,7 @@ export function VoiceProvider({ children }: { children: ReactNode }) { return null; } - console.log('[VoiceContext] Sending transcript to API:', trimmedText); + console.log(`[VoiceContext] Sending transcript to API (${voiceApiType}):`, trimmedText); setStatus('processing'); setError(null);