{"id":28194298,"url":"https://github.com/humansinput/espeak-cgi","last_synced_at":"2026-01-25T15:31:31.341Z","repository":{"id":128773417,"uuid":"250574149","full_name":"humansinput/espeak-cgi","owner":"humansinput","description":"Tcl/CGI wrapper around espeak-ng","archived":false,"fork":false,"pushed_at":"2019-10-04T21:01:20.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T09:12:03.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/humansinput.png","metadata":{"files":{"readme":"README.asciidoc","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":"2020-03-27T15:41:06.000Z","updated_at":"2020-04-03T20:25:40.000Z","dependencies_parsed_at":"2023-08-25T07:50:09.328Z","dependency_job_id":null,"html_url":"https://github.com/humansinput/espeak-cgi","commit_stats":null,"previous_names":["humansinput/espeak-cgi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fespeak-cgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fespeak-cgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fespeak-cgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fespeak-cgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humansinput","download_url":"https://codeload.github.com/humansinput/espeak-cgi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535800,"owners_count":22087399,"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-05-16T13:11:50.511Z","updated_at":"2026-01-25T15:31:31.330Z","avatar_url":"https://github.com/humansinput.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"= espeak-cgi\n\nThis CGI script (written in Tcl) is a wrapper around espeak-ng tool. It is useful if you need a TTS engine for your web app and you want to host it yourself, right on your server.\n\n_SCRIPT DOES NOT WORK ON WINDOWS_\n\n== Installation on RedHat Enterprise 8\n\nDownlad and install ActiveTcl 8.6 from ActiveState into ``/opt/ActiveTcl-8.6``: http://downloads.activestate.com/ActiveTcl/releases/8.6.9.0/\n\nCopy over ``say.tcl`` to ``/var/www/cgi-bin``, then chmod it to make it executable.\n\nObviously, also install ``espeak-ng`` (it is already preinstalled if you have GNOME installed).\n\n== Usage\n\nThe script accepts the following arguments:\n\n[squares]\n- ``text=[text encoded in base64]`` - specifies the text to speak. The value must be the base64 of the string with ``+`` replaced with ``-`` and ``/`` replaced with ``_`` (http base64). Useful if you are trying to speak text the language of which is other than English.\n- ``textp=[English text]`` - specifies the text to speak. It is not needed to convert it to base64. However, the specified text must be in English, otherwise, this won't work.\n- ``voice=[voice]`` - specifies the voice to use. Default value is ``en-us``.\n- ``pitch=[number from 0 to 100]`` - specifies espeak pitch. Default value is 78.\n\nThe script throws only two types of HTTP errors - 200 and 500. When 200 is returned, this means that everything is fine and the resulting wav file is returned. Otherwise, the text of the error is returned.\n\n== Example \n\nContents of ``index.html``:\n\n[source,html]\n----\n\u003cscript\u003e\nfunction sayHi() {\n\tlet txt = document.getElementById('tbox').value;\n\tlet base = btoa(txt).replace('+', '-').replace('/', '_');\n\tnew Audio('/cgi-bin/say.tcl?text=' + txt + '\u0026v=en-us').play()\n}\n\u003c/script\u003e\n\u003cp\u003eType something: \u003cinput type=text id=tbox /\u003e\u003c/p\u003e\n\u003cbutton onclick=\"sayHi()\"\u003eSay it\u003c/button\u003e\n----\n\n== License\n\nAs always, MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumansinput%2Fespeak-cgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumansinput%2Fespeak-cgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumansinput%2Fespeak-cgi/lists"}