Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rageagainstthepixel/com.utilities.encoder.wav
Simple library for WAV encoding support for Unity (UPM)
https://github.com/rageagainstthepixel/com.utilities.encoder.wav
audio encoder unity unity3d upm upm-package wav
Last synced: 11 days ago
JSON representation
Simple library for WAV encoding support for Unity (UPM)
- Host: GitHub
- URL: https://github.com/rageagainstthepixel/com.utilities.encoder.wav
- Owner: RageAgainstThePixel
- License: mit
- Created: 2023-03-07T05:02:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-19T00:55:29.000Z (about 1 month ago)
- Last Synced: 2025-01-31T03:54:54.720Z (20 days ago)
- Topics: audio, encoder, unity, unity3d, upm, upm-package, wav
- Language: C#
- Homepage:
- Size: 575 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# com.utilities.encoder.wav
[](https://discord.gg/xQgMW9ufN4) [](https://openupm.com/packages/com.utilities.encoder.wav/) [](https://openupm.com/packages/com.utilities.encoder.wav/)
Simple library for WAV encoding support in the [Unity](https://unity.com/) Game Engine.
## Installing
Requires Unity 2021.3 LTS or higher.
The recommended installation method is though the unity package manager and [OpenUPM](https://openupm.com/packages/com.utilities.encoder.wav).
### Via Unity Package Manager and OpenUPM
- Open your Unity project settings
- Select the `Package Manager`

- Add the OpenUPM package registry:
- Name: `OpenUPM`
- URL: `https://package.openupm.com`
- Scope(s):
- `com.utilities`
- Open the Unity Package Manager window
- Change the Registry from Unity to `My Registries`
- Add the `Utilities.Encoder.Wav` package### Via Unity Package Manager and Git url
- Open your Unity Package Manager
- Add package from git url: `https://github.com/RageAgainstThePixel/com.utilities.encoder.wav.git#upm`
> Note: this repo has dependencies on other repositories! You are responsible for adding these on your own.
- [com.utilities.async](https://github.com/RageAgainstThePixel/com.utilities.async)
- [com.utilities.audio](https://github.com/RageAgainstThePixel/com.utilities.audio)---
## Documentation
### Table of Contents
- [Recording Behaviour](#recording-behaviour)
- [Audio Clip Extensions](#audio-clip-extensions)
- [Encode WAV](#encode-wav)
- [Related Packages](#related-packages)## Recording Behaviour
Simply add the `WavRecorderBehaviour` 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 `AudioClip`s to WAV encoded bytes.
Supports 8, 16, 24, and 32 bit sample sizes.### Encode WAV
```csharp
var bytes = audioClip.EncodeToWav();
var bytes = await audioClip.EncodeToWavAsync();
```## Related Packages
- [Ogg Encoder](https://github.com/RageAgainstThePixel/com.utilities.encoder.ogg)