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.
Parameters
Section titled “Parameters”compressed
Section titled “compressed”Buffer
the compressed voice bytes.
sampleRate
Section titled “sampleRate”number
the output sample rate; getVoiceOptimalSampleRate() returns the decoder’s native rate.
Returns
Section titled “Returns”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.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
