Spaces:
Building
Building
Update flare-ui/src/app/components/chat/chat.component.html
Browse files
flare-ui/src/app/components/chat/chat.component.html
CHANGED
@@ -21,21 +21,24 @@
|
|
21 |
[(ngModel)]="useTTS"
|
22 |
[disabled]="!ttsAvailable"
|
23 |
class="tts-checkbox">
|
24 |
-
Use TTS
|
25 |
</mat-checkbox>
|
26 |
<div *ngIf="!ttsAvailable" class="tts-hint">
|
27 |
TTS is not configured. Please configure a TTS engine in Environment settings.
|
28 |
</div>
|
29 |
-
|
30 |
<mat-checkbox
|
31 |
[(ngModel)]="useSTT"
|
32 |
[disabled]="!sttAvailable"
|
33 |
class="stt-checkbox">
|
34 |
-
Use STT
|
35 |
</mat-checkbox>
|
36 |
<div *ngIf="!sttAvailable" class="stt-hint">
|
37 |
STT is not configured. Please configure an STT engine in Environment settings.
|
38 |
</div>
|
|
|
|
|
|
|
39 |
</mat-card-content>
|
40 |
|
41 |
<mat-card-actions align="end">
|
@@ -43,7 +46,7 @@
|
|
43 |
mat-raised-button
|
44 |
color="primary"
|
45 |
(click)="startChat()"
|
46 |
-
[disabled]="!selectedProject"
|
47 |
>
|
48 |
<mat-icon>chat</mat-icon>
|
49 |
Start Chat
|
@@ -53,9 +56,9 @@
|
|
53 |
mat-raised-button
|
54 |
color="accent"
|
55 |
(click)="startRealtimeChat()"
|
56 |
-
[disabled]="!selectedProject || !
|
57 |
class="realtime-button"
|
58 |
-
matTooltip="Start real-time voice conversation"
|
59 |
>
|
60 |
<mat-icon>mic</mat-icon>
|
61 |
Real-time Chat
|
|
|
21 |
[(ngModel)]="useTTS"
|
22 |
[disabled]="!ttsAvailable"
|
23 |
class="tts-checkbox">
|
24 |
+
Use TTS (Text-to-Speech)
|
25 |
</mat-checkbox>
|
26 |
<div *ngIf="!ttsAvailable" class="tts-hint">
|
27 |
TTS is not configured. Please configure a TTS engine in Environment settings.
|
28 |
</div>
|
29 |
+
|
30 |
<mat-checkbox
|
31 |
[(ngModel)]="useSTT"
|
32 |
[disabled]="!sttAvailable"
|
33 |
class="stt-checkbox">
|
34 |
+
Use STT (Speech-to-Text)
|
35 |
</mat-checkbox>
|
36 |
<div *ngIf="!sttAvailable" class="stt-hint">
|
37 |
STT is not configured. Please configure an STT engine in Environment settings.
|
38 |
</div>
|
39 |
+
<div *ngIf="sttAvailable && useSTT" class="stt-hint">
|
40 |
+
When STT is enabled, use the Real-time Chat button for voice conversation.
|
41 |
+
</div>
|
42 |
</mat-card-content>
|
43 |
|
44 |
<mat-card-actions align="end">
|
|
|
46 |
mat-raised-button
|
47 |
color="primary"
|
48 |
(click)="startChat()"
|
49 |
+
[disabled]="!selectedProject || useSTT"
|
50 |
>
|
51 |
<mat-icon>chat</mat-icon>
|
52 |
Start Chat
|
|
|
56 |
mat-raised-button
|
57 |
color="accent"
|
58 |
(click)="startRealtimeChat()"
|
59 |
+
[disabled]="!selectedProject || !useSTT"
|
60 |
class="realtime-button"
|
61 |
+
matTooltip="Start real-time voice conversation with STT"
|
62 |
>
|
63 |
<mat-icon>mic</mat-icon>
|
64 |
Real-time Chat
|