{"id":18774747,"url":"https://github.com/sztheory/espeak","last_synced_at":"2025-12-14T13:30:23.655Z","repository":{"id":70180645,"uuid":"209159436","full_name":"szTheory/espeak","owner":"szTheory","description":"[wip] Crystal wrapper for ‘espeak’ and ‘lame’ with sugar on top to create Text-To-Speech mp3 files","archived":false,"fork":false,"pushed_at":"2019-09-18T04:29:33.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T00:56:18.321Z","etag":null,"topics":["crystal","espeak","lame","mp3","shard","text-to-speech","tts","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/szTheory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-09-17T21:25:52.000Z","updated_at":"2019-09-18T04:30:05.000Z","dependencies_parsed_at":"2023-02-21T11:46:00.799Z","dependency_job_id":null,"html_url":"https://github.com/szTheory/espeak","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szTheory%2Fespeak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szTheory%2Fespeak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szTheory%2Fespeak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szTheory%2Fespeak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szTheory","download_url":"https://codeload.github.com/szTheory/espeak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680989,"owners_count":19679509,"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":["crystal","espeak","lame","mp3","shard","text-to-speech","tts","wrapper"],"created_at":"2024-11-07T19:39:14.132Z","updated_at":"2025-12-14T13:30:22.984Z","avatar_url":"https://github.com/szTheory.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# espeak\n\nespeak is a small Crystal API for utilizing [espeak](http://espeak.sourceforge.net) and [lame](http://lame.sourceforge.net/) to create Text-To-Speech mp3 files. It can also just speak (without saving). Port of the [espeak-ruby gem](https://github.com/dejan/espeak-ruby).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     espeak:\n       github: szTheory/espeak\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"espeak\"\n```\n\n## Examples\n\n\n```crystal\n# Speaks \"YO!\"\nspeech = Espeak::Speech.new(\"YO!\")\nspeech.speak # invokes espeak\n\n# Creates hello-de.mp3 file\nspeech = Espeak::Speech.new(\"Hallo Welt\", voice: \"de\")\nspeech.save(\"hello-de.mp3\") # invokes espeak + lame\n\n# Lists voices\nEspeak::Voice.all.map { |v| v.language } # [\"af\", \"bs\", \"ca\", \"cs\", \"cy\", \"da\", \"de\", \"el\", \"en\", \"en-sc\", \"en-uk\", \"en-uk-north\", \"en-uk-rp\", \"en-uk-wmids\", \"en-us\", \"en-wi\", \"eo\", \"es\", \"es-la\", \"fi\", \"fr\", \"fr-be\", \"grc\", \"hi\", \"hr\", \"hu\", \"hy\", \"hy\", \"id\", \"is\", \"it\", \"jbo\", \"ka\", \"kn\", \"ku\", \"la\", \"lv\", \"mk\", \"ml\", \"nci\", \"nl\", \"no\", \"pap\", \"pl\", \"pt\", \"pt-pt\", \"ro\", \"ru\", \"sk\", \"sq\", \"sr\", \"sv\", \"sw\", \"ta\", \"tr\", \"vi\", \"zh\", \"zh-yue\"]\n\n# Find particular voice\nEspeak::Voice.find_by_language('en') #\u003cEspeak::Voice:0x007fe1d3806be8 @language=\"en\", @name=\"default\", @gender=\"M\", @file=\"default\"\u003e\n```\n\n## Features\n\nCurrently only subset of espeak features is supported.\n\n```crystal\nvoice:   'en',    # use voice file of this name from espeak-data/voices\npitch:   50,      # pitch adjustment, 0 to 99\nspeed:   170,     # speed in words per minute, 80 to 370\ncapital: 170,     # increase emphasis (pitch) of capitalized words, 1 to 40 (for natural sound, can go higher)\n```\n\nThese are default values, and they can be easily overridden:\n\n```crystal\nSpeech.new(\"Zdravo svete\", voice: \"sr\", pitch: 90, speed: 200).speak\n```\n\n## Installing dependencies\n\n### OS X\n\n    brew install espeak lame\n\n### Ubuntu\n\n    apt-get install espeak lame\n\n## Related\n\n* [espeak-ruby](http://github.com/dejan/espeak-ruby) - original Ruby gem that this Crystal version was ported from\n* [espeak-http](http://github.com/dejan/espeak-http) - Micro web app for Text-To-Speech conversion via HTTP powered by Ruby, Sinatra, lame, espeak and espeak-ruby\n\n## Licence\n\nespeak is released under the [MIT License](/MIT-LICENSE).\n\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/szTheory/espeak/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [szTheory](https://github.com/szTheory) - creator and maintainer\n- [dejan](https://github.com/dejan/) - creator of the original [espeak-ruby](https://github.com/dejan/espeak-ruby)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsztheory%2Fespeak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsztheory%2Fespeak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsztheory%2Fespeak/lists"}