Spaces:
Running
Running
Update flare-ui/src/app/components/environment/environment.component.ts
Browse files
flare-ui/src/app/components/environment/environment.component.ts
CHANGED
@@ -631,7 +631,7 @@ export class EnvironmentComponent implements OnInit {
|
|
631 |
}
|
632 |
(this.environment.stt_settings as any)[key] = value;
|
633 |
}
|
634 |
-
|
635 |
getTokenLabel(): string {
|
636 |
switch(this.environment.work_mode) {
|
637 |
case 'gpt4o':
|
@@ -674,31 +674,6 @@ export class EnvironmentComponent implements OnInit {
|
|
674 |
}
|
675 |
}
|
676 |
|
677 |
-
onSTTEngineChange() {
|
678 |
-
if (this.environment.stt_engine === 'no_stt') {
|
679 |
-
this.environment.stt_engine_api_key = '';
|
680 |
-
this.sttSettingsExpanded = false;
|
681 |
-
} else {
|
682 |
-
this.sttSettingsExpanded = true;
|
683 |
-
}
|
684 |
-
}
|
685 |
-
|
686 |
-
updateSTTSetting(key: string, value: any) {
|
687 |
-
if (!this.environment.stt_settings) {
|
688 |
-
this.environment.stt_settings = {
|
689 |
-
speech_timeout_ms: 2000,
|
690 |
-
noise_reduction_level: 2,
|
691 |
-
vad_sensitivity: 0.5,
|
692 |
-
language: 'tr-TR',
|
693 |
-
model: 'latest_long',
|
694 |
-
use_enhanced: true,
|
695 |
-
enable_punctuation: true,
|
696 |
-
interim_results: true
|
697 |
-
};
|
698 |
-
}
|
699 |
-
(this.environment.stt_settings as any)[key] = value;
|
700 |
-
}
|
701 |
-
|
702 |
formatVAD(value: number): string {
|
703 |
return value.toFixed(1);
|
704 |
}
|
|
|
631 |
}
|
632 |
(this.environment.stt_settings as any)[key] = value;
|
633 |
}
|
634 |
+
|
635 |
getTokenLabel(): string {
|
636 |
switch(this.environment.work_mode) {
|
637 |
case 'gpt4o':
|
|
|
674 |
}
|
675 |
}
|
676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
677 |
formatVAD(value: number): string {
|
678 |
return value.toFixed(1);
|
679 |
}
|