webrtcvad 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/webrtcvad.rb +13 -0
  3. metadata +43 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4994a0db82f4d40a4ab53c8051ecd2bc5ceb999fb02ec2c0a85bbda3a9b26d2f
4
+ data.tar.gz: 65b379dd07d3a6af51043fc587a01d9cc6c7aa7e10edc11c4eb3624fdfb5199a
5
+ SHA512:
6
+ metadata.gz: 8332966fe4ad2c303b0c17d483ee532cba8337f6be2309900acdf131c89e56dcf334fc97e2810f350f52ac476b5d5c829f1406c9ca14c2a2179dc71d90ab6c4f
7
+ data.tar.gz: 36859590194e5120531139664653a41b9813de204c7958c3b2afc8e4e423101888954520ccd59507cbb289100e49a76ba1773150cfa2d0b4dcbcef07b958ddcb
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'webrtcvad/webrtcvad'
4
+
5
+ module WebRTC
6
+ class Vad
7
+ def classify(buf:, sample_rate:, offset: 0, samples_count: (buf.size - offset).div(2))
8
+ raise ArgumentError, 'Length exceeds buffer length' if samples_count > (buf.size - offset).div(2)
9
+
10
+ process(sample_rate, buf, offset, samples_count)
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webrtcvad
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ivan Razuvaev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: WebRTC Voice Activity Detection library ruby wrapper
14
+ email: i@orlando-labs.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/webrtcvad.rb
20
+ homepage: https://orlando-labs.com
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '='
31
+ - !ruby/object:Gem::Version
32
+ version: 2.4.0
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.1.2
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: WebRTC Voice Activity Detection library ruby wrapper
43
+ test_files: []