added more logging for debugging voice issues
Some checks failed
Deploy FluentGerman.ai / deploy (push) Failing after 27s

This commit is contained in:
2026-02-18 11:52:41 +01:00
parent be366777d4
commit 8631e286bd
3 changed files with 32 additions and 33 deletions

View File

@@ -168,10 +168,11 @@ class VoiceManager {
this.lastInputWasVoice = true;
if (this.onResult) this.onResult(data.text);
} else {
showToast('Transcription failed.', 'error');
const err = await response.json().catch(() => ({}));
showToast(`Transcription failed: ${err.detail || 'Unknown error'}`, 'error');
}
} catch (e) {
showToast('Transcription error', 'error');
showToast('Transcription network error', 'error');
} finally {
this.isRecording = false;
if (this.onStateChange) this.onStateChange(false);