{"id":17444488,"url":"https://github.com/transitive-bullshit/unrealspeech-api","last_synced_at":"2026-03-05T12:02:17.182Z","repository":{"id":257813904,"uuid":"869169120","full_name":"transitive-bullshit/unrealspeech-api","owner":"transitive-bullshit","description":"TypeScript client for the Unreal Speech TTS API.","archived":false,"fork":false,"pushed_at":"2024-10-08T04:44:44.000Z","size":66,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T09:23:09.518Z","etag":null,"topics":["text-to-speech","tts","tts-api"],"latest_commit_sha":null,"homepage":"https://docs.unrealspeech.com/reference/getting-started-with-our-api","language":"TypeScript","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/transitive-bullshit.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","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},"funding":{"github":["transitive-bullshit"]}},"created_at":"2024-10-07T20:46:59.000Z","updated_at":"2025-03-27T11:30:35.000Z","dependencies_parsed_at":"2024-10-08T05:40:02.620Z","dependency_job_id":null,"html_url":"https://github.com/transitive-bullshit/unrealspeech-api","commit_stats":null,"previous_names":["transitive-bullshit/unrealspeech-api"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/transitive-bullshit/unrealspeech-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Funrealspeech-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Funrealspeech-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Funrealspeech-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Funrealspeech-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transitive-bullshit","download_url":"https://codeload.github.com/transitive-bullshit/unrealspeech-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Funrealspeech-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30123730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T11:11:57.947Z","status":"ssl_error","status_checked_at":"2026-03-05T11:11:29.001Z","response_time":93,"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":["text-to-speech","tts","tts-api"],"created_at":"2024-10-17T17:28:31.340Z","updated_at":"2026-03-05T12:02:17.163Z","avatar_url":"https://github.com/transitive-bullshit.png","language":"TypeScript","funding_links":["https://github.com/sponsors/transitive-bullshit"],"categories":[],"sub_categories":[],"readme":"# unrealspeech-api \u003c!-- omit from toc --\u003e\n\n\u003e TypeScript client for the [Unreal Speech](https://unrealspeech.com/) [TTS API](https://docs.unrealspeech.com/reference/getting-started-with-our-api).\n\n\u003cp\u003e\n  \u003ca href=\"https://github.com/transitive-bullshit/unrealspeech-api/actions/workflows/main.yml\"\u003e\u003cimg alt=\"Build Status\" src=\"https://github.com/transitive-bullshit/unrealspeech-api/actions/workflows/main.yml/badge.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/unrealspeech-api\"\u003e\u003cimg alt=\"NPM\" src=\"https://img.shields.io/npm/v/unrealspeech-api.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/transitive-bullshit/unrealspeech-api/blob/main/license\"\u003e\u003cimg alt=\"MIT License\" src=\"https://img.shields.io/badge/license-MIT-blue\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://prettier.io\"\u003e\u003cimg alt=\"Prettier Code Formatting\" src=\"https://img.shields.io/badge/code_style-prettier-brightgreen.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n- [Intro](#intro)\n- [Why?](#why)\n- [Install](#install)\n- [Usage](#usage)\n- [License](#license)\n\n## Intro\n\nThis package is a rewrite of https://github.com/unrealspeech/unrealspeech-js to expose a more standards-based TS package for the [Unreal Speech](https://unrealspeech.com/) [TTS API](https://docs.unrealspeech.com/reference/getting-started-with-our-api).\n\n## Why?\n\nTheir first-party JS package has several issues:\n\n- it has a bogus dependency on `fs` which doesn't inspire confidence\n- it uses `node-fetch` instead of universal `fetch`\n- it includes additional Node.js-specific functionality related to playing media via ffmpeg, which doesn't belong in this type of NPM package\n- some of the types are also incorrect\n- [ky](https://github.com/sindresorhus/ky) handles automatic retries, is very customizable, and is built on top of `fetch`\n\n## Install\n\n```sh\nnpm install unrealspeech-api\n```\n\nThis package is [ESM-only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If your project uses CommonJS, consider switching to ESM or use [dynamic `import()`](https://v8.dev/features/dynamic-import).\n\n## Usage\n\n```ts\nimport { UnrealSpeechClient } from 'unrealspeech-api'\n\nconst unrealSpeech = new UnrealSpeechClient({\n  apiKey: process.env.UNREAL_SPEECH_API_KEY\n})\n\nconst shortResult = await unrealSpeech.stream({\n  text: 'Hello, World!',\n  voiceId: 'Scarlett'\n})\nconsole.log(shortResult)\n\nconst mediumResult = await unrealSpeech.speech({\n  text: 'Hello, World! ...',\n  voiceId: 'Scarlett'\n})\nconsole.log(mediumResult)\n\nconst synthesisTask = await unrealSpeech.createSynthesisTask({\n  text: 'Hello, World! ...',\n  voiceId: 'Scarlett'\n})\nconsole.log(synthesisTask)\n\nconst updatedSynthesisTask = await unrealSpeech.getSynthesisTask(\n  synthesisTask.TaskId\n)\nconsolelog(updatedSynthesisTask)\n```\n\n## License\n\nMIT © [Travis Fischer](https://x.com/transitive_bs)\n\nIf you found this project interesting, [consider following me on Twitter](https://x.com/transitive_bs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Funrealspeech-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransitive-bullshit%2Funrealspeech-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Funrealspeech-api/lists"}