mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xx
This commit is contained in:
parent
0e91a658b3
commit
f009370e07
@ -267,6 +267,135 @@ MSRS.version="0.3.3"
|
|||||||
--- Voices
|
--- Voices
|
||||||
-- @type MSRS.Voices
|
-- @type MSRS.Voices
|
||||||
MSRS.Voices = {
|
MSRS.Voices = {
|
||||||
|
Amazon = {
|
||||||
|
Generative = {
|
||||||
|
en_AU = {
|
||||||
|
Olivia = "Olivia",
|
||||||
|
},
|
||||||
|
en_GB = {
|
||||||
|
Amy = "Amy",
|
||||||
|
},
|
||||||
|
en_US = {
|
||||||
|
Danielle = "Danielle",
|
||||||
|
Joanna = "Joanna",
|
||||||
|
Ruth = "Ruth",
|
||||||
|
Stephen = "Stephen",
|
||||||
|
},
|
||||||
|
fr_FR = {
|
||||||
|
["Léa"] = "Léa",
|
||||||
|
["Rémi"] = "Rémi",
|
||||||
|
},
|
||||||
|
de_DE = {
|
||||||
|
Vicki = "Vicki",
|
||||||
|
Daniel = "Daniel",
|
||||||
|
},
|
||||||
|
it_IT = {
|
||||||
|
Bianca = "Bianca",
|
||||||
|
Adriano = "Adriano",
|
||||||
|
},
|
||||||
|
es_ES = {
|
||||||
|
Lucia = "Lucia",
|
||||||
|
Sergio = "Sergio",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
LongForm = {
|
||||||
|
en_US = {
|
||||||
|
Danielle = "Danielle",
|
||||||
|
Gregory = "Gregory",
|
||||||
|
Ivy = "Ivy",
|
||||||
|
Ruth = "Ruth",
|
||||||
|
Patrick = "Patrick",
|
||||||
|
},
|
||||||
|
es_ES = {
|
||||||
|
Alba = "Alba",
|
||||||
|
["Raúl"] = "Raúl",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Neural = {
|
||||||
|
en_AU = {
|
||||||
|
Olivia = "Olivia",
|
||||||
|
},
|
||||||
|
en_GB = {
|
||||||
|
Amy = "Amy",
|
||||||
|
Emma = "Emma",
|
||||||
|
Brian = "Brian",
|
||||||
|
Arthur = "Arthur",
|
||||||
|
},
|
||||||
|
en_US = {
|
||||||
|
Danielle = "Danielle",
|
||||||
|
Gregory = "Gregory",
|
||||||
|
Ivy = "Ivy",
|
||||||
|
Joanna = "Joanna",
|
||||||
|
Kendra = "Kendra",
|
||||||
|
Kimberly = "Kimberly",
|
||||||
|
Salli = "Salli",
|
||||||
|
Joey = "Joey",
|
||||||
|
Kevin = "Kevin",
|
||||||
|
Ruth = "Ruth",
|
||||||
|
Stephen = "Stephen",
|
||||||
|
},
|
||||||
|
fr_FR = {
|
||||||
|
["Léa"] = "Léa",
|
||||||
|
["Rémi"] = "Rémi",
|
||||||
|
},
|
||||||
|
de_DE = {
|
||||||
|
Vicki = "Vicki",
|
||||||
|
Daniel = "Daniel",
|
||||||
|
},
|
||||||
|
it_IT = {
|
||||||
|
Bianca = "Bianca",
|
||||||
|
Adriano = "Adriano",
|
||||||
|
},
|
||||||
|
es_ES = {
|
||||||
|
Lucia = "Lucia",
|
||||||
|
Sergio = "Sergio",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Standard = {
|
||||||
|
en_AU = {
|
||||||
|
Nicole = "Nicole",
|
||||||
|
Russel = "Russel",
|
||||||
|
},
|
||||||
|
en_GB = {
|
||||||
|
Amy = "Amy",
|
||||||
|
Emma = "Emma",
|
||||||
|
Brian = "Brian",
|
||||||
|
},
|
||||||
|
en_IN = {
|
||||||
|
Aditi = "Aditi",
|
||||||
|
Raveena = "Raveena",
|
||||||
|
},
|
||||||
|
en_US = {
|
||||||
|
Ivy = "Ivy",
|
||||||
|
Joanna = "Joanna",
|
||||||
|
Kendra = "Kendra",
|
||||||
|
Kimberly = "Kimberly",
|
||||||
|
Salli = "Salli",
|
||||||
|
Joey = "Joey",
|
||||||
|
Kevin = "Kevin",
|
||||||
|
},
|
||||||
|
fr_FR = {
|
||||||
|
Celine = "Celine",
|
||||||
|
["Léa"] = "Léa",
|
||||||
|
Mathieu = "Mathieu",
|
||||||
|
},
|
||||||
|
de_DE = {
|
||||||
|
Marlene = "Marlene",
|
||||||
|
Vicki = "Vicki",
|
||||||
|
Hans = "Hans",
|
||||||
|
},
|
||||||
|
it_IT = {
|
||||||
|
Carla = "Carla",
|
||||||
|
Bianca = "Bianca",
|
||||||
|
Giorgio = "Giorgio",
|
||||||
|
},
|
||||||
|
es_ES = {
|
||||||
|
Conchita = "Conchita",
|
||||||
|
Lucia = "Lucia",
|
||||||
|
Enrique = "Enrique",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
Microsoft = { -- working ones if not using gRPC and MS
|
Microsoft = { -- working ones if not using gRPC and MS
|
||||||
["Hedda"] = "Microsoft Hedda Desktop", -- de-DE
|
["Hedda"] = "Microsoft Hedda Desktop", -- de-DE
|
||||||
["Hazel"] = "Microsoft Hazel Desktop", -- en-GB
|
["Hazel"] = "Microsoft Hazel Desktop", -- en-GB
|
||||||
@ -974,7 +1103,7 @@ end
|
|||||||
-- - `MSRS.Provider.WINDOWS`: Microsoft Windows (default)
|
-- - `MSRS.Provider.WINDOWS`: Microsoft Windows (default)
|
||||||
-- - `MSRS.Provider.GOOGLE`: Google Cloud
|
-- - `MSRS.Provider.GOOGLE`: Google Cloud
|
||||||
-- - `MSRS.Provider.AZURE`: Microsoft Azure (only with DCS-gRPC backend)
|
-- - `MSRS.Provider.AZURE`: Microsoft Azure (only with DCS-gRPC backend)
|
||||||
-- - `MSRS.Provier.AMAZON`: Amazone Web Service (only with DCS-gRPC backend)
|
-- - `MSRS.Provier.AMAZON`: Amazon Web Service (only with DCS-gRPC backend)
|
||||||
--
|
--
|
||||||
-- Note that all providers except Microsoft Windows need as additonal information the credentials of your account.
|
-- Note that all providers except Microsoft Windows need as additonal information the credentials of your account.
|
||||||
--
|
--
|
||||||
@ -1442,7 +1571,7 @@ function MSRS:_GetCommand(freqs, modus, coal, gender, voice, culture, volume, sp
|
|||||||
elseif self.provider==MSRS.Provider.WINDOWS then
|
elseif self.provider==MSRS.Provider.WINDOWS then
|
||||||
-- Nothing to do.
|
-- Nothing to do.
|
||||||
else
|
else
|
||||||
self:E("ERROR: SRS only supports WINWOWS and GOOGLE as TTS providers! Use DCS-gRPC backend for other providers such as ")
|
self:E("ERROR: SRS only supports WINDOWS and GOOGLE as TTS providers! Use DCS-gRPC backend for other providers such as AWS and Azure.")
|
||||||
end
|
end
|
||||||
|
|
||||||
if not UTILS.FileExists(fullPath) then
|
if not UTILS.FileExists(fullPath) then
|
||||||
@ -1660,7 +1789,7 @@ function MSRS:_DCSgRPCtts(Text, Frequencies, Gender, Culture, Voice, Volume, Lab
|
|||||||
ssml=string.format("<voice%s%s>%s</voice>", gender, language, Text)
|
ssml=string.format("<voice%s%s>%s</voice>", gender, language, Text)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _,freq in pairs(Frequencies) do
|
for _,freq in pairs(Frequencies) do
|
||||||
self:T("Calling GRPC.tts with the following parameter:")
|
self:T("Calling GRPC.tts with the following parameter:")
|
||||||
self:T({ssml=ssml, freq=freq, options=options})
|
self:T({ssml=ssml, freq=freq, options=options})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user