Voice Chat Examples
This section provides practical examples of Voice Chat in Steam Lobbies and managed Multiplayer games.
Examples include lobby voice, Push To Talk, Voice Activation, microphone mute, speaker indicators, audio meters, automatic leveling, and Proximity Voice.
All examples below use Blueprint nodes. Equivalent functionality is available through the C++ API.
Prerequisites
Before starting Voice Chat:
- Steam must be initialized
- The local player must be a member of a Steam Lobby or a managed Multiplayer game
- Voice participants must share that lobby/session
Voice Chat also works before the managed game starts.
Starting Basic Voice Chat
A typical basic setup is:
- Create/join a Steam Lobby or host/join a Multiplayer game.
- Call Start Steam Voice Chat locally on each participating client.
- Check the returned boolean.
- If the call fails, use the returned Error Message for logging or UI.
Start Steam Voice Chat initializes local voice capture/playback using the current lobby or managed game. It does not create or join a lobby.
Normally, call it once after entering the lobby or game. You do not need to restart Voice Chat to change mode, enable/disable voice, mute players, or adjust volume.
By default Voice Chat is enabled, but Start Steam Voice Chat does not override an existing disabled preference. To re-enable it after the user disabled it, call Set Steam Voice Chat Enabled(true).
Stop Steam Voice Chat ends local capture/playback. A later Start preserves in-memory settings, except transient Push To Talk key state and world-bound Actor references.
Voice Chat in a Pre-Game Lobby
- The host calls Create Steam Lobby, and others join with Join Steam Lobby.
- Each member calls Start Steam Voice Chat once they have joined.
- Use Global mode in the waiting room; no Voice Actors are required.
- When the owner calls Start Steam Game From Current Lobby, existing lobby members join the managed game and the voice transport handles the handoff/reconnection.
- In gameplay, optionally switch to Proximity and rebind the new world Actors with Set Steam Player Voice Actor.
Voice Chat does not join players to the Unreal game. For the Lobby-to-Multiplayer workflow, see Multiplayer.
Push To Talk
To implement Push To Talk:
- Set Steam Voice Input Mode to
PushToTalk. This only needs to be done once when configuring the Voice Chat input mode. - When the player's Push To Talk input is pressed, call Set Steam Push To Talk Active with
true. - When the input is released, call it again with
false.
Set Steam Push To Talk Active only affects voice when input mode is PushToTalk. Is Steam Push To Talk Active reports key state, not confirmed audio delivery.
Voice Activation
To use microphone-based activation set Steam Voice Input Mode to VoiceActivation.
Voice Activation then uses the current activation threshold to determine when the local microphone should begin transmitting.
Optionally, call Set Steam Voice Activation Threshold if you want to customize the sensitivity.
The threshold is a normalized value between 0 and 1 and controls the microphone RMS level required before local voice is transmitted.
Use Is Steam Local Voice Active for an energy-based microphone activity icon, or Is Local Steam Player Speaking for a transmission indicator; the two are not equivalent.
Always-On Voice
Set Steam Voice Input Mode to AlwaysOn when the microphone should transmit whenever usable voice data is available.
This mode does not require Push To Talk state.
Showing Speaking Indicators
Use:
- Subscribe To Local Steam Player Started Speaking
- Subscribe To Local Steam Player Stopped Speaking
- Subscribe To Remote Steam Player Started Speaking
- Subscribe To Remote Steam Player Stopped Speaking
Remote callbacks provide the speaking player's FSteamUserID.
A typical UI flow is:
- Subscribe when the multiplayer HUD becomes active.
- Store each
FSteamVoiceChatListenerHandle. - Show or hide a speaking icon when the corresponding event fires.
- Unsubscribe when the HUD or listener is destroyed.
You can also query packet activity with Is Local Steam Player Speaking and Is Steam Player Speaking. In Always On mode this may stay active through silence; use the Voice Active getters for audio-energy indicators.
Voice Activity and Level Meters
For the local microphone, poll Is Steam Local Voice Active and Get Steam Local Voice Level. For remote lobby members, pass their FSteamUserID into Is Steam Player Voice Active and Get Steam Player Voice Level.
For a UI meter, use a repeating timer (for example every 0.1 seconds) to read Voice Level (0–1) and update a progress bar. Use Voice Active to show/hide a microphone icon.
Voice Level is measured before automatic leveling, manual gain and Proximity attenuation. It is not calibrated dB. Voice Active is energy-based and can react to loud background noise; it is not remote Push To Talk state.
Muting a Player
Use Mute Steam Player with the remote player's FSteamUserID.
Use Unmute Steam Player to restore playback.
Is Steam Player Muted can be used to update a player-list or voice-settings UI.
Muting is local to the current user.
Muting the Local Microphone
Set Steam Microphone Muted(true) disables outgoing capture without muting incoming voice, in all input modes. Unmute using false.
- Is Steam Microphone Muted returns the mute setting.
- Is Steam Microphone Active reports whether Steam microphone capture is actually recording.
This is separate from Mute Steam Player, which affects only your playback of another person.
Changing Player Volume
Use Set Steam Player Volume to control the local playback volume of a specific remote player.
The value is clamped to the normalized 0 to 1 range.
Use Get Steam Player Volume when your UI needs to display the currently configured value.
Master Gain and Automatic Voice Leveling
Per-speaker automatic volume leveling (AGC) is enabled by default. It reduces loudness differences between remote microphones and uses an internal target RMS of 0.08.
- Set Steam Voice Output Gain controls master voice gain (
0–3, default2.0). - Get Steam Voice Output Gain reads the current gain for a settings slider.
- Set Steam Automatic Voice Leveling enables/disables AGC; Is Steam Automatic Voice Leveling Enabled reads the setting.
- Set Steam Player Volume provides a separate per-speaker relative control (
0–1, default1). - The per-speaker peak limiter stays enabled to reduce excessive audio peaks.
AGC does not normalize proximity distance or the raw Voice Level meter.
Enabling Proximity Voice
To enable positional voice, set Steam Voice Chat Mode to Proximity.
Proximity Voice uses the world position of each remote player's Actor to determine how their voice should be played.
For Proximity Voice to work correctly, you also need to:
- configure the proximity distances with Set Steam Proximity Voice Distances
- associate each remote Steam user with the Actor representing that player using Set Steam Player Voice Actor
These steps are explained below.
Binding Remote Players to Actors
Proximity Voice needs to know which Actor represents each remote Steam user.
When a remote player becomes available:
- Obtain the player's
FSteamUserID. - Obtain the Actor representing that player in the world.
- Call Set Steam Player Voice Actor.
The bound Actor is then used as the sound source for that player's voice.
Call Clear Steam Player Voice Actor when the association is no longer valid, for example when the player leaves or the Actor is destroyed.
Configuring Proximity Distances
Use Set Steam Proximity Voice Distances to control how remote voice volume changes with distance.
You can configure:
- Full Volume Distance — voice plays at full volume inside this range
- Maximum Distance — voice becomes inaudible at this distance
- Spatialization — enables positional audio for remote voices
Between the full-volume and maximum distances, the remote player's voice fades out based on distance.
All distance values use Unreal units.
Enabling and Disabling Voice
Voice Chat is enabled by default for a new runtime, but a disabled setting survives Stop → Start.
Use Set Steam Voice Chat Enabled only when you want to temporarily disable or re-enable:
- local microphone transmission
- remote voice playback
This is useful for a master voice-chat toggle in the game's audio or multiplayer settings.
Calling Set Steam Voice Chat Enabled(false) does not stop the Voice Chat runtime and does not leave the lobby or multiplayer game.
You can later call Set Steam Voice Chat Enabled(true) to resume voice transmission and playback without starting the Voice Chat session again.
Use Stop Steam Voice Chat only when you want to fully end the Voice Chat session.
Reading Preferences and Restarting Voice Chat
Is Steam Voice Chat Running reports whether local voice capture/playback was started. Is Steam Voice Chat Enabled reports the user's current enabled preference, even if the runtime is stopped.
Settings menus can also read Get Steam Voice Input Mode, Get Steam Voice Activation Threshold, Get Steam Voice Chat Mode, Is Steam Microphone Muted, Get Steam Voice Output Gain, and Is Steam Automatic Voice Leveling Enabled.
Voice settings, including individual speaker mute/volume, survive a local Stop → Start during the same game run. Push To Talk state and world Actor bindings reset. The plugin does not save these preferences to disk automatically.
Handling Voice Chat Errors
Use Subscribe To Steam Voice Chat Error when your project needs persistent error reporting from the Voice Chat system.
The callback provides an error message.
Store the returned FSteamVoiceChatListenerHandle and unsubscribe when the listener is no longer needed.
Important Notes
- Voice Chat uses the current Steam Lobby or managed Multiplayer game
- Push To Talk, Voice Activation, and Always On are controlled through
ESteamVoiceInputMode - Proximity Voice requires each remote Steam user to be associated with the correct world Actor
- Mute and volume controls affect local playback of remote players
- Persistent speaking/error event handles should be stored and unsubscribed when no longer needed