recording cutoff bug in admin fixed
All checks were successful
Deploy FluentGerman.ai / deploy (push) Successful in 49s
All checks were successful
Deploy FluentGerman.ai / deploy (push) Successful in 49s
This commit is contained in:
@@ -113,13 +113,14 @@ class VoiceManager {
|
||||
await this._transcribeAPI(blob);
|
||||
};
|
||||
|
||||
// Wait for recorder to actually start before updating UI
|
||||
this.mediaRecorder.start();
|
||||
|
||||
// Now we are truly recording
|
||||
// Only update UI once recording has truly started
|
||||
this.mediaRecorder.onstart = () => {
|
||||
this.isRecording = true;
|
||||
this.lastInputWasVoice = true;
|
||||
if (this.onStateChange) this.onStateChange(true);
|
||||
};
|
||||
|
||||
this.mediaRecorder.start();
|
||||
|
||||
} catch (e) {
|
||||
console.error('[Voice] Mic access error:', e);
|
||||
|
||||
Reference in New Issue
Block a user