Sound update

This commit is contained in:
Frank
2021-05-30 22:36:52 +02:00
parent 4c3d44a63b
commit cfcd7d7588
6 changed files with 45 additions and 22 deletions

View File

@@ -1115,6 +1115,7 @@ function ATIS:SetSTTS(PathToSRS, Gender, Culture, Voice, Port)
self.msrs:SetGender(Gender)
self.msrs:SetCulture(Culture)
self.msrs:SetVoice(Voice)
self.msrs:SetPort(Port)
return self
end
@@ -2187,9 +2188,6 @@ function ATIS:onafterReport(From, Event, To, Text)
-- Replace ";" by "."
local text=string.gsub(text, ";", ". ")
env.info("FF: "..text)
--local msrs=MSRS:New("D:\\DCS\\_SRS\\", 305, Modulation)
--msrs:PlayText(text)
-- Play text-to-speech report.
self.msrs:PlayText(text)