swift-project / pilotclient

Cross-platform cross-simulator pilot client for virtual air traffic networks
https://swift-project.org
GNU General Public License v3.0
94 stars 27 forks source link

Using custom UDP-based voice server with swift #292

Closed UncleLiuYe closed 3 weeks ago

UncleLiuYe commented 1 month ago

Hello! if I implement a UDP-based voice server myself, how can I make it compatible with Swift?

ltoenning commented 1 month ago

What should the voice server support? Your own custom voice protocol?

UncleLiuYe commented 1 month ago

I have an FSD server running, and I connected to my FSD server through swfit, but now I have developed an additional voice server based on UDP. I want to connect to my voice server while swfit is connected to the FSD server, something like this

UncleLiuYe commented 1 month ago

So I want to know how swfit can connect to a custom voice server in terms of voice communication, and how it communicates with the voice server

ltoenning commented 1 month ago

swift currently only supports Audio For VATSIM (AFV) for audio. AFAIK there is no open source/standalone implementation of the server part of AFV because it is a unique VATSIM feature. swift's audio part is more-or-less hardly coupled to the AFV client.

You could try to implement a class that uses the same interface as the CAfvClient but implements your protocol. Then not much else on swift's side must be changed (except for example the voice server configuration, ...). But depending on the structure of your custom voice server, this could be quite challenging.

Other groups that are using swift on private FSD servers are mostly using external services to simulate voice communication. An alternative for FlightGear, that may also be adapted for other simulators, is https://wiki.flightgear.org/FGCom-mumble.

ltoenning commented 3 weeks ago

No activity since one month. If you still have any question about this, just reopen the issue.