{"id":43755617,"url":"https://github.com/ahrjarrett/react-speak","last_synced_at":"2026-02-05T14:23:23.496Z","repository":{"id":57345127,"uuid":"134365755","full_name":"ahrjarrett/react-speak","owner":"ahrjarrett","description":"Stupid-simple React component for working with the Web Speech api","archived":false,"fork":false,"pushed_at":"2018-12-11T18:13:01.000Z","size":35,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T09:55:12.599Z","etag":null,"topics":["react","redux","webspeech","webspeech-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-speak","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahrjarrett.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-22T05:40:06.000Z","updated_at":"2023-08-12T22:15:44.000Z","dependencies_parsed_at":"2022-09-17T13:51:24.651Z","dependency_job_id":null,"html_url":"https://github.com/ahrjarrett/react-speak","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahrjarrett/react-speak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrjarrett%2Freact-speak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrjarrett%2Freact-speak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrjarrett%2Freact-speak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrjarrett%2Freact-speak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahrjarrett","download_url":"https://codeload.github.com/ahrjarrett/react-speak/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrjarrett%2Freact-speak/sbom","scorecard":{"id":172406,"data":{"date":"2025-08-11","repo":{"name":"github.com/ahrjarrett/react-speak","commit":"4de98fd37c3170eb7f406ab9903cbad73ebea56e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"35 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T16:55:22.245Z","repository_id":57345127,"created_at":"2025-08-16T16:55:22.245Z","updated_at":"2025-08-16T16:55:22.245Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29123675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"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":["react","redux","webspeech","webspeech-api"],"created_at":"2026-02-05T14:23:22.789Z","updated_at":"2026-02-05T14:23:23.486Z","avatar_url":"https://github.com/ahrjarrett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-speak\n\nSimple, extensible React HOC for interop with the [Web SpeechRecognition](https://w3c.github.io/speech-api/speechapi.html) API.\n\n[Visit react-speak on npm](https://www.npmjs.com/package/react-speak).\n\n\n## Dependencies:\n- [React 16](https://github.com/facebook/react)\n- [PropTypes](https://github.com/facebook/prop-types)\n\n\n## Install\n\nDo:\n\n```$ npm install react-speak```\n\nor:\n\n```$ yarn add react-speak```\n\n\n## Simple Usage\n\nUsing `react-speak` is pretty simple because it's designed to do one thing well: allow your React/Redux components to work with your browser's native Web SpeechRecognition API and give you access to a user's microphone.\n\nUnder the hood, `withSpeech` is a function that takes a component and returns a wrapped component with the following PropTypes:\n\n``` jsx\nWithSpeech.propTypes = {\n  startListening: PropTypes.func.isRequired,\n  stopListening: PropTypes.func.isRequired,\n  addToRegister: PropTypes.func,\n}\n```\n\nThe package was written to be used with Redux, so all three props were designed to be action creators that return action objects (see the Redux section below).\n\n\n## Example Setup\n\nHere's a simple setup using Redux:\n\n``` jsx\nimport withSpeech from 'react-speak'\nimport React from 'react'\nimport { compose } from 'redux'\nimport { connect } from 'react-redux'\nimport { startListening, stopListening, addToRegister, clearRegister } from '../actions/speech'\n\n// Whatever state you care about:\nconst mapStateToProps = state =\u003e ({ \n  isListening: state.isListening,\n  register: state.register\n})\n\nconst mapDispatchToProps = {\n  startListening,\n  stopListening,\n  addToRegister,\n  clearRegister\n}\n\nconst YourComponentWithSpeech = props =\u003e (\n  \u003cdiv className=\"ComponentWithSpeech\"\u003e\n    {props.isListening\n      ? null \n      : (\n        \u003cbutton onClick={() =\u003e onSave(props.register)}\u003e\n\t\t  Start speaking\n        \u003c/button\u003e\n      )\n    }\n    \u003cdiv className=\"transcript\"\u003e\n      {props.register.map(transcript =\u003e \u003cdiv\u003e{transcript}\u003c/div\u003e)}\n    \u003c/div\u003e\n  \u003c/div\u003e\n)\n\nexport default compose(\n  connect(mapStateToProps, mapDispatchToProps),\n  withSpeech,\n)(YourComponentWithSpeech)\n```\n\n\n## Redux:\n\n`withSpeech` returns a component with the following props: \n\n* `startListening` (function, required)\n* `stopListening` (function, required)\n* `addToRegister` (function)\n\nAll three are action creators that return action objects.\n\n`startListening` and `stopListening` are similar in that they \ndon't receive any particular payload from the withSpeech\ncomponent; your action creator could be as simple as:\n\n``` js\nconst startListening = () =\u003e ({ type: INIT_LISTEN })\n```\n\n`addToRegister` on the other hand receives a transcript or \"register\", \nwhich is just an array of strings from your user's microphone. You can pass \nthis as a payload to your reducers and do whatever you want with next.\n\nAn example action creator:\n\n``` js\nconst sendToAlexa = transcript =\u003e ({\n  type: TRANSCRIPT_SENT,\n  payload: transcript\n})\n```\n\n\n## FAQ:\n\n* _Q:_ Do I have to use Redux?\n* _A:_ Currently this only officially supports a Redux or Flux-type model where you have reducers that listen for the actions that withSpeech returns, and manages the logic for how this component actually mutates state.\n \n* _Q:_ How can I contribute?\n* _A:_ Contributions are totally welcome! See the section on contributing below.\n\n\n## Contributing\n\nPRs that abstract this component's functionality to React in general are absolutely welcome! Also, drop me a line if you're interested in helping me work with the [SpeechSynthesis](https://w3c.github.io/speech-api/speechapi.html#tts-section) interface, as currently `withSpeech` only implements the [SpeechRecognition](https://w3c.github.io/speech-api/speechapi.html#speechreco-section) protocol.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahrjarrett%2Freact-speak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahrjarrett%2Freact-speak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahrjarrett%2Freact-speak/lists"}