From f4c9bced45e1262096407f00d7dfa29dd2b917af Mon Sep 17 00:00:00 2001 From: dogjutsu <49013203+dogjutsu@users.noreply.github.com> Date: Thu, 26 Jan 2023 02:25:01 -0800 Subject: [PATCH] Add another DCS-gRPC example for MSRS docu (ATIS) (#1883) --- Moose Development/Moose/Sound/SRS.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Moose Development/Moose/Sound/SRS.lua b/Moose Development/Moose/Sound/SRS.lua index 047d34921..66a480d9e 100644 --- a/Moose Development/Moose/Sound/SRS.lua +++ b/Moose Development/Moose/Sound/SRS.lua @@ -155,6 +155,18 @@ -- -- Text-to speech with default voice after 30 seconds. -- msrs:PlaySoundText(text, 30) -- +-- Basic example of using another class (ATIS) with SRS and the DCS-gRPC backend (DCS-gRPC not previously started): +-- +-- -- Start DCS-gRPC +-- GRPC.load() +-- -- Select the alternate DCS-gRPC backend for new MSRS instances +-- MSRS.SetDefaultBackendGRPC() +-- -- Create new ATIS as usual +-- atis=ATIS:New("Nellis", 251, radio.modulation.AM) +-- -- ATIS:SetSRS() expects a string for the SRS path even though it is not needed with DCS-gRPC +-- atis:SetSRS('') +-- -- Start ATIS +-- atis:Start() -- -- @field #MSRS MSRS = {