{"id":23980761,"url":"https://github.com/squiddev-cc/ccspeaks","last_synced_at":"2025-04-14T04:34:00.858Z","repository":{"id":81675605,"uuid":"564947179","full_name":"SquidDev-CC/CCSpeaks","owner":"SquidDev-CC","description":"A Text to Speech web service for ComputerCraft","archived":false,"fork":false,"pushed_at":"2024-06-17T22:04:34.000Z","size":75,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T18:22:23.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SquidDev-CC.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":"2022-11-11T22:14:53.000Z","updated_at":"2025-01-09T16:47:31.000Z","dependencies_parsed_at":"2024-06-17T23:45:36.225Z","dependency_job_id":"dc137d53-3ad5-4f76-9b65-df78c14b0706","html_url":"https://github.com/SquidDev-CC/CCSpeaks","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/SquidDev-CC%2FCCSpeaks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SquidDev-CC%2FCCSpeaks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SquidDev-CC%2FCCSpeaks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SquidDev-CC%2FCCSpeaks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SquidDev-CC","download_url":"https://codeload.github.com/SquidDev-CC/CCSpeaks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248822888,"owners_count":21167131,"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":[],"created_at":"2025-01-07T10:18:34.001Z","updated_at":"2025-04-14T04:34:00.814Z","avatar_url":"https://github.com/SquidDev-CC.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CCSpeaks\nA very silly TTS server using [espeak-ng](https://github.com/espeak-ng/espeak-ng/).\n\n## Try it\nRun the following command from a computer. Make sure you've got a speaker attached!\n\n```\nspeaker play https://music.madefor.cc/tts?text=This%20is%20some%20text\n```\n\nYou can also use this directly in your Lua code.\n\n```lua\nlocal message = \"Just fiddling with text to speech.\"\n\nlocal url = \"https://music.madefor.cc/tts?text=\" .. textutils.urlEncode(message)\nlocal response, err = http.get { url = url, binary = true }\nif not response then error(err, 0) end\n\nlocal speaker = peripheral.find(\"speaker\")\nlocal decoder = require(\"cc.audio.dfpwm\").make_decoder()\n\nwhile true do\n    local chunk = response.read(16 * 1024)\n    if not chunk then break end\n\n    local buffer = decoder(chunk)\n    while not speaker.playAudio(buffer) do\n        os.pullEvent(\"speaker_audio_empty\")\n    end\nend\n```\n\nWe additionally support a \"voice\" parameter, which can be used to change the\naccent language of the generated text. The available voices can be found\nby running `espeak --voices` or [in their documentation][languages].\n\n```\nspeaker play https://music.madefor.cc/tts?text=This%20is%20some%20text\u0026voice=en-gb-scotland\n```\n\n[languages]: https://github.com/espeak-ng/espeak-ng/blob/33df55bf125edfda8b6f0302deb9dd91cb24124c/docs/languages.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquiddev-cc%2Fccspeaks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquiddev-cc%2Fccspeaks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquiddev-cc%2Fccspeaks/lists"}