RageAgainstThePixel / com.utilities.encoder.ogg

Ogg Vorbis encoder utility library for Unity (UPM)
MIT License
6 stars 1 forks source link
audio ogg ogg-vorbis unity unity3d unity3d-plugin upm upm-package vorbis vorbis-ogg

com.utilities.encoder.ogg

Discord openupm openupm

Simple library for Ogg encoding support in the Unity Game Engine.

This package uses the open source .net ogg vorbis encoder found on NuGet

Installing

Requires Unity 2021.3 LTS or higher.

The recommended installation method is though the unity package manager and OpenUPM.

Via Unity Package Manager and OpenUPM

Via Unity Package Manager and Git url


Documentation

Table of Contents

Recording Behaviour

Simply add the OggRecorderBehaviour to any GameObject to enable recording.

This will stream the recording directly to disk as it is recorded.

Audio Clip Extensions

Provides extensions to encode AudioClips to OGG encoded bytes. Supports 8, 16, 24, and 32 bit sample sizes.

Encode OGG

var bytes = audioClip.EncodeToOggVorbis();
var bytes = await audioClip.EncodeToOggVorbisAsync();

Related Packages