mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'develop' into FF/Ops
This commit is contained in:
commit
b14f3f53aa
@ -2776,8 +2776,9 @@ do -- COORDINATE
|
|||||||
-- @param #COORDINATE FromCoordinate The coordinate to measure the distance and the bearing from.
|
-- @param #COORDINATE FromCoordinate The coordinate to measure the distance and the bearing from.
|
||||||
-- @param #boolean Bogey Add "Bogey" at the end if true (not yet declared hostile or friendly)
|
-- @param #boolean Bogey Add "Bogey" at the end if true (not yet declared hostile or friendly)
|
||||||
-- @param #boolean Spades Add "Spades" at the end if true (no IFF/VID ID yet known)
|
-- @param #boolean Spades Add "Spades" at the end if true (no IFF/VID ID yet known)
|
||||||
|
-- @param #boolean SSML Add SSML tags speaking aspect as 0 1 2 and "brah" instead of BRAA
|
||||||
-- @return #string The BRAA text.
|
-- @return #string The BRAA text.
|
||||||
function COORDINATE:ToStringBRAANATO(FromCoordinate,Bogey,Spades)
|
function COORDINATE:ToStringBRAANATO(FromCoordinate,Bogey,Spades,SSML)
|
||||||
|
|
||||||
-- Thanks to @Pikey
|
-- Thanks to @Pikey
|
||||||
local BRAANATO = "Merged."
|
local BRAANATO = "Merged."
|
||||||
@ -2798,10 +2799,11 @@ do -- COORDINATE
|
|||||||
local track = UTILS.BearingToCardinal(bearing) or "North"
|
local track = UTILS.BearingToCardinal(bearing) or "North"
|
||||||
|
|
||||||
if rangeNM > 3 then
|
if rangeNM > 3 then
|
||||||
|
if SSML then
|
||||||
if aspect == "" then
|
if aspect == "" then
|
||||||
BRAANATO = string.format("BRA, %03d, %d miles, Angels %d, Track %s",bearing, rangeNM, alt, track)
|
BRAANATO = string.format("brah <say-as interpret-as='characters'>%03d</say-as>, %d miles, Angels %d, Track %s",bearing, rangeNM, alt, track)
|
||||||
else
|
else
|
||||||
BRAANATO = string.format("BRAA, %03d, %d miles, Angels %d, %s, Track %s",bearing, rangeNM, alt, aspect, track)
|
BRAANATO = string.format("brah <say-as interpret-as='characters'>%03d</say-as>, %d miles, Angels %d, %s, Track %s",bearing, rangeNM, alt, aspect, track)
|
||||||
end
|
end
|
||||||
if Bogey and Spades then
|
if Bogey and Spades then
|
||||||
BRAANATO = BRAANATO..", Bogey, Spades."
|
BRAANATO = BRAANATO..", Bogey, Spades."
|
||||||
@ -2812,6 +2814,22 @@ do -- COORDINATE
|
|||||||
else
|
else
|
||||||
BRAANATO = BRAANATO.."."
|
BRAANATO = BRAANATO.."."
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
if aspect == "" then
|
||||||
|
BRAANATO = string.format("BRA %03d, %d miles, Angels %d, Track %s",bearing, rangeNM, alt, track)
|
||||||
|
else
|
||||||
|
BRAANATO = string.format("BRAA %03d, %d miles, Angels %d, %s, Track %s",bearing, rangeNM, alt, aspect, track)
|
||||||
|
end
|
||||||
|
if Bogey and Spades then
|
||||||
|
BRAANATO = BRAANATO..", Bogey, Spades."
|
||||||
|
elseif Bogey then
|
||||||
|
BRAANATO = BRAANATO..", Bogey."
|
||||||
|
elseif Spades then
|
||||||
|
BRAANATO = BRAANATO..", Spades."
|
||||||
|
else
|
||||||
|
BRAANATO = BRAANATO.."."
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return BRAANATO
|
return BRAANATO
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -96,6 +96,14 @@
|
|||||||
-- For more information on setting up a cloud account, visit: https://cloud.google.com/text-to-speech
|
-- 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
|
-- Google's supported SSML reference: https://cloud.google.com/text-to-speech/docs/ssml
|
||||||
--
|
--
|
||||||
|
-- **NOTE on using GOOGLE TTS with SRS:** You need to have the C# library installed in your SRS folder for Google to work.
|
||||||
|
-- You can obtain it e.g. here: [NuGet](https://www.nuget.org/packages/Grpc.Core)
|
||||||
|
--
|
||||||
|
-- **Pro-Tipp** - use the command line with power shell to call DCS-SR-ExternalAudio.exe - it will tell you what is missing.
|
||||||
|
-- and also the Google Console error, in case you have missed a step in setting up your Google TTS.
|
||||||
|
-- E.g. `.\DCS-SR-ExternalAudio.exe -t "Text Message" -f 255 -m AM -c 2 -s 2 -z -G "Path_To_You_Google.Json"`
|
||||||
|
-- Plays a message on 255AM for the blue coalition in-game.
|
||||||
|
--
|
||||||
-- ## Set Voice
|
-- ## Set Voice
|
||||||
--
|
--
|
||||||
-- Use a specifc voice with the @{#MSRS.SetVoice} function, e.g, `:SetVoice("Microsoft Hedda Desktop")`.
|
-- Use a specifc voice with the @{#MSRS.SetVoice} function, e.g, `:SetVoice("Microsoft Hedda Desktop")`.
|
||||||
|
|||||||
@ -1625,6 +1625,10 @@ do -- Cargo
|
|||||||
["Ural-4320T"] = 14,
|
["Ural-4320T"] = 14,
|
||||||
["ZBD04A"] = 7, -- new by kappa
|
["ZBD04A"] = 7, -- new by kappa
|
||||||
["VAB_Mephisto"] = 8, -- new by Apple
|
["VAB_Mephisto"] = 8, -- new by Apple
|
||||||
|
["tt_KORD"] = 6, -- 2.7.1 HL/TT
|
||||||
|
["tt_DSHK"] = 6,
|
||||||
|
["HL_KORD"] = 6,
|
||||||
|
["HL_DSHK"] = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Assuming that each passenger weighs 95 kg on average.
|
-- Assuming that each passenger weighs 95 kg on average.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user