{"id":15170255,"url":"https://github.com/voinic/microtts","last_synced_at":"2026-02-01T04:33:22.611Z","repository":{"id":244987044,"uuid":"816924044","full_name":"Voinic/microtts","owner":"Voinic","description":"Simple TTS library for MicroPython that works offline","archived":false,"fork":false,"pushed_at":"2024-07-23T16:39:26.000Z","size":16493,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T08:31:37.252Z","etag":null,"topics":["diphone-based","micropython","speech-synthesis","tts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Voinic.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T16:54:14.000Z","updated_at":"2024-07-23T16:39:29.000Z","dependencies_parsed_at":"2024-07-23T19:24:52.944Z","dependency_job_id":null,"html_url":"https://github.com/Voinic/microtts","commit_stats":null,"previous_names":["voinic/microtts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fmicrotts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fmicrotts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fmicrotts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fmicrotts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Voinic","download_url":"https://codeload.github.com/Voinic/microtts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fmicrotts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259239352,"owners_count":22826911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diphone-based","micropython","speech-synthesis","tts"],"created_at":"2024-09-27T08:01:09.299Z","updated_at":"2026-02-01T04:33:22.578Z","avatar_url":"https://github.com/Voinic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroTTS\n\nSimple TTS library for MicroPython that works offline\n\nTis library is a MicroPython port of concatanative diphone-based speach synthesizer. It uses lexicon database to convert words to phonemes, which was converted from [CMU Pronouncing Dictionary](http://www.speech.cs.cmu.edu/cgi-bin/cmudict) ([License](https://raw.githubusercontent.com/Voinic/microtts/master/db/cmudict_license.txt)). Diphones database was converted from diphone collection by Alan W Black and Kevin Lenzo ([License](https://raw.githubusercontent.com/Voinic/microtts/master/db/diphones_license.txt)).\n\n## Installation\n\n1. Paste folowing code to REPL console to download library\n\n    ```python\n    import mip\n    mip.install(\"github:Voinic/microtts\")\n    ```\n\n2. Copy [lexicon.db](https://raw.githubusercontent.com/Voinic/microtts/master/db/lexicon.db) and any of [diphones.db](https://raw.githubusercontent.com/Voinic/microtts/master/db/diphones.db) and [diphones_lq.db](https://raw.githubusercontent.com/Voinic/microtts/master/db/diphones_lq.db) to SD-card or internal flash (if your have enough space)\n\nUse diphones_lq.db contains recordings with IMA ADPCM compression. You can use it instead of diphones.db if your memory space is limitted. Note that sound quality will decrease.\n\n## Usage\n\n```python\nfrom utts import Utterance, Synth\n\nLEXICON_DB = \"/sd/lexicon.db\"\n\nDIPHONES_DB = \"/sd/diphones.db\"\nDB_COMPRESSED = False\n\nCROSSFADE = 0.025\n\nTEXT = \"This is a test\"\n\nutterance = Utterance(LEXICON_DB)\nsynth = Synth(DIPHONES_DB, DB_COMPRESSED)\n\nutterance.process(TEXT)\ndiphones = utterance.get_diphones()\n\nsynth.synthesize(diphones, CROSSFADE)\naudio = synth.get_audio()\n```\n\n## Usage examples\n\n- [examples/save_to_wav.py](https://github.com/Voinic/microtts/blob/master/examples/save_to_wav.py) - Converts given text to speach and saves result into WAV file.\n- [examples/direct_playback.py](https://github.com/Voinic/microtts/blob/master/examples/direct_playback.py) - Prompts user for input text and sends output audio to I2S DAC.\n\n## Creating databases\n\n`/db` folder contains code and input files that was used for databases creation. Run this code using micropython interpreter, not regular python (I used Unix port of micropython).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoinic%2Fmicrotts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoinic%2Fmicrotts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoinic%2Fmicrotts/lists"}