From: Kai Kreuzer Date: Sun, 8 Nov 2020 22:09:55 +0000 (+0100) Subject: [mactts] Allow spaces within voice name (#8985) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=93b96627977d7067e7fedfe7e4bcb50f72b4136d;p=openhab-addons.git [mactts] Allow spaces within voice name (#8985) Signed-off-by: Kai Kreuzer --- diff --git a/bundles/org.openhab.voice.mactts/src/main/java/org/openhab/voice/mactts/internal/MacTTSAudioStream.java b/bundles/org.openhab.voice.mactts/src/main/java/org/openhab/voice/mactts/internal/MacTTSAudioStream.java index a8a8a09194..ad301a783b 100644 --- a/bundles/org.openhab.voice.mactts/src/main/java/org/openhab/voice/mactts/internal/MacTTSAudioStream.java +++ b/bundles/org.openhab.voice.mactts/src/main/java/org/openhab/voice/mactts/internal/MacTTSAudioStream.java @@ -136,7 +136,7 @@ class MacTTSAudioStream extends FixedLengthAudioStream { stringBuffer.append("say"); - stringBuffer.append(" --voice=" + this.voice.getLabel()); + stringBuffer.append(" --voice=\"" + this.voice.getLabel() + "\""); stringBuffer.append(" --output-file=" + outputFile); stringBuffer.append(" --file-format=" + this.audioFormat.getContainer()); stringBuffer.append(" --data-format=LEI" + audioFormat.getBitDepth() + "@" + audioFormat.getFrequency());