Skip to main content

Band-pass filter audio transformer for OpenVoiceOS

Project description

ovos-audio-transformer-plugin-bandpass

License: Apache-2.0 Python

A band-pass filter audio transformer for OpenVoiceOS. It runs on the captured speech audio before STT and attenuates energy outside a configurable pass-band.

The default 300–3400 Hz band is the telephone speech band: it removes low-frequency rumble (HVAC, handling noise) and high-frequency hiss that carry no phonetic information, which can improve recognition on noisy inputs without touching the speech formants.

Install

pip install ovos-audio-transformer-plugin-bandpass

Configure

Enable it in mycroft.conf under audio_transformers (any component that runs the audio-transformer pipeline — the listener, or the STT server — will apply it):

{
  "audio_transformers": {
    "ovos-audio-transformer-plugin-bandpass": {
      "low_hz": 300,
      "high_hz": 3400,
      "order": 4,
      "sample_rate": 16000
    }
  }
}
Option Default Meaning
low_hz 300 Lower edge of the pass-band, in Hz.
high_hz 3400 Upper edge of the pass-band, in Hz.
order 4 Butterworth filter order; higher is a steeper roll-off.
sample_rate 16000 Sample rate of the incoming PCM audio, in Hz.

Edges are clamped into the open interval below Nyquist, so an aggressive band on a low sample rate degrades gracefully instead of failing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ovos_audio_transformer_plugin_bandpass-0.0.2a1.tar.gz.

File metadata

File hashes

Hashes for ovos_audio_transformer_plugin_bandpass-0.0.2a1.tar.gz
Algorithm Hash digest
SHA256 3d001658dc4f5f3b156e2ee68f445a1ee7b53e514535e77a7faba384ba4924b8
MD5 8f8e7960109f750e984d1b47cbd6f872
BLAKE2b-256 600bbcf68e1ac0f02e6021bd98604aac553e3f4c9f7a80abb085bf305cdfc9f6

See more details on using hashes here.

File details

Details for the file ovos_audio_transformer_plugin_bandpass-0.0.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_audio_transformer_plugin_bandpass-0.0.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 accd77229bd31fd84b290f9af6dae9b6f0841c6d8827260d893a86e547ba514d
MD5 fb3f8b448c5f181d13157ce13ec1fc1f
BLAKE2b-256 a00ea5c43a0fbac79073c4ad8d64467d1e2e8b214d797c30e72acdae910e842a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page