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
@@ -152,6 +152,9 @@ export class EnvironmentComponent implements OnInit {
|
|
152 |
isTTSProviderSSMLCapable(): boolean {
|
153 |
// SSML destekleyen provider'lar
|
154 |
const ssmlProviders = ['google', 'azure', 'amazon'];
|
|
|
|
|
|
|
155 |
return ssmlProviders.includes(this.environment.tts_engine);
|
156 |
}
|
157 |
|
|
|
152 |
isTTSProviderSSMLCapable(): boolean {
|
153 |
// SSML destekleyen provider'lar
|
154 |
const ssmlProviders = ['google', 'azure', 'amazon'];
|
155 |
+
if (!this.environment.tts_engine) {
|
156 |
+
return false;
|
157 |
+
}
|
158 |
return ssmlProviders.includes(this.environment.tts_engine);
|
159 |
}
|
160 |
|