added more logging for debugging voice issues
Some checks failed
Deploy FluentGerman.ai / deploy (push) Failing after 27s
Some checks failed
Deploy FluentGerman.ai / deploy (push) Failing after 27s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user