{"id":38942801,"url":"https://github.com/rpfilomeno/tts-player-server","last_synced_at":"2026-01-17T15:55:51.026Z","repository":{"id":321577248,"uuid":"1086297261","full_name":"rpfilomeno/tts-player-server","owner":"rpfilomeno","description":"This is a simple Text-to-Speech (TTS) server that runs as a system tray application. It receives text via an HTTP endpoint, queues it, and plays it back as audio using a local TTS engine.","archived":false,"fork":false,"pushed_at":"2025-11-21T01:43:56.000Z","size":929,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-21T03:30:04.608Z","etag":null,"topics":["automation","kokoro-tts","tts-api"],"latest_commit_sha":null,"homepage":"","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/rpfilomeno.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-30T08:19:45.000Z","updated_at":"2025-11-21T01:39:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"8526dd71-901c-4d37-b29b-bcd9a0f11f71","html_url":"https://github.com/rpfilomeno/tts-player-server","commit_stats":null,"previous_names":["rpfilomeno/tts-player-server"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rpfilomeno/tts-player-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpfilomeno%2Ftts-player-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpfilomeno%2Ftts-player-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpfilomeno%2Ftts-player-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpfilomeno%2Ftts-player-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpfilomeno","download_url":"https://codeload.github.com/rpfilomeno/tts-player-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpfilomeno%2Ftts-player-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["automation","kokoro-tts","tts-api"],"created_at":"2026-01-17T15:55:50.455Z","updated_at":"2026-01-17T15:55:51.006Z","avatar_url":"https://github.com/rpfilomeno.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TTS Player Server\n\nThis is a simple Text-to-Speech (TTS) server that runs as a system tray application. It receives text via an HTTP endpoint, queues it, and plays it back as audio using a local TTS engine.\n\n\u003cimg width=\"1024\" height=\"1024\" alt=\"tts\" src=\"https://github.com/user-attachments/assets/d287869c-6a54-46e1-83c4-fc19fbd24635\" /\u003e\n\n## Features\n\n- **HTTP Endpoint**: Queue text for playback by sending POST requests to `/queue`.\n- **System Tray Control**: Manage playback directly from a system tray icon.\n- **Playback Management**:\n    - Pause and Resume audio playback.\n    - Stop the current audio and clear the entire queue.\n    - Replay the last played audio chunk.\n- **Volume Control**: Adjust volume levels (Low, Medium, High).\n- **Smart Text Chunking**: Intelligently splits long texts into smaller chunks to handle API limits and ensure smooth playback.\n- **Background Worker**: Processes the text queue in the background.\n\n## Prerequisites\n\nBefore running this application, you need:\n\n1.  **Go**: Ensure you have Go installed on your system.\n2.  **Kokoro TTS API**: This application is designed to work with a [Kokoro-FastAPI](https://github.com/remsky/Kokoro-FastAPI) accessible at `http://localhost:8880/v1/audio/speech`. You must have this service running.\n\n## Installation and Running\n\n1.  **Clone the repository:**\n    ```sh\n    git clone \u003crepository-url\u003e\n    cd tts-player-server\n    ```\n\n2.  **Install dependencies:**\n    ```sh\n    go mod tidy\n    ```\n\n3.  **Run the application:**\n    ```sh\n    go run main.go\n    ```\n\nThe application will start, and you will see a new icon in your system tray.\n\n## Release Binary\n\nYou can download the pre-built binary for your platform from the [releases page](https://github.com/rpfilomeno/tts-player-server/releases).\n\n## API Usage\n\nTo queue text for playback, send a POST request with a JSON payload to the `/queue` endpoint.\n\n**Endpoint**: `POST /queue`\n**Address**: `http://localhost:50059`\n\n### Example using cURL\n\n```sh\ncurl -X POST -H \"Content-Type: application/json\" -d \"{\\\"text\\\": \\\"Hello, world! This is a test.\\\"}\" http://localhost:50059/queue\n```\n\n## System Tray Controls\n\nRight-clicking the tray icon opens a menu with the following options:\n\n- **Volume**:\n    - **Low**: Sets playback volume to 20%.\n    - **Medium**: Sets playback volume to 50% (Default).\n    - **High**: Sets playback volume to 100%.\n- **Pause / Resume**: Toggles pausing and resuming of the current audio playback.\n- **Stop**: Immediately stops the current playback and clears all items from the queue.\n- **Replay**: Stops the current playback and replays the last piece of audio that was generated.\n- **Quit**: Shuts down the server and closes the application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpfilomeno%2Ftts-player-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpfilomeno%2Ftts-player-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpfilomeno%2Ftts-player-server/lists"}