-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[voicerss] Add supported voices #10167
Conversation
Added all supported voices for the individual languages taken from API docs. When asked about voices list without locale, it will return all of them, when asked about particular locale, only voices for that locale are returned. Signed-off-by: cURLy bOi <[email protected]>
...e.voicerss/src/main/java/org/openhab/voice/voicerss/internal/cloudapi/VoiceRSSCloudImpl.java
Show resolved
Hide resolved
Additionnally, is it a change that will break all existing setup ?
What should be the new value ? Did you check the result with the existing console command |
i did not because i don't even have java devenv. my commit is simply a suggestion how to implement the full api. i don't think it is possible to endlessly keep backwards compatibility with old systems and this would be a fix that's easily solved anyway. |
That means you propose a PR you even did not test !!! Very dangerous. The strict minimum would be to mention it. |
Fair point, I will remember it. I have 20 years of programming experience and had my Java pro friend code-review it to make sure it's not absolute rubbish :) |
Added the suggested lowercase conversion to catch more input Signed-off-by: cURLy bOi <[email protected]>
I suggest to not merge this PR as it was not tested, even not by his author. |
By the way, the PR is not compiling. |
Signed-off-by: cURLy bOi <[email protected]>
Fixed the typo. Assuming it will compile, can I test this by grabbing an artifact somewhere, putting it in /var/lib/wherever and test myself? |
My feeling is that you could simply keep backward compatibility by keeping Regarding |
|
So you propose that each locale's map will contain the individual voices, and then also |
Here you are right. Furthermore, I just realized that the voice is not taken into account in the createURL, so even though the voice is selectable, it would make no difference in the actual API call. So thank you for making me realize this. |
I have done the required changes (backward compatibility + new voice UID) but I always get the same voice. I imagine the voice has to be passed to the request. |
Exactly. The createURL needs to take the voice as another argument, that is passed from getTextToSpeech (so that needs to be added there as well and passed to the createURL) and finally, this is called from VoiceRSSTTSService.java in synthesize, where you have the Voice object with the available voice name. In the API URL, the parameter is simply |
This was clearly not a change that can be done without compiling and without any testing !!!! |
You are right. Maybe this will finally get me to create a dev environment so I can properly dev plugins. |
Ok, I have something working. Considering the number of changes, the best solution would be that I create my own PR. Are you ok ? |
Regarding the backward compatibility, it consists only in adding a "default" voice with the same UID as before (the UID is what every user has set). And I also take care to reuse the same cached files when this "default" voice is set. PS: I switched to Zola voice ;) |
To be closed (very partial implementation not working). |
Agreed to migrate to different PR. |
I only have this "Josef" dude :D Would prefer a girl too. |
Added all supported voices for the individual languages taken from API docs. When asked about voices list without locale, it will return all of them, when asked about particular locale, only voices for that locale are returned.
Signed-off-by: cURLy bOi [email protected]