{"id":19988571,"url":"https://github.com/mapluisch/openai-text-to-speech-for-unity","last_synced_at":"2025-07-29T14:10:03.206Z","repository":{"id":208077618,"uuid":"720771261","full_name":"mapluisch/OpenAI-Text-To-Speech-for-Unity","owner":"mapluisch","description":"Implementation of OpenAI's Text-To-Speech in Unity. Synthesize any text and play it via any AudioSource.","archived":false,"fork":false,"pushed_at":"2024-04-05T18:05:41.000Z","size":2096,"stargazers_count":71,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-04T08:36:53.399Z","etag":null,"topics":["openai","openai-tts","text-to-speech","unity","unity-ai","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","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/mapluisch.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}},"created_at":"2023-11-19T14:55:28.000Z","updated_at":"2025-05-03T17:05:13.000Z","dependencies_parsed_at":"2025-05-04T08:32:06.443Z","dependency_job_id":"1d98f48d-2792-4d1c-a91d-2ed0528d9e42","html_url":"https://github.com/mapluisch/OpenAI-Text-To-Speech-for-Unity","commit_stats":null,"previous_names":["mapluisch/openai-text-to-speech-for-unity"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mapluisch/OpenAI-Text-To-Speech-for-Unity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapluisch%2FOpenAI-Text-To-Speech-for-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapluisch%2FOpenAI-Text-To-Speech-for-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapluisch%2FOpenAI-Text-To-Speech-for-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapluisch%2FOpenAI-Text-To-Speech-for-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapluisch","download_url":"https://codeload.github.com/mapluisch/OpenAI-Text-To-Speech-for-Unity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapluisch%2FOpenAI-Text-To-Speech-for-Unity/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267701256,"owners_count":24130447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":["openai","openai-tts","text-to-speech","unity","unity-ai","unity3d"],"created_at":"2024-11-13T04:43:28.442Z","updated_at":"2025-07-29T14:10:03.153Z","avatar_url":"https://github.com/mapluisch.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eOpenAI Text-to-Speech Integration for Unity\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/mapluisch/OpenAI-Text-To-Speech-for-Unity/assets/31780571/ae08c0ba-cb60-4b6f-a904-bcdcc059893c\" width=\"70%\"/\u003e\n  \u003cp\u003e\u003cem\u003eImplementation of OpenAI's Text-To-Speech in Unity - synthesize any text and play it via any AudioSource.\u003c/em\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Overview\nThis project integrates OpenAI's Text-to-Speech API into any Unity project, allowing users to convert and synthesize text to spoken audio via any AudioSource component within seconds.\n\nIt *does not use third-party libraries*, making it super lightweight and easy to use cross-platform.\n\n### What's new in v.1.1.\n- Added a new custom editor script for easily setting up TTS within your Unity project (see demo videos below)\n\n## Demos\n\nOnce you've installed this project, setting up OpenAI's TTS within Unity takes seconds. \n\nIntegrate this project (either in your existing project, or in a fresh one), then open up the `TTS Setup` Prefab and click through the steps, as shown in this demo:\n\nhttps://github.com/mapluisch/OpenAI-Text-To-Speech-for-Unity/assets/31780571/e6dc69b9-d0b5-4af5-9844-5d336551cf10\n\nI've also added a quick UI example scene, so you can tinker around with some TTS settings easily:\n\nhttps://github.com/mapluisch/OpenAI-Text-To-Speech-for-Unity/assets/31780571/aadf35dc-453e-4f55-8930-f9169e3b185e\n\n### Setup\n0. Download the latest release `.unitypackage`.\n1. Import it into your own project, e.g. via `Assets \u003e Import Package`.\n2. Either open the `OpenAI-TTS-Example` scene, or open up the `TTS Setup` Prefab and click through the installation steps.\n- Optional: Change the `TTSManager` Prefab settings to your liking (useful if you want to have different entities with predefined voices, speeds, etc.)\n3. Reference the `TTSManager` and call `TTSManager.SynthesizeAndPlay` via script.\n\n### Using OpenAI TTS in your own scene\n0. Open up the `TTS Setup` Prefab.\n1. Add your OpenAI API key first, then click through the installation steps.\n- Optional: Change the `TTSManager` Prefab settings to your liking (useful if you want to have different entities with predefined voices, speeds, etc.)\n2. Reference a `TTSManager` and call `TTSManager.SynthesizeAndPlay` via script.\n\n### Disclaimer\nThis project is a prototype and serves as a basic example of integrating OpenAI's TTS API with Unity. Feel free to create a PR 😊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapluisch%2Fopenai-text-to-speech-for-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapluisch%2Fopenai-text-to-speech-for-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapluisch%2Fopenai-text-to-speech-for-unity/lists"}