mochi-neko / voice-activity-detection-unity

A voice activity detection (VAD) library for Unity.
MIT License
52 stars 6 forks source link
unity vad

voice-activity-detection-unity

A voice activity detection (VAD) library for Unity.

Features

Records voice data from any sources (IVoiceSource, e.g. recording by UnityEngine.Microphone), detects voice activity by any logic, and provides voice data to any buffers (IVoiceBuffer, e.g. buffering to WAV file) when voice is active.

You can customize voice sources, voice buffers, and voice activity detection logics adjusting your use cases.

How to import by UnityPackageManager

Add following dependencies to your /Packages/manifest.json.

{
    "dependencies": {
        "com.mochineko.voice-activity-detection": "https://github.com/mochi-neko/voice-activity-detection-unity.git?path=/Assets/Mochineko/VoiceActivityDetection#0.4.2",
        "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask",
        "com.neuecc.unirx": "https://github.com/neuecc/UniRx.git?path=Assets/Plugins/UniRx/Scripts",
        "com.naudio.core": "https://github.com/mochi-neko/simple-audio-codec-unity.git?path=/Assets/NAudio/NAudio.Core#0.2.0",
        ...
    }
}

Samples

See also Samples.

Change log

See CHANGELOG.

3rd party notices

See NOTICE.

License

Licensed under the MIT license.