{"id":22808882,"url":"https://github.com/morganney/tts-react","last_synced_at":"2026-01-04T00:26:52.196Z","repository":{"id":58533885,"uuid":"532283272","full_name":"morganney/tts-react","owner":"morganney","description":"Convert text to speech using React.","archived":false,"fork":false,"pushed_at":"2025-03-09T20:07:34.000Z","size":13212,"stargazers_count":61,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T12:03:31.717Z","etag":null,"topics":["aws-polly","htmlaudioelement","react","speechsynthesis","speechsynthesisutterance","text-to-speech"],"latest_commit_sha":null,"homepage":"https://morganney.github.io/tts-react/","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/morganney.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}},"created_at":"2022-09-03T14:27:28.000Z","updated_at":"2025-03-23T19:23:25.000Z","dependencies_parsed_at":"2025-01-09T15:45:55.568Z","dependency_job_id":"088d6bed-afd4-488f-86ef-e58028f2bae6","html_url":"https://github.com/morganney/tts-react","commit_stats":{"total_commits":66,"total_committers":2,"mean_commits":33.0,"dds":"0.10606060606060608","last_synced_commit":"b9dfb77d067b417258d5ef9870a0f658ee89985e"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Ftts-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Ftts-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Ftts-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Ftts-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morganney","download_url":"https://codeload.github.com/morganney/tts-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339148,"owners_count":20923013,"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","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":["aws-polly","htmlaudioelement","react","speechsynthesis","speechsynthesisutterance","text-to-speech"],"created_at":"2024-12-12T11:12:34.660Z","updated_at":"2026-01-04T00:26:52.151Z","avatar_url":"https://github.com/morganney.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [`tts-react`](https://www.npmjs.com/package/tts-react)\n\n![CI](https://github.com/morganney/tts-react/actions/workflows/ci.yml/badge.svg)\n[![codecov](https://codecov.io/gh/morganney/tts-react/branch/main/graph/badge.svg?token=ZDP1VBC8E1)](https://codecov.io/gh/morganney/tts-react)\n[![NPM version](https://img.shields.io/npm/v/tts-react.svg)](https://www.npmjs.com/package/tts-react)\n\n\u003cimg src=\"./packages/tts-react/tts-react.png\" alt=\"TextToSpeech React component\" width=\"375\" /\u003e\n\nRepository for `tts-react`, a React component and hook that uses the [`SpeechSynthesis`](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis) and [`SpeechSynthesisUtterance`](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance) API's to convert text to speech. You can fallback to the [`HTMLAudioElement`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio) API by providing a `fetchAudioData` prop to the hook or component.\n\n\u003e [!IMPORTANT]  \n\u003e Requires a peer dependency of React and ReactDOM \u003e= 19.  \n\u003e Use `tts-react@3` if your project is on React 18.\n\n## Install\n\n```console\nnpm i react react-dom tts-react\n```\n\nFor projects using React 18:\n\n```console\nnpm i react@18 react-dom@18 tts-react@3\n```\n\n## Table of Contents\n\n* [tts-react](./packages/tts-react)\n* [storybook](./packages/story)\n* [examples](./docs/examples.md)\n\n## Demo (Storybook)\n\n[morganney.github.io/tts-react](https://morganney.github.io/tts-react/)\n\n## Progress\n\n* Helped fix a `SpeechSynthesisUtterance` default volume [Chrome bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1385117).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganney%2Ftts-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorganney%2Ftts-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganney%2Ftts-react/lists"}