From 93b96627977d7067e7fedfe7e4bcb50f72b4136d Mon Sep 17 00:00:00 2001 From: Kai Kreuzer Date: Sun, 8 Nov 2020 23:09:55 +0100 Subject: [PATCH] [mactts] Allow spaces within voice name (#8985) Signed-off-by: Kai Kreuzer --- .../org/openhab/voice/mactts/internal/MacTTSAudioStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a8a8a09194e..ad301a783bc 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());