ciyidogan commited on
Commit
9c76a9b
·
verified ·
1 Parent(s): 2955a8f

Update flare-ui/src/app/services/conversation-manager.service.ts

Browse files
flare-ui/src/app/services/conversation-manager.service.ts CHANGED
@@ -407,37 +407,13 @@ export class ConversationManagerService implements OnDestroy {
407
  }
408
  }
409
 
410
- // Barge-in handling
411
  performBargeIn(): void {
412
- const currentState = this.currentStateSubject.value;
 
413
 
414
- if (currentState !== 'idle' && currentState !== 'listening' && currentState !== 'error') {
415
- console.log('🛑 Performing barge-in');
416
- this.isInterrupting = true;
417
-
418
- // Stop audio playback
419
- this.stopAudioPlayback();
420
-
421
- // Clear audio queue
422
- this.audioQueue = [];
423
-
424
- // Notify server
425
- if (this.wsService.isConnected()) {
426
- try {
427
- this.wsService.sendControl('interrupt', {
428
- at_state: currentState,
429
- timestamp: Date.now()
430
- });
431
- } catch (error) {
432
- console.error('Failed to send interrupt signal:', error);
433
- }
434
- }
435
-
436
- // Reset interruption flag after a delay
437
- setTimeout(() => {
438
- this.isInterrupting = false;
439
- }, 500);
440
- }
441
  }
442
 
443
  private addMessage(role: 'user' | 'assistant', text: string, error: boolean = false): void {
 
407
  }
408
  }
409
 
410
+ // Barge-in handling - DEVRE DIŞI
411
  performBargeIn(): void {
412
+ // Barge-in özelliği devre dışı bırakıldı
413
+ console.log('⚠️ Barge-in is currently disabled');
414
 
415
+ // Kullanıcıya bilgi ver
416
+ this.addSystemMessage('Barge-in feature is currently disabled.');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
  }
418
 
419
  private addMessage(role: 'user' | 'assistant', text: string, error: boolean = false): void {