-
-
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
[mimictts] Fix ssml and playing from audiosinks using the audio servlet #14120
[mimictts] Fix ssml and playing from audiosinks using the audio servlet #14120
Conversation
9c5be8e
to
85e1fbf
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/mimic-text-to-speech/137040/12 |
if (!config.workaroundServletSink) { | ||
return new InputStreamAudioStream(inputStreamFromMimic, AUDIO_FORMAT, length); | ||
} else { | ||
// Some audio sinks use the openHAB servlet to get audio. This servlet require the |
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.
Just for my information, which ones ?
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 only reproduced the issue and tested my fix against the chromecast binding, but a user also reports error with webaudio and yamaha musiccast.
Nobody complains, but as far as I remember, the squeezebox binding also uses the audio servlet.
bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/i18n/mimictts_fr.properties
Outdated
Show resolved
Hide resolved
…vlet Fix : - ssml not working - add an option to store the audio on a file before sending it to openhab. It enables audiosink based on the audio servlet to play the sound (the servlet requires the getClonedStream method, unavailable with a pure streaming approach). The files are stored in the user data directory and deleted as soon as possible (stream close detection). - fix error with voice name not encoded Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Rebasing. Remove i18n, typo in README, and year 2023 Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
85e1fbf
to
74f5191
Compare
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
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.
LGTM, thank you
…et (openhab#14120) * [mimictts] Fix ssml and playing from an audiosink using the audio servlet Fix : - ssml not working - add an option to store the audio on a file before sending it to openhab. It enables audiosink based on the audio servlet to play the sound (the servlet requires the getClonedStream method, unavailable with a pure streaming approach). The files are stored in the user data directory and deleted as soon as possible (stream close detection). - fix error with voice name not encoded Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
…et (openhab#14120) * [mimictts] Fix ssml and playing from an audiosink using the audio servlet Fix : - ssml not working - add an option to store the audio on a file before sending it to openhab. It enables audiosink based on the audio servlet to play the sound (the servlet requires the getClonedStream method, unavailable with a pure streaming approach). The files are stored in the user data directory and deleted as soon as possible (stream close detection). - fix error with voice name not encoded Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Fix :
Thanks rotec52 for spotting it and providing solution.
Signed-off-by: Gwendal Roulleau gwendal.roulleau@gmail.com