Spaces:
Building
Building
Update flare-ui/src/app/components/environment/environment.component.ts
Browse files
flare-ui/src/app/components/environment/environment.component.ts
CHANGED
@@ -789,28 +789,6 @@ export class EnvironmentComponent implements OnInit {
|
|
789 |
}
|
790 |
}
|
791 |
|
792 |
-
onSTTEngineChange() {
|
793 |
-
if (this.environment.stt_engine === 'no_stt') {
|
794 |
-
this.environment.stt_engine_api_key = '';
|
795 |
-
this.sttSettingsExpanded = false;
|
796 |
-
} else {
|
797 |
-
// Ensure stt_settings exists when enabling STT
|
798 |
-
if (!this.environment.stt_settings) {
|
799 |
-
this.environment.stt_settings = {
|
800 |
-
speech_timeout_ms: 2000,
|
801 |
-
noise_reduction_level: 2,
|
802 |
-
vad_sensitivity: 0.5,
|
803 |
-
language: 'tr-TR',
|
804 |
-
model: 'latest_long',
|
805 |
-
use_enhanced: true,
|
806 |
-
enable_punctuation: true,
|
807 |
-
interim_results: true
|
808 |
-
};
|
809 |
-
}
|
810 |
-
this.sttSettingsExpanded = true;
|
811 |
-
}
|
812 |
-
}
|
813 |
-
|
814 |
save() {
|
815 |
this.saving = true;
|
816 |
|
|
|
789 |
}
|
790 |
}
|
791 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
792 |
save() {
|
793 |
this.saving = true;
|
794 |
|