rkusa / DATIS

DCS World Automatic Terminal Information Service (ATIS) broadcasted through Simple Radio Standalone (SRS)
MIT License
89 stars 21 forks source link

Request: Generalized on-demand text-to-speech radio messages (via the DLL/lua hook) #131

Open dogjutsu opened 1 year ago

dogjutsu commented 1 year ago

This isn't strictly a DATIS request, but from what I can make of the code, I suspect this could be done with a relatively light amount of effort given what DATIS already does and the modular fashion in which it seems to be built (I'd attempt it, but have no familiarity with Rust). I'm not sure if this would be more appropriate as a DATIS capability, or as a separate spinoff.

As I'm sure you're well aware, SRS has an .exe (DCS-SR-ExternalAudio.exe) and related script for doing text-to-speech-over-SRS similar to what DATIS does to do what it does: https://github.com/ciribob/DCS-SimpleTextToSpeech

The unfortunate thing about this is that it requires 'os' de-sanitization MissionScripting.lua since you have to call the external .exe to use it. DCS server hosting services (like Fox3) are unwilling to do accommodate this for security reasons -- however they don't seem to have an issue with DATIS's method of achieving the SRS text-to-speech transmissions.

So the request is for DCS-SimpleTextToSpeech -like functionality (either as part of DATIS proper or a spin-off) via DATIS's SRS transmission method that doesn't require 'os' de-sanitization.

This would really be a huge win for those of us using managed DCS hosting solutions (and quite possibly a security improvement for those hosting their own) enabling SRS text-to-speech and the like on our servers/scripted missions.

rkusa commented 1 year ago

The TTS/SRS part of DATIS is in the progress of getting moved to [DCS-gRPC)(https://github.com/DCS-gRPC/rust-server/pull/194) (and DATIS will use DCS-gRPC eventually). You'll still have to install DCS-gRPC, but more and more sever owners have it installed anyway. Will using DCS-gRPC work for you?

dogjutsu commented 1 year ago

I'll look into it tonight. Thanks for the tip.

dogjutsu commented 1 year ago

Looks like server provide is willing to install it -- if can then be interfaced with Lua (down to the mission scripting level), that should do the trick. I'm watching that PR/repo, no particular hurry.

Thanks for the reply.

rkusa commented 1 year ago

if can then be interfaced with Lua This will not work right away after the PR is merged. Interacting with the DCS-gRPC server from inside Lua (the focus is standalone clients right now) is another open feature – but it is planned.

dogjutsu commented 1 year ago

Thanks for the info -- definitely not an urgent request, just aspirational.