[mactts] Allow spaces within voice name (#8985)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2020-11-08 23:09:55 +01:00 committed by GitHub
parent 370c367bc3
commit 93b9662797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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());