-
-
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
[openaitts] OpenAI Text-to-Speech initial contribution #17733
Conversation
Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/addon/addon.xml
Outdated
Show resolved
Hide resolved
…addon/addon.xml Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! 👍
I also added a few comments:
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/addon/addon.xml
Outdated
Show resolved
Hide resolved
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Show resolved
Hide resolved
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
…voice/openaitts/internal/OpenAITTSService.java Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…voice/openaitts/internal/OpenAITTSService.java Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…voice/openaitts/internal/OpenAITTSService.java Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…voice/openaitts/internal/OpenAITTSService.java Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…config/config.xml Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…config/config.xml Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…voice/openaitts/internal/OpenAITTSService.java Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw a few more improvements after scrolling through the code again:
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
...enhab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSVoice.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…config/config.xml Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
…voice/openaitts/internal/OpenAITTSVoice.java Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
Signed-off-by: Artur-Fedjukevits <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments!
I also gave it a brief test today and it seems to work fine. 👍
Here are a few more comments I ran into while testing the add-on:
...hab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSService.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
...enhab.voice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSVoice.java
Outdated
Show resolved
Hide resolved
...ice.openaitts/src/main/java/org/openhab/voice/openaitts/internal/OpenAITTSConfiguration.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.voice.openaitts/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Artur-Fedjukevits <[email protected]>
Co-authored-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Yes yes very good. 👍 |
Signed-off-by: Wouter Born <[email protected]>
Signed-off-by: Wouter Born <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! It works very well now. 🙂 👍
Does this jar work for 4.3.0 as well or is it only compatible with 5.0? |
Yes, that jar was compiled for 4.3 |
Also-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]>
Also-by: Wouter Born <[email protected]> Signed-off-by: Artur-Fedjukevits <[email protected]> Signed-off-by: Christian Koch <[email protected]>
The OpenAI TTS (Text-to-Speech) addon for openHAB allows you to integrate OpenAI's Text-to-Speech capabilities into your openHAB system. The advantage of this service over others is that one selected voice can speak different languages. This is useful, for example, in conjunction with chatGPT binding, which will help in learning foreign languages.
Compiled jar - https://fedjukevitsh.com/s/TeaDeLCKSTjD7Yi