{"id":35631772,"url":"https://github.com/yanorei32/winrt-tts-server","last_synced_at":"2026-04-16T11:03:25.148Z","repository":{"id":327312742,"uuid":"1107349664","full_name":"yanorei32/winrt-tts-server","owner":"yanorei32","description":"A simple Web Based Windows Runtime (WinRT) Speech Synthesis API","archived":false,"fork":false,"pushed_at":"2026-04-05T02:54:13.000Z","size":95,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-05T04:26:59.410Z","etag":null,"topics":["api","rust","speechsynthesisapi","text-to-speech","tts","web","winrt"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanorei32.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-12-01T02:31:33.000Z","updated_at":"2026-04-05T02:51:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yanorei32/winrt-tts-server","commit_stats":null,"previous_names":["yanorei32/winrt-tts-server"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/yanorei32/winrt-tts-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanorei32%2Fwinrt-tts-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanorei32%2Fwinrt-tts-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanorei32%2Fwinrt-tts-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanorei32%2Fwinrt-tts-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanorei32","download_url":"https://codeload.github.com/yanorei32/winrt-tts-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanorei32%2Fwinrt-tts-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"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":["api","rust","speechsynthesisapi","text-to-speech","tts","web","winrt"],"created_at":"2026-01-05T09:12:01.695Z","updated_at":"2026-04-16T11:03:25.132Z","avatar_url":"https://github.com/yanorei32.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# winrt-tts-server\r\n\r\nThis is a lightweight web server designed for speech synthesis using the Windows Runtime (WinRT) Speech Synthesis API, providing a simple HTTP interface for text-to-speech generation on Windows.\r\n\r\n\u003c!-- \u003cimg width=\"1000\" alt=\"image\" src=\"placeholder.png\" /\u003e --\u003e\r\n\r\n## Features\r\n\r\n- 🗣️ **Native Windows TTS**  \r\n  Utilizes the Windows Runtime Speech Synthesis API to generate natural-sounding speech using built-in Windows voices.\r\n\r\n- 🔊 **Simple API Design**  \r\n  Offers a minimal HTTP API for generating speech with support for volume, speed, and pitch control.\r\n\r\n- 📦 **WAV File Output**  \r\n  Returns synthesized speech as a WAV file in the HTTP response.\r\n\r\n- 🎛️ **Voice Parameter Control**  \r\n  Supports adjusting volume, speaking rate, and pitch through the `SpeechSynthesizer.Options` API.\r\n\r\n## Use Case\r\n\r\nPrimarily intended for integration with Discord bots, automation tools, or applications requiring TTS capabilities on Windows without GUI interaction.\r\n\r\n## API Details\r\n\r\n### `GET /api/voices`\r\n\r\nThis endpoint returns a list of available voice profiles that can be used with the TTS engine.\r\n\r\n#### Response\r\n\r\nThe response is a JSON array of voice objects. Each object contains:\r\n\r\n- `id` *(string)*: A unique identifier for the voice.\r\n- `display_name` *(string)*: The display name of the voice.\r\n- `language` *(string)*: The language code of the voice (e.g., \"en-US\", \"ja-JP\").\r\n- `description` *(string)*: The description of the voice.\r\n- `gender` *(string)*: The gender of the voice. (\"Male\" or \"Female\").\r\n\r\n\r\n### `POST /api/tts`\r\n\r\nThis endpoint generates speech audio from the provided text and voice parameters.\r\n\r\n#### Request\r\n\r\nThe request must be a JSON object with the following fields:\r\n\r\n- `text` *(string)*: The input text to be synthesized.\r\n- `voice_id` *(string)*: The identifier of the voice to use.\r\n- `audio_volume` *(number)* *(optional)*: Controls loudness (0.0 - 1.0, default 1.0).\r\n- `speaking_rate` *(number)* *(optional)*: Adjusts speaking rate (0.5 - 6.0, default 1.0).\r\n- `audio_pitch` *(number)* *(optional)*: Modifies pitch (0.0 - 2.0, default 1.0).\r\n\r\n#### Response\r\n\r\n- `200 OK`: Returns a WAV file containing the synthesized speech.\r\n- `500 INTERNAL_SERVER_ERROR`: Returns a plain-text error message.\r\n\r\n## Configuration\r\n\r\nYou can configure the server using command-line arguments.\r\n\r\n| Argument | Default | Description |\r\n| :--- | :--- | :--- |\r\n| `--listen` | `0.0.0.0:3000` | Socket address to bind to. |\r\n\r\n## Building \u0026 Running\r\n\r\n```bash\r\n# Build\r\ncargo build --release\r\n\r\n# Run\r\n./target/release/winrt-tts-server --listen 127.0.0.1:3000\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanorei32%2Fwinrt-tts-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanorei32%2Fwinrt-tts-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanorei32%2Fwinrt-tts-server/lists"}