From 19d5cb8ecbe84ef3182ff5accfac8ffc6a1bf117 Mon Sep 17 00:00:00 2001 From: Rolln Date: Sat, 30 Oct 2021 23:35:27 -0600 Subject: [PATCH] Added a command line option that will enable SSML support when using Google text-to-speech. --- Moose Development/Moose/Sound/SRS.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Sound/SRS.lua b/Moose Development/Moose/Sound/SRS.lua index 9be975a78..8f27c6dbf 100644 --- a/Moose Development/Moose/Sound/SRS.lua +++ b/Moose Development/Moose/Sound/SRS.lua @@ -88,10 +88,19 @@ -- -- Use a specific "culture" with the @{#MSRS.SetCulture} function, e.g. `:SetCulture("en-US")` or `:SetCulture("de-DE")`. -- +-- ## Set Google +-- +-- Use Google's text-to-speech engine with the @{#MSRS.SetGoogle} function, e.g. ':SetGoogle()'. +-- By enabling this it also allows you to utilize SSML in your text for added flexibilty. +-- For more information on setting up a cloud account, visit: https://cloud.google.com/text-to-speech +-- Google's supported SSML reference: https://cloud.google.com/text-to-speech/docs/ssml +-- -- ## Set Voice -- -- Use a specifc voice with the @{#MSRS.SetVoice} function, e.g, `:SetVoice("Microsoft Hedda Desktop")`. -- Note that this must be installed on your windows system. +-- If enabling SetGoogle(), you can use voices provided by Google +-- Google's supported voices: https://cloud.google.com/text-to-speech/docs/voices -- -- ## Set Coordinate -- @@ -678,7 +687,7 @@ function MSRS:_GetCommand(freqs, modus, coal, gender, voice, culture, volume, sp -- Set google. if self.google then - command=command..string.format(' -G "%s"', self.google) + command=command..string.format(' --ssml -G "%s"', self.google) end -- Debug output.