Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SpeechBrain Lang Detect

An audio transformer plugin for OpenVoiceOS. It detects the spoken language of an audio signal using a SpeechBrain classifier, before speech-to-text runs.

Supported models

The plugin loads any of these SpeechBrain models from Hugging Face:

Install

pip install ovos-audio-transformer-plugin-speechbrain-langdetect

Usage

Add the plugin to the audio_transformers section of your listener config. Set model to any of the SpeechBrain models listed above.

"listener": {
    "audio_transformers": {
        "ovos-audio-transformer-plugin-speechbrain-langdetect": {
            "model": "speechbrain/lang-id-commonlanguage_ecapa"
        }
    }
}

Set use_cuda to true to run the classifier on a CUDA GPU instead of the CPU.

The plugin only classifies the language when more than one language is listed as valid. If a single language is configured, it skips classification and returns that language directly.

Related projects

License

Apache-2.0

Metadata

Release files for ovos-audio-transformer-plugin-speechbrain-langdetect 0.0.2a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-audio-transformer-plugin-speechbrain-langdetect 0.0.2a2
File Size Uploaded
ovos_audio_transformer_plugin_speechbrain_langdetect-0.0.2a2.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-audio-transformer-plugin-speechbrain-langdetect 0.0.2a2
File Interpreter ABI Platform
ovos_audio_transformer_plugin_speechbrain_langdetect-0.0.2a2-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / ovos_audio_transformer_plugin_speechbrain_langdetect-0.0.2a2.tar.gz

Download URL ovos_audio_transformer_plugin_speechbrain_langdetect-0.0.2a2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1864b01d1968d9db9d9bab9b3f4471350b1a3ea4a0d6548f68c395cb428c8716
BLAKE2b-256 checksum
How to use checksums
8f59d1475fe0c6173524df5b742f50f2b5724793812d07ae96448d90f2f1b728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ovos_audio_transformer_plugin_speechbrain_langdetect-0.0.2a2-py3-none-any.whl

Download URL ovos_audio_transformer_plugin_speechbrain_langdetect-0.0.2a2-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d350156f187ec019b5efbf109ba1fbf6452659981c647b1fb7acb9cb3dd8666
BLAKE2b-256 checksum
How to use checksums
21c891c999d3de74f990319e1b5dbbd63529b02704450860aac4d0124c14b6c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page