CoolFace
Apppublic

hugofara/wavlm-phonemizer-word-detection

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
App README

WavLM Demo

Some simple utility script to show how WavLM works and how to use it. It is all based on WavLM Base + Phonemizer FR-IT

Install

You need Python 3.12.

Use either uv (recommended), or pip.

shell
# Using uv (recommended)
uv sync

# With pip
pip install -r requirements.txt`.

main.py

This is the principal entry point. Upon running, it will either capture audio from the microphone, or from a sample file. Then, it will run an animate an inference, layer by layer and time step by time step.

[image]

app.py - Gradio interface

The Gradio interface is a web interface to demonstrate the word classification capabilities.

[image]

To launch Gradio, just run:

shell
python app.py

And click on the web link!

Advanced settings

The advanced settings will let give you fine-grained control over the generated answer.

It allows to circumvent shortcomings that a simple Arg Max decoder would give you.

[image]