Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 2330d4d

Browse files
authored
Addition of Gain Control, Noise Suppression, and VAD (#33)
* Addtion of Gain Control, Noise Suppression, and VAD. This commit introduces automatic gain control and automatic noise suppression from the filter_audio (webrtc) library. In addition, the webrtcvad dependency has been removed in favor of using our VAD extension. The major changes are: - Added AutomaticGainControl extension - Added AutomaticNoiseSuppression extension - Added WebRtcVad extension - Changed webrtcvad to our WebRtcVad extension
1 parent fcbf71e commit 2330d4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2045
-1090
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
keys:
1414
- build-{{checksum "requirements.txt"}}
1515
- run: python3 -m venv ~/venv
16+
- run: git submodule update --init
1617
- run: |
1718
source ~/venv/bin/activate
1819
pip install --upgrade pip pip-tools
@@ -34,11 +35,12 @@ jobs:
3435
mypy spokestack tests
3536
- run: |
3637
source ~/venv/bin/activate
37-
python -m pytest --cov=spokestack
38-
python -m coveralls
38+
python setup.py build_ext -i
3939
- run: |
4040
source ~/venv/bin/activate
41-
python setup.py build_ext -i
41+
python -m pytest --cov=spokestack
42+
python -m coveralls
43+
4244
workflows:
4345
version: 2
4446

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "spokestack/extensions/webrtc/filter_audio"]
2+
path = spokestack/extensions/webrtc/filter_audio
3+
url = git@github.com:irungentoo/filter_audio.git
8.11 KB
Binary file not shown.
44 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-909 Bytes
Binary file not shown.

docs/source/_build/html/_modules/index.html

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,20 @@
151151
>Speech Pipeline</a
152152
>
153153
</li>
154+
<li class="toctree-l1">
155+
<a
156+
class="reference internal"
157+
href="../spokestack.nsx.html"
158+
>Automatic Noise Suppression</a
159+
>
160+
</li>
161+
<li class="toctree-l1">
162+
<a
163+
class="reference internal"
164+
href="../spokestack.agc.html"
165+
>Automatic Gain Control</a
166+
>
167+
</li>
154168
</ul>
155169
</div>
156170
</div>
@@ -199,6 +213,11 @@ <h1>All modules for which code is available</h1>
199213
>spokestack.activation_timeout</a
200214
>
201215
</li>
216+
<li>
217+
<a href="spokestack/agc/webrtc.html"
218+
>spokestack.agc.webrtc</a
219+
>
220+
</li>
202221
<li>
203222
<a
204223
href="spokestack/asr/google/speech_recognizer.html"
@@ -262,11 +281,21 @@ <h1>All modules for which code is available</h1>
262281
>spokestack.nlu.tflite</a
263282
>
264283
</li>
284+
<li>
285+
<a href="spokestack/nsx/webrtc.html"
286+
>spokestack.nsx.webrtc</a
287+
>
288+
</li>
265289
<li>
266290
<a href="spokestack/pipeline.html"
267291
>spokestack.pipeline</a
268292
>
269293
</li>
294+
<li>
295+
<a href="spokestack/ring_buffer.html"
296+
>spokestack.ring_buffer</a
297+
>
298+
</li>
270299
<li>
271300
<a
272301
href="spokestack/tts/clients/spokestack.html"
@@ -283,12 +312,6 @@ <h1>All modules for which code is available</h1>
283312
>spokestack.vad.webrtc</a
284313
>
285314
</li>
286-
<li>
287-
<a
288-
href="spokestack/wakeword/ring_buffer.html"
289-
>spokestack.wakeword.ring_buffer</a
290-
>
291-
</li>
292315
<li>
293316
<a
294317
href="spokestack/wakeword/tflite.html"

docs/source/_build/html/_modules/spokestack/activation_timeout.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,20 @@
157157
>Speech Pipeline</a
158158
>
159159
</li>
160+
<li class="toctree-l1">
161+
<a
162+
class="reference internal"
163+
href="../../spokestack.nsx.html"
164+
>Automatic Noise Suppression</a
165+
>
166+
</li>
167+
<li class="toctree-l1">
168+
<a
169+
class="reference internal"
170+
href="../../spokestack.agc.html"
171+
>Automatic Gain Control</a
172+
>
173+
</li>
160174
</ul>
161175
</div>
162176
</div>

docs/source/_build/html/_modules/spokestack/asr/google/speech_recognizer.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@
161161
>Speech Pipeline</a
162162
>
163163
</li>
164+
<li class="toctree-l1">
165+
<a
166+
class="reference internal"
167+
href="../../../../spokestack.nsx.html"
168+
>Automatic Noise Suppression</a
169+
>
170+
</li>
171+
<li class="toctree-l1">
172+
<a
173+
class="reference internal"
174+
href="../../../../spokestack.agc.html"
175+
>Automatic Gain Control</a
176+
>
177+
</li>
164178
</ul>
165179
</div>
166180
</div>

docs/source/_build/html/_modules/spokestack/asr/spokestack/cloud_client.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@
161161
>Speech Pipeline</a
162162
>
163163
</li>
164+
<li class="toctree-l1">
165+
<a
166+
class="reference internal"
167+
href="../../../../spokestack.nsx.html"
168+
>Automatic Noise Suppression</a
169+
>
170+
</li>
171+
<li class="toctree-l1">
172+
<a
173+
class="reference internal"
174+
href="../../../../spokestack.agc.html"
175+
>Automatic Gain Control</a
176+
>
177+
</li>
164178
</ul>
165179
</div>
166180
</div>

0 commit comments

Comments
 (0)