]> git.basschouten.com Git - openhab-addons.git/commit
[mimictts] Use http method POST instead of GET (#13239)
authorGwendal Roulleau <dalgwen@users.noreply.github.com>
Sat, 3 Sep 2022 10:00:32 +0000 (12:00 +0200)
committerGitHub <noreply@github.com>
Sat, 3 Sep 2022 10:00:32 +0000 (12:00 +0200)
commit2b62f74e5fe829f55e5adffa0d0ab5dd4706b0c9
tree7007d4f91e6f69c3f3e068f56bf04f09d76cfde2
parentb27364679ec40c2d7b1a65ad1d9c3ded83103ff1
[mimictts] Use http method POST instead of GET (#13239)

* [mimictts] Use http method POST instead of GET

Using POST method allows longer request size.
Also, using InputStreamResponseListener avoid keeping the response in-memory

* [mimictts] quick fix for regression : providing length

Some audiosink needs it

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
bundles/org.openhab.voice.mimictts/src/main/java/org/openhab/voice/mimic/internal/InputStreamAudioStream.java [new file with mode: 0644]
bundles/org.openhab.voice.mimictts/src/main/java/org/openhab/voice/mimic/internal/MimicTTSService.java
bundles/org.openhab.voice.mimictts/src/main/java/org/openhab/voice/mimic/internal/dto/VoiceDto.java