| --- |
| title: HybridGAN Speech Bandwidth Extension |
| emoji: π§ |
| colorFrom: blue |
| colorTo: indigo |
| sdk: gradio |
| sdk_version: 5.9.0 |
| app_file: app.py |
| pinned: false |
| license: mit |
| --- |
| |
| # π§ HybridGAN-BWE: Speech Bandwidth Extension & Telephony Restoration |
|
|
| Band-limited narrowband telecommunication signals (standard landline G.711 codecs, mobile GSM channels, handset microphone cut-offs) restrict speech bandwidth to 300 Hz β 3400 Hz or 0 Hz β 4000 Hz. This severely degrades voice naturalness, intelligibility, and speaker identification. |
|
|
| **HybridGAN-BWE** presents a real-time, parameter-efficient Speech Bandwidth Extension system that reconstructs high-fidelity wideband speech (**16 kHz**) from narrowband input (**8 kHz**). |
|
|
| --- |
|
|
| ## π Key Features |
|
|
| * **Dual-Path Spectral Encoder**: Combines 2D spatial spectrogram convolutions and 1D temporal frame features fused via Multi-Head Cross-Attention. |
| * **Domain Randomization**: Robust against real-world telephone noise, GSM/G.711 compression, and handset high-pass cut-offs. |
| * **Parameter Efficient**: Squeezed 2D Spectrogram Discriminators (channels reduced from 32 to 16, saving 67% discriminator parameters). |
| * **CPU Compatible**: Optimized for CPU inference on Hugging Face Free Tier Spaces. |
|
|
| --- |
|
|
| ## π¦ Hugging Face Space Repository Structure |
|
|
| ``` |
| . |
| βββ app.py # Main Gradio application entrypoint |
| βββ README.md # Space Metadata & Documentation |
| βββ requirements.txt # Minimal dependencies (PyTorch, Gradio, Librosa) |
| βββ config.yaml # Model configuration parameters |
| βββ best_model.pth # Lightweight Generator model checkpoint |
| βββ models/ # Model generator and discriminator definitions |
| βββ modules/ # Spectral branch, waveform branch, and attention modules |
| βββ utils/ # Config loader utility |
| ``` |
|
|
| --- |
|
|
| ## π οΈ Local Testing Guide |
|
|
| To test this space locally on your machine: |
|
|
| ```bash |
| cd hf_space |
| pip install -r requirements.txt |
| python app.py |
| ``` |
| Open **[http://127.0.0.1:7860](http://127.0.0.1:7860)** in your browser. |
|
|