Record voice of players

Hi all,

I’m looking at making a mod for TTT that will allow the detective to hear the last few hundred milliseconds of a player’s voice. I see that there is PlayerStartVoice/PlayerEndVoice, but I’m not sure if it’s possible to record the audio to a temp file and then playback the last 300-800 milliseconds of it.

Yeah, that would be awsome. Anybody know how to do this?

-bump-

Possible with gm_bass (clientside) and a custom (serverside) module.

Probbably would be possible with gm_sourcenet, however are you sure it will not shit itself and crash the server if there is some micspam?

Not sure at all. It’ll be a challenge, that’s for sure, as it would need to record every living player’s chat, check if they are dead, if not, delete it, and if they are, parse it and play it back.

ent_microphone is worth a shot.

Why would sourcenet be able to do this? Have you even read the documentation?

That’s the easy part.

Sourcenet can get and send voice data, so shouldent it be possible to save the voice data and send it later?

The message isn’t readable. The message you can send is empty as well, unless I’m mistaken.