How can I detect the speaker audio group?
I'm using Photon Voice in Unity. I did something simple: I display a message when someone is talking.
This is easy, on the Update method I just check for the Speaker class with Speaker.IsPlaying and then I update a text saying whether that person is speaking or not based on that value.
The issue arises when that player is in multiple audio groups. I get his speaker.isplaying = true when he is talking but he is talking to an audio group that I didn't subscribe to. This means, I get a isplaying = true but I cannot hear him.
We share a common "room", something like a world chat that everybody can talk and listen to. And then, we also have a private room, where I don't listen to what he is saying. But I keep getting his IsPlaying values. So it seems that I get notified that he is talking in the private room, but obviously, I cannot hear him.
What I want to do:
Detect to which audio group he is talking to. If it is to one that I'm not subscribed, ignore it. But there is no Speaker.AudioGroup variable or anything that tells me to which audio group he is talking to.
I'm guessing photon should not send me his isplaying status if he is not talking to one of my groups. But anything that works would help. Any ideas?