From ed6cea3a873ab41706e58ddda1c629882995e48e Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 8 Nov 2022 17:15:53 +0800 Subject: [PATCH] Only show the ultra voices prompt on the en voice list --- .../Views/Profile/TextToSpeechVoiceSelectionView.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift index 8c0acf295..115cfe29e 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift @@ -19,10 +19,12 @@ var body: some View { Group { Form { - Toggle("Use Ultra Realistic Voices", isOn: $audioController.useUltraRealisticVoices) - .accentColor(Color.green) + if language.key == "en" { + Toggle("Use Ultra Realistic Voices", isOn: $audioController.useUltraRealisticVoices) + .accentColor(Color.green) + } - if audioController.useUltraRealisticVoices { + if language.key == "en", audioController.useUltraRealisticVoices { Section { Text("Ultra realistic voices take longer to generate and do not offer a follow along user interface.") .multilineTextAlignment(.leading)