]> git.basschouten.com Git - openhab-addons.git/commit
[mimictts] Fix ssml and playing from audiosinks using the audio servlet (#14120)
authorGwendal Roulleau <dalgwen@users.noreply.github.com>
Sat, 14 Jan 2023 08:39:59 +0000 (09:39 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 08:39:59 +0000 (09:39 +0100)
commitd497defe34c1ea21fb6b1932969df800fe90b9dc
treea685cfcbeb781c17101e1121d9a15326a7626791
parent0de87b15d2d03e07074c51a41237c647a20c291d
[mimictts] Fix ssml and playing from audiosinks using the audio servlet (#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>
bundles/org.openhab.voice.mimictts/README.md
bundles/org.openhab.voice.mimictts/src/main/java/org/openhab/voice/mimic/internal/AutoDeleteFileAudioStream.java [new file with mode: 0644]
bundles/org.openhab.voice.mimictts/src/main/java/org/openhab/voice/mimic/internal/MimicConfiguration.java
bundles/org.openhab.voice.mimictts/src/main/java/org/openhab/voice/mimic/internal/MimicTTSService.java
bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.voice.mimictts/src/main/resources/OH-INF/i18n/mimictts.properties