{"id":47069162,"url":"https://github.com/jackycamp/flite-rs","last_synced_at":"2026-03-12T05:51:46.837Z","repository":{"id":218404780,"uuid":"746323120","full_name":"jackycamp/flite-rs","owner":"jackycamp","description":"Basic rust bindings for flite c library.","archived":false,"fork":false,"pushed_at":"2025-01-17T00:14:04.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T01:23:44.764Z","etag":null,"topics":["flite","rust","tts"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackycamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-21T18:12:54.000Z","updated_at":"2024-01-21T19:41:23.000Z","dependencies_parsed_at":"2024-01-21T19:42:05.734Z","dependency_job_id":"32011692-7cda-4f91-8820-00326271b982","html_url":"https://github.com/jackycamp/flite-rs","commit_stats":null,"previous_names":["jackycamp/flite-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jackycamp/flite-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackycamp%2Fflite-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackycamp%2Fflite-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackycamp%2Fflite-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackycamp%2Fflite-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackycamp","download_url":"https://codeload.github.com/jackycamp/flite-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackycamp%2Fflite-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30416592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:41:02.746Z","status":"ssl_error","status_checked_at":"2026-03-12T04:40:12.571Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["flite","rust","tts"],"created_at":"2026-03-12T05:51:46.227Z","updated_at":"2026-03-12T05:51:46.830Z","avatar_url":"https://github.com/jackycamp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003efliters\u003c/h1\u003e\n    \u003cp style=\"font-size: 18px;\"\u003erust bindings for the flite c library\u003c/p\u003e\n\u003c/div\u003e\n\n## Usage\n\nCheck out `/examples` directory for more examples.\n\n```rust\n// standard example\nuse fliters;\n\nfn main() {\n  fliters::tts(\"hello, world!\").play();\n}\n```\n\n```rust\n// Controlling the output stream. (i.e. playing and pausing)\nuse fliters;\nuse rodio::{OutputStream, Sink};\n\nfn main() {\n    let (_stream, handle) = OutputStream::try_default().unwrap();\n    let sink = Sink::try_new(\u0026handle).unwrap();\n    let fwav = fliters::tts(\"play this audio with some stream controls\");\n    let decoder = fwav.get_decoder();\n    sink.append(decoder);\n    sink.play();\n    std::thread::sleep(std::time::Duration::from_secs(1));\n    sink.pause();\n    std::thread::sleep(std::time::Duration::from_secs(3));\n    sink.play();\n    sink.sleep_until_end();\n}\n```\n\nCheck out the `make_waveform` example to see how we go from\ntext -\u003e 16-bit samples -\u003e (time, amplitude) pairs -\u003e wave form visualization in your terminal!\n\n```bash\ncargo run --example make_waveform\n```\n\n![image](https://github.com/user-attachments/assets/f83cefe6-82ce-4c35-856f-4253efe4d918)\n\n## Tested on\n\n- MacOS Sonoma 14.2\n- Debian (bookworm)\n\n## Roadmap\n\n- [x] basic tts api\n- [x] control output stream with `play`\n- [ ] optimize build (include only necessary c files)\n- [ ] customize voice (defaults to slt right now)\n- [x] debian linux amd64 support\n- [ ] jetson orin support\n\n## Installation\n\n**Linux Dependencies**\n\nOn linux, `rodio` relies on `cpal` and `cpal` needs alsa development files to build.\nYou can see [rodio's repo](https://github.com/RustAudio/rodio?tab=readme-ov-file#dependencies-linux-only) for more info.\n\n```bash\nsudo apt install libasound2-dev\n```\n\n**crate**\n\nAdd this to your cargo.toml:\n`fliters = \"0.1.8\"`\n\nIf you install the crate, but encounter build errors, try to specify the repo as the dependency. Submit an issue in the meantime while I investigate.\n\n`fliters = { git = \"https://github.com/jackycamp/flite-rs\" }`\n\n## Building\n\n```bash\n# clone the repository\ngit clone https://github.com/jackycamp/flite-rs.git\n\n# If you want the git submodules on first clone\ngit clone --recursive https://github.com/jackycamp/flite-rs.git\n\n# do the build\ncd flite-rs \u0026\u0026 cargo build\n\n# run an example\ncargo run --example tts\n```\n\n## Troubleshooting\n\nOn linux, sometimes pulseaudio crashes and you might see ALSA messages in your terminal\nwhen you try to call the `play()` fn, e.g.:\n\n```bash\n...\nALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred\nALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred\nALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred\n...\n```\n\nRestarting pulseaudio's (daemon) can sometimes fix this:\n\n```bash\npulseaudio -k # kills the deamon, and should automatically restart\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackycamp%2Fflite-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackycamp%2Fflite-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackycamp%2Fflite-rs/lists"}