]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mactts] Allow spaces within voice name (#8985)
authorKai Kreuzer <kai@openhab.org>
Sun, 8 Nov 2020 22:09:55 +0000 (23:09 +0100)
committerGitHub <noreply@github.com>
Sun, 8 Nov 2020 22:09:55 +0000 (14:09 -0800)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
bundles/org.openhab.voice.mactts/src/main/java/org/openhab/voice/mactts/internal/MacTTSAudioStream.java

index a8a8a09194e1059426d82125b26a16c1d92dfd4f..ad301a783bc5b5c627aee8b11c04648d52f0bd91 100644 (file)
@@ -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());