[Bug] Voice issues and more docuementation needed for migration to new voice system #263
Replies: 4 comments
|
Little update using mumble legacy natives: Lots of players are talking now, we're not sure why other than we think it might be related to turning off The 3d voice is working, but the toggling of the range ain't working but it's better than nothing! |
|
Still an issue! Voice is very hit and miss, works for a limited amount of people per restart of a server... |
|
Hi, we are preparing more fixes related to the mumble voice api.
We have temporary channels, these are mainly used by the mumble compatibility layer, but can be used by the scripts as well. These type of channel deletes itself when the last player leaves.
There is no limit and there is no expected cost at scale.
We'll open the voice client api once we are happy with the stability of the current voice output to rule out conflicts.
The rule is that no voice packet is every duplicated. It is always one sender and then n receivers and no receiver will receive the same packet twice. The job of possible transformations for this audio data will be done by the client voice api. |
|
To start a discussion about the missing natives:
Since channels now are spatial as well this overlaps with the responsibility of a channel. So not sure if both ways should be done.
Needs to be handled by the client voice api on the receiver end. We will need to think about some meta info to indicate what kind of voice data the player received.
This has a game native that does the same thing (NETWORK_IS_PLAYER_TALKING). But I agree there probably could be a custom one as well.
Should also be handled by the client voice api. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
We've added
voice_internalandsetr sv_mumble trueto theserver.cfgbut the old pma-voice resource which uses mumble doesn't seem to work, I assumedsetr sv_mumble truewas going to make all the mumble natives work. Not sure if others are having issues with voice not working, we're currently using pma-voice. Nothing seems to be erroring, but voice isn't really working. I have a suspicion it's related to playerids getting reused and mumble isn't liking it maybe.I've gone reading https://docs.fivem.net/docs/scripting-manual/voice/#fivem-for-gtav-enhanced to convert over to the new voice system as it's deprecated, is there natives missing or is it not quite 1:1 as it were yet.
These are my findings about trying to migrate, it could be there are new natives for this but not mentioned on the scripting-manual at this time. I could be wrong with my findings, or misunderstand of how it supposed to work, it might be useful if there was a cfx native reference that has only enhanced natives within it, to know what's not available or getting deprecated.
A. Missing natives - feature is lost, no replacement
MumbleSetAudioInputDistancemaxDistanceis fixed per channel at creation, so range is a property of the channel, not the speaker. The only workaround is one channel per range tier with every player a member of all tiers and unmuted in one - which multiplies spatial indexes by the tier count. Wanted: a per-member range, e.g.SetPlayerVoiceRangeInChannel(channelId, clientId, distance), or a distance argument on addMumbleSetVolumeOverrideByServerIdMumbleSetSubmixForServerIdCreateAudioSubmix,SetAudioSubmixEffectRadioFx,AddAudioSubmixOutput) still exist, but nothing routes a voice stream into one. There is currently no way to apply any audio effect to voice - this removes radio filter effects and megaphone/PA effects entirelyMumbleIsPlayerTalkingMumbleSetAudioInputIntentB. Undocumented behaviour - blocks correct implementation
Issue type
Both / Unsure
Repro rate
Always
Server build version
FXServer-early-access b96 win32
OS
No response
CPU
No response
GPU
No response
RAM
No response
Storage type
None
Connection type
None
ISP and bandwidth
No response
DxDiag
No response
Network graph
No response
Platform
None
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
None
Hosting provider
None
Machine type
None
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
pma-voiceon Enhanced or look at the new native docs to try workout how to convert it to the new voice systemExpected Behavior
pma-voiceto work until all the new voice system contains all feature set seen in the old mumble system.Actual Behavior
Mumble voice isn't working correctly at least in our server.
Evidence
No response
Additional Context
Would be nice to hear from other server owners to know if their also having issues with voice, and if they are using
pma-voiceAll reactions