webrtc_audio v1.0.1
webrtc_audio
This is a pure crystal port of libvad (https://github.com/dpirch/libfvad)
Installation
-
Add the dependency to your
shard.yml
:dependencies: webrtc_audio: github: washu/webrtc_audio
-
Run
shards install
Usage
require "webrtc_audio"
vad = WebrtcAudio::WebRtcVad.new
vad.set_mode(WebrtcAudio::WebRtcVad::Aggressiveness::VeryAggress)
vad.set_sample_rate(16000)
has_voice = vad.process(input, input.size)_
Be saure you pass the correct size values to the processor or it will return false.
Development
check it out, crystal spec
Contributing
- Fork it (https://github.com/your-github-user/webrtc_audio/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Sal Scotto - creator and maintainer
Repository
webrtc_audio
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 3 years ago
- August 23, 2021
License
MIT License
Links
Synced at
Sun, 24 Nov 2024 15:13:47 GMT
Languages