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.1.tar.gz.

File metadata

File hashes

Hashes for ovos_audio_transformer_plugin_bandpass-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c47c61bf1535f3c35dc0389af483046ed9310bb661a44f76708e9501ecc614f2
MD5 83fd5356b878fe7e5d4338d3a6363abf
BLAKE2b-256 9aeb3db2e34e0c8e17145145f0fbbdaa96fc3e0d37341cd8cca3d66d57f7b6fa

See more details on using hashes here.

File details

Details for the file ovos_audio_transformer_plugin_bandpass-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_audio_transformer_plugin_bandpass-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 038066c32b12de1cc450f4f856de6a197705dfa009c7196b53c6cb50210dfb89
MD5 095fbda309ee1d1cbacd35f728995fd6
BLAKE2b-256 d1003f671ce5499e5b6b9c0fd4634f41300d28dca488d865ae52699fa4abf940

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