From bc0bbaed4f640257f0f18ba84dd597157eb3232e Mon Sep 17 00:00:00 2001 From: lolodomo Date: Mon, 15 Jul 2024 13:55:08 +0200 Subject: [PATCH] Fix i18n entry matching the add-on name for voice add-ons (#17061) Signed-off-by: Laurent Garnier Signed-off-by: Ciprian Pascu --- .../src/main/resources/OH-INF/i18n/googlestt.properties | 9 +++++---- .../src/main/resources/OH-INF/i18n/googletts.properties | 9 +++++---- .../src/main/resources/OH-INF/i18n/mactts.properties | 4 ++++ .../src/main/resources/OH-INF/i18n/marytts.properties | 4 ++++ .../src/main/resources/OH-INF/i18n/mimictts.properties | 8 +++++--- .../src/main/resources/OH-INF/i18n/picotts.properties | 4 ++++ .../src/main/resources/OH-INF/i18n/pollytts.properties | 9 +++++---- .../src/main/resources/OH-INF/i18n/voicerss.properties | 5 +++-- .../src/main/resources/OH-INF/i18n/voskstt.properties | 9 +++++---- .../src/main/resources/OH-INF/i18n/watsonstt.properties | 9 +++++---- 10 files changed, 45 insertions(+), 25 deletions(-) create mode 100644 bundles/org.openhab.voice.mactts/src/main/resources/OH-INF/i18n/mactts.properties create mode 100644 bundles/org.openhab.voice.marytts/src/main/resources/OH-INF/i18n/marytts.properties create mode 100644 bundles/org.openhab.voice.picotts/src/main/resources/OH-INF/i18n/picotts.properties diff --git a/bundles/org.openhab.voice.googlestt/src/main/resources/OH-INF/i18n/googlestt.properties b/bundles/org.openhab.voice.googlestt/src/main/resources/OH-INF/i18n/googlestt.properties index 83b3a80f240..e17be224b38 100644 --- a/bundles/org.openhab.voice.googlestt/src/main/resources/OH-INF/i18n/googlestt.properties +++ b/bundles/org.openhab.voice.googlestt/src/main/resources/OH-INF/i18n/googlestt.properties @@ -1,3 +1,8 @@ +# add-on + +addon.googlestt.name = Google Cloud Speech-to-Text +addon.googlestt.description = Google Cloud STT Service uses the non-free Google Cloud Speech-to-Text API to transcript audio data to text. + voice.config.googlestt.clientId.label = Client Id voice.config.googlestt.clientId.description = Google Cloud Platform OAuth 2.0-Client Id. voice.config.googlestt.clientSecret.label = Client Secret @@ -22,7 +27,3 @@ voice.config.googlestt.refreshSupportedLocales.label = Refresh Supported Locales voice.config.googlestt.refreshSupportedLocales.description = Try loading supported locales from the documentation page. voice.config.googlestt.singleUtteranceMode.label = Single Utterance Mode voice.config.googlestt.singleUtteranceMode.description = When enabled Google Cloud Platform is responsible for detecting when to stop listening after a single utterance. (Recommended) - -# service - -service.voice.googlestt.label = Google Cloud Speech-to-Text diff --git a/bundles/org.openhab.voice.googletts/src/main/resources/OH-INF/i18n/googletts.properties b/bundles/org.openhab.voice.googletts/src/main/resources/OH-INF/i18n/googletts.properties index d37b41bc6b7..a708c2950e4 100644 --- a/bundles/org.openhab.voice.googletts/src/main/resources/OH-INF/i18n/googletts.properties +++ b/bundles/org.openhab.voice.googletts/src/main/resources/OH-INF/i18n/googletts.properties @@ -1,3 +1,8 @@ +# add-on + +addon.googletts.name = Google Cloud Test-to-speech +addon.googletts.description = Google Cloud TTS Service uses the non-free Google Cloud Text-to-Speech API to convert text or Speech Synthesis Markup Language (SSML) input into audio data of natural human speech. + voice.config.googletts.authcode.label = Authorization Code voice.config.googletts.authcode.description = This code is used once for retrieving the Google Cloud Platform access and refresh tokens. Open the following URL in your browser to generate an authorization code:

https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/cloud-platform&access_type=offline&prompt=consent&include_granted_scopes=true&response_type=code&redirect_uri=https://www.google.com&client_id={{clientId}}

After your browser has been redirected to https://www.google.com, the authorization code will be set in the browser URL as value of the "code" URL query parameter. voice.config.googletts.clientId.label = Client Id @@ -14,7 +19,3 @@ voice.config.googletts.speakingRate.label = Speaking Rate voice.config.googletts.speakingRate.description = Speaking rate can be 4x faster or slower than the normal rate. voice.config.googletts.volumeGain.label = Volume Gain voice.config.googletts.volumeGain.description = Increase the volume of the output by up to 16db or decrease the volume up to -96db. - -# service - -service.voice.googletts.label = Google Cloud Text-to-Speech diff --git a/bundles/org.openhab.voice.mactts/src/main/resources/OH-INF/i18n/mactts.properties b/bundles/org.openhab.voice.mactts/src/main/resources/OH-INF/i18n/mactts.properties new file mode 100644 index 00000000000..c2fdd02128f --- /dev/null +++ b/bundles/org.openhab.voice.mactts/src/main/resources/OH-INF/i18n/mactts.properties @@ -0,0 +1,4 @@ +# add-on + +addon.mactts.name = macOS Text-to-Speech +addon.mactts.description = The macOS Text-to-Speech (TTS) service uses the macOS "say" command for producing spoken text. diff --git a/bundles/org.openhab.voice.marytts/src/main/resources/OH-INF/i18n/marytts.properties b/bundles/org.openhab.voice.marytts/src/main/resources/OH-INF/i18n/marytts.properties new file mode 100644 index 00000000000..ca10db73c0d --- /dev/null +++ b/bundles/org.openhab.voice.marytts/src/main/resources/OH-INF/i18n/marytts.properties @@ -0,0 +1,4 @@ +# add-on + +addon.marytts.name = Mary Text-to-Speech +addon.marytts.description = The Mary Text-to-Speech (TTS) service is a pure Java implementation of a TTS service, which uses the MaryTTS project of DFKI. diff --git a/bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/i18n/mimictts.properties b/bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/i18n/mimictts.properties index f34268e20aa..fe500004aaf 100644 --- a/bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/i18n/mimictts.properties +++ b/bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/i18n/mimictts.properties @@ -1,3 +1,8 @@ +# add-on + +addon.mimictts.name = Mimic Text-to-Speech +addon.mimictts.description = The Mimic Text-to-Speech (TTS) service uses the offline open source Text-to-Speech engine designed by Mycroft A.I. + voice.config.mimictts.audioVolatility.label = Audio Volatility voice.config.mimictts.audioVolatility.description = The amount of noise added to the generated audio (0-1). Can help mask audio artifacts from the voice model. Multi-speaker models tend to sound better with a lower amount of noise than single speaker models. voice.config.mimictts.phonemeVolatility.label = Phoneme Volatility @@ -6,6 +11,3 @@ voice.config.mimictts.speakingRate.label = Speaking Rate voice.config.mimictts.speakingRate.description = Controls how fast the voice speaks the text. A value of 1 is the speed of the training dataset. Less than 1 is faster, and more than 1 is slower. voice.config.mimictts.url.label = URL voice.config.mimictts.url.description = Mimic 3 URL. - -# service -service.voice.mimictts.label = Mimic Text-to-Speech diff --git a/bundles/org.openhab.voice.picotts/src/main/resources/OH-INF/i18n/picotts.properties b/bundles/org.openhab.voice.picotts/src/main/resources/OH-INF/i18n/picotts.properties new file mode 100644 index 00000000000..91cc3e9dcc9 --- /dev/null +++ b/bundles/org.openhab.voice.picotts/src/main/resources/OH-INF/i18n/picotts.properties @@ -0,0 +1,4 @@ +# add-on + +addon.picotts.name = Pico Text-to-Speech +addon.picotts.description = The Pico Text-to-Speech (TTS) service uses the TTS binary from SVOX for producing spoken text. diff --git a/bundles/org.openhab.voice.pollytts/src/main/resources/OH-INF/i18n/pollytts.properties b/bundles/org.openhab.voice.pollytts/src/main/resources/OH-INF/i18n/pollytts.properties index 3de58858388..1f2a8bc6f2d 100644 --- a/bundles/org.openhab.voice.pollytts/src/main/resources/OH-INF/i18n/pollytts.properties +++ b/bundles/org.openhab.voice.pollytts/src/main/resources/OH-INF/i18n/pollytts.properties @@ -1,3 +1,8 @@ +# add-on + +addon.pollytts.name = Polly Text-to-Speech +addon.pollytts.description = PollyTTS is a voice service utilizing the Internet based text-to-speech (TTS) service Amazon Polly. + voice.config.pollytts.accessKey.label = Access Key voice.config.pollytts.accessKey.description = The access key part of the AWS credentials. You need to register to get a key. voice.config.pollytts.audioFormat.label = Audio Format @@ -26,7 +31,3 @@ voice.config.pollytts.serviceRegion.option.us-east-1 = US East (N. Virginia) voice.config.pollytts.serviceRegion.option.us-east-2 = US East (Ohio) voice.config.pollytts.serviceRegion.option.us-west-1 = US West (N. California) voice.config.pollytts.serviceRegion.option.us-west-2 = US West (Oregon) - -# service - -service.voice.pollytts.label = Polly Text-to-Speech diff --git a/bundles/org.openhab.voice.voicerss/src/main/resources/OH-INF/i18n/voicerss.properties b/bundles/org.openhab.voice.voicerss/src/main/resources/OH-INF/i18n/voicerss.properties index a975939028e..a18df18ae63 100644 --- a/bundles/org.openhab.voice.voicerss/src/main/resources/OH-INF/i18n/voicerss.properties +++ b/bundles/org.openhab.voice.voicerss/src/main/resources/OH-INF/i18n/voicerss.properties @@ -1,6 +1,7 @@ -# service +# add-on -service.voice.voicerss.label = VoiceRSS Text-to-Speech +addon.voicerss.name = VoiceRSS Text-to-Speech +addon.voicerss.description = VoiceRSS is an Internet based TTS service hosted at https://api.voicerss.org. # bundle config diff --git a/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/i18n/voskstt.properties b/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/i18n/voskstt.properties index 85f27910601..1604fca131a 100644 --- a/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/i18n/voskstt.properties +++ b/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/i18n/voskstt.properties @@ -1,3 +1,8 @@ +# add-on + +addon.voskstt.name = Vosk Speech-to-Text +addon.voskstt.description = Vosk STT Service uses vosk-api to perform offline speech-to-text in openHAB. + voice.config.voskstt.errorMessage.label = Error Message voice.config.voskstt.errorMessage.description = Message to be told when an error has happened. (Empty for disabled) voice.config.voskstt.group.messages.label = Info Messages @@ -14,7 +19,3 @@ voice.config.voskstt.preloadModel.label = Preload Model voice.config.voskstt.preloadModel.description = Keep the language model loaded. If the parameter is set to true, the model will be reloaded only on configuration updates. If the model is not loaded when needed, the service will try to load it. If the parameter is set to false, the model will be loaded and unloaded on each run. voice.config.voskstt.singleUtteranceMode.label = Single Utterance Mode voice.config.voskstt.singleUtteranceMode.description = When enabled recognition stops listening after a single utterance. - -# service - -service.voice.voskstt.label = Vosk Speech-to-Text diff --git a/bundles/org.openhab.voice.watsonstt/src/main/resources/OH-INF/i18n/watsonstt.properties b/bundles/org.openhab.voice.watsonstt/src/main/resources/OH-INF/i18n/watsonstt.properties index e2920d37cef..fe511c39328 100644 --- a/bundles/org.openhab.voice.watsonstt/src/main/resources/OH-INF/i18n/watsonstt.properties +++ b/bundles/org.openhab.voice.watsonstt/src/main/resources/OH-INF/i18n/watsonstt.properties @@ -1,3 +1,8 @@ +# add-on + +addon.watsonstt.name = IBM Watson Speech-to-Text +addon.watsonstt.description = Watson STT Service uses the non-free IBM Watson Speech-to-Text API to transcript audio data to text. + voice.config.watsonstt.apiKey.label = Api Key voice.config.watsonstt.apiKey.description = Api key for Speech-to-Text instance created on IBM Cloud. voice.config.watsonstt.backgroundAudioSuppression.label = Background Audio Suppression @@ -26,7 +31,3 @@ voice.config.watsonstt.smartFormatting.label = Smart Formatting voice.config.watsonstt.smartFormatting.description = If true, the service converts dates, times, series of digits and numbers, phone numbers, currency values, and internet addresses into more readable. (Not available for all locales) voice.config.watsonstt.speechDetectorSensitivity.label = Speech Detector Sensitivity voice.config.watsonstt.speechDetectorSensitivity.description = Use the parameter to suppress word insertions from music, coughing, and other non-speech events. - -# service - -service.voice.watsonstt.label = IBM Watson Speech-to-Text