Skip to content

About

Train wakeword and TTS models

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

OpenVoiceOS Notebooks

These notebooks make and measure wake words and text-to-speech voices for OpenVoiceOS, an open source voice assistant. Each notebook runs for free in your browser on Kaggle. Click "Open in Kaggle", turn on Internet (and a GPU when the table says so), and click Run All. You do not need to install anything.

New to notebooks? The getting started guide explains Kaggle and Colab step by step. The documentation index lists every guide. You can also let an AI coding agent run the notebooks for you: see Use an AI coding agent.

Wake words

A wake word is the phrase that makes the assistant start to listen, for example "hey mycroft". Start with kaggle_quickstart_ww: it makes a wake-word model for any phrase, from start to end. Train a wake word explains this group.

Notebook What it does Needs Run
kaggle_quickstart_ww Train a wake-word model for any phrase, start to finish GPU Open in Kaggle
synthetic_ww_dataset Make a wake-word dataset. Run it several times, and train the quickstart on all the runs GPU Open in Kaggle
ww_train_streaming Train a streaming wake-word model from a dataset made by synthetic_ww_dataset CPU Open in Kaggle
tts2ww_full_pipeline Make a larger set of examples of your phrase, with noise and room echo GPU Open in Kaggle

Text-to-speech voices

A text-to-speech (TTS) voice reads text aloud. Start with tts_dataset_gen, which makes a dataset in one voice, and then train_vits, which trains the voice. Train a TTS voice explains this group, with two complete tutorials.

Notebook What it does Needs Run
tts_dataset_gen Make a dataset: a speech model reads about 2,000 sentences in your language, in one voice GPU Open in Kaggle
train_vits Train the voice, starting from a finished voice, and export it as an .onnx file GPU Open in Kaggle
asr2tts Turn transcribed recordings, such as Common Voice, into a single-voice TTS dataset CPU Open in Kaggle
tts_corpus_ingest Read existing recordings into a list of clips for the next notebooks CPU Open in Kaggle
tts_enhance Remove noise and restore the sound of every clip CPU, or a GPU for the demo Open in Kaggle
tts_measure Give every clip quality scores GPU for the demo Open in Kaggle
tts_select Keep the best clips of a dataset CPU Open in Kaggle
tts_voice_convert Convert every clip of a dataset to a target voice CPU, or a GPU for the demo Open in Kaggle
tts_publish Publish a finished dataset to Hugging Face GPU for the demo Open in Kaggle

Benchmarks

The notebooks in benchmarks/ measure OpenVoiceOS plugins with the plugin arena, which publishes its results on Hugging Face. Benchmarks explains them.

Notebook What it does Needs Run
ww_leaderboard Read the published wake-word results of the boards that the arena lists, score them again with the arena's code, and compare the plugins CPU Open in Kaggle
ww_benchmark Install every wake-word plugin, run each one on the same test clips, and score it with the arena's code CPU Open in Kaggle
intent_benchmark Install the intent pipeline plugins, train each intent fighter on the arena's intent test sets, and score it with the arena's code CPU Open in Kaggle

Licensed under the Apache License 2.0. To change a notebook, see CONTRIBUTING.md.

Credits

Developed by TigreGotico for OpenVoiceOS.

NGI0 Commons Fund

This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101135429.

About

Train wakeword and TTS models

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages