๐ฃ๏ธVoice
Last updated
Last updated
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our GitHub Sponsors ... become a sponsor today!
Steam Voice helps you record voice data from the local user and prepare it for sending. It also helps you consume that data and play it back.
Steam Voice does not deal with the sending of data. How you choose to send data from one user to another is a matter of how you handle networking in your game. Steam does provide networking tools or you can use any other networking solution you might like.
Heathen's Steamworks Complete includes two tools to simplify the process of capturing and playing back voice data.
The voice recorder component can be used to capture the local user's voice data and prepare it for transmission over your network connection. It provides the data via a simple event feeding a byte[] of data that should be easily handled by any networking solution.
The idea is that you connect the Voice Stream event to a method that can send that data over your network.
The Voice Stream event gets invoked when the buffer is full and ready for transmission.
The voice stream component can be used to play back voice data produced by the voice-recorded component. The intent is that your network system receiving voice data from a Voice Recorded would call the Play Voice Data method on this component.
Typically you would have one voice stream component per connected player (excluding the local player) you can attach these voice stream components to the player's character or controller such that voice audio can (optionally) be accurately represented as 3D audio.