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.
This commit is contained in:
parent
b3d5dcd94e
commit
dccf05947c
@ -41,6 +41,7 @@ export default function VoiceDebugScreen() {
|
||||
status,
|
||||
startSession,
|
||||
stopSession,
|
||||
voiceApiType,
|
||||
} = useVoice();
|
||||
|
||||
const {
|
||||
@ -250,6 +251,19 @@ export default function VoiceDebugScreen() {
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{/* Voice API Type */}
|
||||
<View style={styles.statusRow}>
|
||||
<Text style={styles.statusIcon}>📡</Text>
|
||||
<View style={styles.statusTextContainer}>
|
||||
<Text style={[styles.statusLabel, { color: isDark ? '#9CA3AF' : '#6B7280' }]}>
|
||||
API Function
|
||||
</Text>
|
||||
<Text style={[styles.statusText, { color: '#3B82F6' }]}>
|
||||
{voiceApiType}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{/* Silence Timer */}
|
||||
{sttIsListening && status !== 'processing' && status !== 'speaking' && (
|
||||
<View style={styles.timerContainer}>
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user