Skip to content

feat: added voicechat recording primitive#454

Open
personcopperfine wants to merge 1 commit into
Source2ZE:devfrom
personcopperfine:voicechatrecording
Open

feat: added voicechat recording primitive#454
personcopperfine wants to merge 1 commit into
Source2ZE:devfrom
personcopperfine:voicechatrecording

Conversation

@personcopperfine

Copy link
Copy Markdown

Adds a primitive for recording a player's voice chat for content moderation (using AI transcription for said words or human review for example).

A basic rundown is that the game supports multiple codex, in older source titles sv_voicecodec controlled it, I'm assuming modern CS2 is using 48,000 with 1 mono channel. libopus is included in the sniper SDK but windows requires edits for visual studio code.

enum VoiceDataFormat_t {
	VOICEDATA_FORMAT_STEAM = 0;
	VOICEDATA_FORMAT_ENGINE = 1;
	VOICEDATA_FORMAT_OPUS = 2;
}

References:
https://github.com/DandrewsDev/CS2VoiceData/tree/main/
https://zhenyangli.me/posts/reversing-steam-voice-codec/
https://github.com/unicbm/cs2-demotracer/tree/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant