{"id":20961342,"url":"https://github.com/perbu/tts-cli","last_synced_at":"2026-04-27T10:32:31.933Z","repository":{"id":245550447,"uuid":"818591853","full_name":"perbu/tts-cli","owner":"perbu","description":"Text-to-Speech using the OpenAI API","archived":false,"fork":false,"pushed_at":"2024-06-29T06:28:54.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-29T05:52:42.810Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-06-22T09:14:36.000Z","updated_at":"2025-05-19T01:10:06.000Z","dependencies_parsed_at":"2025-01-20T00:40:50.584Z","dependency_job_id":"2402fa90-dc16-43b7-a278-3a0eac187870","html_url":"https://github.com/perbu/tts-cli","commit_stats":null,"previous_names":["perbu/tts-cli"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/perbu/tts-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Ftts-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Ftts-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Ftts-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Ftts-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/tts-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Ftts-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32333196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-19T02:03:25.258Z","updated_at":"2026-04-27T10:32:31.904Z","avatar_url":"https://github.com/perbu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tts-cli\n\nThis is a simple CLI wrapper around the OpenAI Text-to-Speech API. There where already a few of these, but they were\nwritten in Python. Dependency management in Python is a nightmare, so I decided to write my own in Go.\n\nI use this, in addition to `make` and `dropcaster` to generate a podcast out of a bunch of text-files so I can \"read\" \nthem while biking or walking.\n\n## Installation\n\n```bash\ngo install github.com/perbu/tts-cli@latest\n```\n\n## Usage\n\n```bash\ntts-cli [-debug] \u003cinput file\u003e\n```\n\nThis will read the input file, send it to the OpenAI API, and write the resulting audio to an mp3 file with the same\nname as the input file, but with \".mp3\" appended.\n\n## Makefile for mp3 generation\n\n```makefile\n# Find all .txt files in the source directory\nTXT_FILES := $(wildcard source/*.txt)\n\n# Generate the list of target .aac files in the current directory\nAUDIO_FILES := $(notdir $(TXT_FILES:.txt=.mp3))\n\n# Default target\nall: $(AUDIO_FILES)\n\n# Rule to create .aac file from .txt file\n%.mp3: source/%.txt\n\ttts-cli -o $@ $\u003c\n\n# Clean target to remove all generated audio files\nclean:\n\trm -f *.aac\n\n.PHONY: all clean\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Ftts-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Ftts-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Ftts-cli/lists"}