This commit is contained in:
Applevangelist 2024-03-24 13:22:54 +01:00
parent caedc314b7
commit 13cdb77957

View File

@ -824,7 +824,7 @@ function MSRS:SetVoiceProvider(Voice, Provider)
self:F( {Voice=Voice, Provider=Provider} ) self:F( {Voice=Voice, Provider=Provider} )
self.poptions=self.poptions or {} self.poptions=self.poptions or {}
self.poptions[Provider or self:GetProvider()]=Voice self.poptions[Provider or self:GetProvider()].voice =Voice
return self return self
end end
@ -1238,7 +1238,7 @@ function MSRS:PlayTextExt(Text, Delay, Frequencies, Modulations, Gender, Culture
self:T({Text, Delay, Frequencies, Modulations, Gender, Culture, Voice, Volume, Label, Coordinate} ) self:T({Text, Delay, Frequencies, Modulations, Gender, Culture, Voice, Volume, Label, Coordinate} )
if Delay and Delay>0 then if Delay and Delay>0 then
self:ScheduleOnce(Delay, MSRS.PlayTextExt, self, Text, 0, Frequencies, Modulations, Gender, Culture, Voice, Volume, Label, Coordinate) self:ScheduleOnce(Delay, self.PlayTextExt, self, Text, 0, Frequencies, Modulations, Gender, Culture, Voice, Volume, Label, Coordinate)
else else
Frequencies = Frequencies or self:GetFrequencies() Frequencies = Frequencies or self:GetFrequencies()
@ -1560,8 +1560,8 @@ end
function MSRS:_DCSgRPCtts(Text, Frequencies, Gender, Culture, Voice, Volume, Label, Coordinate) function MSRS:_DCSgRPCtts(Text, Frequencies, Gender, Culture, Voice, Volume, Label, Coordinate)
-- Debug info. -- Debug info.
self:F("MSRS_BACKEND_DCSGRPC:_DCSgRPCtts()") self:T("MSRS_BACKEND_DCSGRPC:_DCSgRPCtts()")
self:F({Text, Frequencies, Gender, Culture, Voice, Volume, Label, Coordinate}) self:T({Text, Frequencies, Gender, Culture, Voice, Volume, Label, Coordinate})
local options = {} -- #MSRS.GRPCOptions local options = {} -- #MSRS.GRPCOptions
@ -1587,7 +1587,6 @@ function MSRS:_DCSgRPCtts(Text, Frequencies, Gender, Culture, Voice, Volume, Lab
-- Provider (win, gcloud, ...) -- Provider (win, gcloud, ...)
local provider = self.provider or MSRS.Provider.WINDOWS local provider = self.provider or MSRS.Provider.WINDOWS
self:F({provider=provider})
-- Provider options: voice, credentials -- Provider options: voice, credentials
options.provider = {} options.provider = {}