Skip to content

decompressVoice

decompressVoice(compressed, sampleRate): VoiceChunk

Decodes compressed voice data from getVoice() into raw single-channel 16-bit PCM. Needs init(). The output buffer starts at 20 KB and is enlarged once when Steam asks for more room. The SDK supports sample rates from 11025 to 48000. Throws when the input is larger than 4 GB.

Buffer

the compressed voice bytes.

number

the output sample rate; getVoiceOptimalSampleRate() returns the decoder’s native rate.

VoiceChunk

result, and data, the decoded PCM bytes. The data is empty unless result is Ok.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.