7/12/2023 0 Comments Best push to talk key![]() This is not the same as the previous category as it allows the following: All PhotonVoiceRecorder components transmitting will use the same globally set target group in this case.If targetGroup is not equal to 0 then you can still receive voice streams transmitted to that same group.No need to explicitly set it as a global group unless you changed something and want to reset setup. If targetGroup is equal to 0 then you have the default behaviour.In this case no need to call ChangeAudioGroups or set PhotonVoiceRecorder.AudioGroup as it's done internally for you. If you use one single group, at a time, to transmit voice to in all clients and all PhotonVoiceRecorder components, there is a shortcut to set or switch this global group: = targetGroup Use cases could be grouped into three different categories: In all cases, you always listen to default interest group 0 and you can transmit voice to a single interest group at the same time per PhotonVoiceRecorder component. The target interest group can be set using: photonVoiceRecorder.AudioGroup = targetGroup The operation to do all this is: (groupsToRemove, groupsToAdd) Įach actor needs to decide to which interest group it wants to transmit audio to. You can also unsubscribe from previously subscribed ones. If you want to listen to voice sent to other groups you need to subscribe to those groups. Photon Voice uses Photon Realtime's " interest groups" to separate mutually exclusive "voice channels" belonging to different "voice conversations".Įach actor needs to subscribe to interest groups it's interested in.īy default, all actors listen to interest group 0 which could be seen as a global interest group for voice broadcast. In the demo we bind keyboard keys ('v' for broadcast and numeric keys corresponding to joined actors' numbers)Īnd UI buttons ("TalkToAll" for broadcast, "TalkToX" per joined actor number 'X') to Push-to-Talk groups and use PushToTalkOn and PushToTalkOff methods. to stop transmission set it back to false. ![]()
0 Comments
Leave a Reply. |