Spaces:
Building
Building
Update flare-ui/src/app/services/conversation-manager.service.ts
Browse files
flare-ui/src/app/services/conversation-manager.service.ts
CHANGED
@@ -237,9 +237,13 @@ export class ConversationManagerService implements OnDestroy {
|
|
237 |
try {
|
238 |
switch (message.type) {
|
239 |
case 'transcription':
|
|
|
240 |
if (message['is_final']) {
|
241 |
this.addMessage('user', message['text']);
|
242 |
this.transcriptionSubject.next('');
|
|
|
|
|
|
|
243 |
}
|
244 |
break;
|
245 |
|
|
|
237 |
try {
|
238 |
switch (message.type) {
|
239 |
case 'transcription':
|
240 |
+
// SADECE final transcription'ları göster
|
241 |
if (message['is_final']) {
|
242 |
this.addMessage('user', message['text']);
|
243 |
this.transcriptionSubject.next('');
|
244 |
+
} else {
|
245 |
+
// Interim transcription'ları accumulate et
|
246 |
+
this.transcriptionSubject.next(message['text']);
|
247 |
}
|
248 |
break;
|
249 |
|