Push-To-Talk
Video
See this video about push to talk activation.
When a broadcast trigger is in Push-To-Talk (PTT) mode voice will only be transmitted while the "talk" button is pressed.
To set a broadcast trigger to use PTT simply change the "Activation Mode" to "Push To Talk" and choose which input axis must be pressed for voice to be transmitted. See the Unity documentation for how to define a new input axis.
UI Button⚓︎
Instead of using an input axis you may want to trigger push-to-talk from a UI button.
- Set the
Activation Mode
toOpen
. This constantly transmits voice. - Set
Mute
totrue
. This prevents any voice from being transmitted. - Configure your UI button to trigger the
ToggleMute
method. This inverts theMute
setting each time it is called.
With this setup clicking the UI button once will unmute the trigger and speech will be transmitted, clicking the button again will mute the trigger and stop speech from being transmitted.