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);
|
await this._transcribeAPI(blob);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Wait for recorder to actually start before updating UI
|
// Only update UI once recording has truly started
|
||||||
this.mediaRecorder.start();
|
this.mediaRecorder.onstart = () => {
|
||||||
|
this.isRecording = true;
|
||||||
|
this.lastInputWasVoice = true;
|
||||||
|
if (this.onStateChange) this.onStateChange(true);
|
||||||
|
};
|
||||||
|
|
||||||
// Now we are truly recording
|
this.mediaRecorder.start();
|
||||||
this.isRecording = true;
|
|
||||||
this.lastInputWasVoice = true;
|
|
||||||
if (this.onStateChange) this.onStateChange(true);
|
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('[Voice] Mic access error:', e);
|
console.error('[Voice] Mic access error:', e);
|
||||||
|
|||||||
Reference in New Issue
Block a user