{"id":37101237,"url":"https://github.com/vektorprogrammet/ttsaas","last_synced_at":"2026-01-14T12:18:16.089Z","repository":{"id":44019711,"uuid":"299962668","full_name":"vektorprogrammet/ttsaas","owner":"vektorprogrammet","description":"Text to speech as a service","archived":false,"fork":false,"pushed_at":"2022-02-13T00:18:59.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-21T02:11:57.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/vektorprogrammet.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}},"created_at":"2020-09-30T15:20:06.000Z","updated_at":"2021-03-11T14:30:05.000Z","dependencies_parsed_at":"2022-09-23T10:51:24.070Z","dependency_job_id":null,"html_url":"https://github.com/vektorprogrammet/ttsaas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vektorprogrammet/ttsaas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vektorprogrammet%2Fttsaas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vektorprogrammet%2Fttsaas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vektorprogrammet%2Fttsaas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vektorprogrammet%2Fttsaas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vektorprogrammet","download_url":"https://codeload.github.com/vektorprogrammet/ttsaas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vektorprogrammet%2Fttsaas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":[],"created_at":"2026-01-14T12:18:15.309Z","updated_at":"2026-01-14T12:18:16.074Z","avatar_url":"https://github.com/vektorprogrammet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TTSAAS\n\u003e Text To Speech As A Service\n\n## Dependencies\nBe sure to install the following go libraries:\n```bash\ngo get github.com/hegedustibor/htgo-tts\ngo get github.com/kennygrant/sanitize\n```\n\nAlso, the `htgo-tts` package requires `mplayer` to be installed, or it will throw an error.\n```bash\nsudo apt install mplayer\n```\n\nFinally, we need `ffmpeg` to increase the volume\n```bash\nsudo apt install ffmpeg\n```\n\n## Usage \n### Setup\nYou might need to create a folder named `audio` in the directory of the executable.\n\n### Running \nStart the project with `go run main.go` or build and run the executable.\n\n### Choosing a port\nThe service uses port 80 by default, but this can be configured by setting the `TTSAAS_PORT` environment variable.\n\n## API usage\nNavigating to `localhost:8000/hello%20world` will return an mp3 file with \"Hello world\" spoken out. The content type is `audio/mpeg`.\n\n## HTML audio element example\nThe api can be used as a source for audio tags. For example:\n```html\n\u003caudio controls\u003e\n  \u003csource src=\"http://localhost/hello%20world\" type=\"audio/mpeg\"\u003e\n\u003c/audio\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvektorprogrammet%2Fttsaas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvektorprogrammet%2Fttsaas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvektorprogrammet%2Fttsaas/lists"}