Simple library for Ogg encoding support in the Unity Game Engine.
This package uses the open source .net ogg vorbis encoder found on NuGet
Requires Unity 2021.3 LTS or higher.
The recommended installation method is though the unity package manager and OpenUPM.
Package Manager
OpenUPM
https://package.openupm.com
com.utilities
My Registries
Utilities.Encoder.Ogg
packagehttps://github.com/RageAgainstThePixel/com.utilities.encoder.ogg.git#upm
Note: this repo has dependencies on other repositories! You are responsible for adding these on your own.
Simply add the OggRecorderBehaviour
to any GameObject to enable recording.
This will stream the recording directly to disk as it is recorded.
Provides extensions to encode AudioClip
s to OGG encoded bytes.
Supports 8, 16, 24, and 32 bit sample sizes.
var bytes = audioClip.EncodeToOggVorbis();
var bytes = await audioClip.EncodeToOggVorbisAsync();