{"id":21423916,"url":"https://github.com/picovoice/react-native-voice-processor","last_synced_at":"2026-03-06T15:03:38.999Z","repository":{"id":56199618,"uuid":"310139748","full_name":"Picovoice/react-native-voice-processor","owner":"Picovoice","description":"React Native audio recording package designed for real-time speech audio processing","archived":false,"fork":false,"pushed_at":"2026-03-03T23:30:29.000Z","size":16750,"stargazers_count":41,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-03-04T03:45:18.901Z","etag":null,"topics":["android","audio","audio-processing","audio-recorder","ios","java","javascript","react-native","swift","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Picovoice.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":"2020-11-04T23:18:12.000Z","updated_at":"2026-03-03T23:30:26.000Z","dependencies_parsed_at":"2023-12-23T01:52:20.118Z","dependency_job_id":"417ec986-d115-4604-9862-61d2edfa6a13","html_url":"https://github.com/Picovoice/react-native-voice-processor","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":0.1923076923076923,"last_synced_commit":"841a85d1ef75044a4d26c0c88bfeb2d046541769"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Picovoice/react-native-voice-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Picovoice%2Freact-native-voice-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Picovoice%2Freact-native-voice-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Picovoice%2Freact-native-voice-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Picovoice%2Freact-native-voice-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Picovoice","download_url":"https://codeload.github.com/Picovoice/react-native-voice-processor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Picovoice%2Freact-native-voice-processor/sbom","scorecard":{"id":109977,"data":{"date":"2025-08-11","repo":{"name":"github.com/Picovoice/react-native-voice-processor","commit":"2adbd6ad3227a2c482ff4a55725825c989c144f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":4,"reason":"Found 2/5 approved changesets -- score normalized to 4","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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: resources/.lint/java/checkstyle-10.5.0-all.jar:1","Warn: binary detected: test/VoiceProcessorTestApp/android/gradle/wrapper/gradle-wrapper.jar:1"],"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/example.yml:1","Warn: no topLevel permission defined: .github/workflows/java-codestyle.yml:1","Warn: no topLevel permission defined: .github/workflows/link-check.yml:1","Warn: no topLevel permission defined: .github/workflows/spell-check.yml:1","Warn: no topLevel permission defined: .github/workflows/swift-codestyle.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Warn: no topLevel permission defined: .github/workflows/typescript-codestyle.yml:1","Info: no jobLevel write permissions found"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"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 'main'"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/example.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/example.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/example.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/example.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/example.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/example.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/example.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/example.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/java-codestyle.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/java-codestyle.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/java-codestyle.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/java-codestyle.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/link-check.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/link-check.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/link-check.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/link-check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/spell-check.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/spell-check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/spell-check.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/spell-check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/swift-codestyle.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/swift-codestyle.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/swift-codestyle.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/swift-codestyle.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typescript-codestyle.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/typescript-codestyle.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typescript-codestyle.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Picovoice/react-native-voice-processor/typescript-codestyle.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/spell-check.yml:23","Warn: npmCommand not pinned by hash: .github/workflows/typescript-codestyle.yml:37","Info:   0 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p"],"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-15T11:58:08.663Z","repository_id":56199618,"created_at":"2025-08-15T11:58:08.663Z","updated_at":"2025-08-15T11:58:08.663Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30182686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"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":["android","audio","audio-processing","audio-recorder","ios","java","javascript","react-native","swift","typescript"],"created_at":"2024-11-22T21:18:52.094Z","updated_at":"2026-03-06T15:03:38.969Z","avatar_url":"https://github.com/Picovoice.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Voice Processor\n\n[![GitHub release](https://img.shields.io/github/release/Picovoice/react-native-voice-processor.svg)](https://github.com/Picovoice/react-native-voice-processor/releases)\n[![GitHub](https://img.shields.io/github/license/Picovoice/react-native-voice-processor.svg)](https://github.com/Picovoice/react-native-voice-processor)\n\n[![npm](https://img.shields.io/npm/v/@picovoice/react-native-voice-processor)](https://www.npmjs.com/package/@picovoice/react-native-voice-processor)\u003c!-- markdown-link-check-disable-line --\u003e\n\nMade in Vancouver, Canada by [Picovoice](https://picovoice.ai)\n\n\u003c!-- markdown-link-check-disable --\u003e\n[![Twitter URL](https://img.shields.io/twitter/url?label=%40AiPicovoice\u0026style=social\u0026url=https%3A%2F%2Ftwitter.com%2FAiPicovoice)](https://twitter.com/AiPicovoice)\n\u003c!-- markdown-link-check-enable --\u003e\n[![YouTube Channel Views](https://img.shields.io/youtube/channel/views/UCAdi9sTCXLosG1XeqDwLx7w?label=YouTube\u0026style=social)](https://www.youtube.com/channel/UCAdi9sTCXLosG1XeqDwLx7w)\n\nThe React Native Voice Processor is an asynchronous audio capture library designed for real-time audio\nprocessing on mobile devices. Given some specifications, the library delivers frames of raw audio\ndata to the user via listeners.\n\n## Table of Contents\n\n- [React Native Voice Processor](#react-native-voice-processor)\n  - [Table of Contents](#table-of-contents)\n  - [Requirements](#requirements)\n  - [Compatibility](#compatibility)\n  - [Installation](#installation)\n  - [Permissions](#permissions)\n  - [Usage](#usage)\n    - [Capturing with Multiple Listeners](#capturing-with-multiple-listeners)\n  - [Example](#example)\n  - [Releases](#releases)\n    - [v1.2.0 - August 11, 2023](#v120---august-11-2023)\n    - [v1.1.0 - February 23, 2023](#v110---february-23-2023)\n    - [v1.0.0 - March 29, 2021](#v100---march-29-2021)\n\n## Requirements\n\n- [Node.js](https://nodejs.org) (16+)\n- [Android SDK](https://developer.android.com/about/versions/12/setup-sdk) (21+)\n- [JDK](https://www.oracle.com/java/technologies/downloads/) (8+)\n- [Xcode](https://developer.apple.com/xcode/) (11+)\n- [CocoaPods](https://cocoapods.org/)\n\n## Compatibility\n\n- React Native 0.68.7+\n- Android 5.0+ (API 21+)\n- iOS 13.0+\n\n## Installation\n\nReact Native Voice Processor is available via [npm](https://www.npmjs.com/package/@picovoice/react-native-voice-processor).\u003c!-- markdown-link-check-disable-line --\u003e\nTo import it into your React Native project install with npm or yarn:\n```console\nyarn add @picovoice/react-native-voice-processor\n```\nor\n```console\nnpm i @picovoice/react-native-voice-processor --save\n```\n\n## Permissions\n\nTo enable recording with the hardware's microphone, you must first ensure that you have enabled the proper permission on both iOS and Android.\n\nOn iOS, open the `Info.plist` file and add the following line:\n```xml\n\u003ckey\u003eNSMicrophoneUsageDescription\u003c/key\u003e\n\u003cstring\u003e[Permission explanation]\u003c/string\u003e\n```\n\nOn Android, open the `AndroidManifest.xml` and add the following line:\n```xml\n\u003cuses-permission android:name=\"android.permission.RECORD_AUDIO\" /\u003e\n```\n\nSee our [example app](./example) for how to properly request this permission from your users.\n\n## Usage\n\nAccess the singleton instance of `VoiceProcessor`:\n\n```typescript\nimport {\n  VoiceProcessor,\n  VoiceProcessorError\n} from '@picovoice/react-native-voice-processor';\n\nlet voiceProcessor = VoiceProcessor.instance;\n```\n\nAdd listeners for audio frames and errors:\n\n```typescript\nvoiceProcessor.addFrameListener((frame: number[]) =\u003e {\n  // use audio frame\n});\nvoiceProcessor.addErrorListener((error: VoiceProcessorError) =\u003e {\n  // handle error\n});\n```\n\nAsk for audio record permission and start recording with the desired frame length and audio sample rate:\n\n```typescript\nconst frameLength = 512;\nconst sampleRate = 16000;\n\ntry {\n  if (await voiceProcessor.hasRecordAudioPermission()) {\n    await voiceProcessor.start(frameLength, sampleRate);\n  } else {\n    // user did not grant permission\n  }\n} catch (e) {\n  // handle start error\n}\n```\n\nStop audio capture:\n```typescript\ntry {\n  await this._voiceProcessor.stop();\n} catch (e) {\n  // handle stop error\n}\n```\n\nOnce audio capture has started successfully, any frame listeners assigned to the `VoiceProcessor` will start receiving audio frames with the given `frameLength` and `sampleRate`.\n\n### Capturing with Multiple Listeners\n\nAny number of listeners can be added to and removed from the `VoiceProcessor` instance. However,\nthe instance can only record audio with a single audio configuration (`frameLength` and `sampleRate`),\nwhich all listeners will receive once a call to `start()` has been made. To add multiple listeners:\n```typescript\nconst listener1 = (frame) =\u003e { };\nconst listener2 = (frame) =\u003e { };\nconst listeners = [listener1, listener2];\nvoiceProcessor.addFrameListeners(listeners);\n\nvoiceProcessor.removeFrameListeners(listeners);\n// or\nvoiceProcessor.clearFrameListeners();\n```\n\n## Example\n\nThe [React Native Voice Processor app](./example) demonstrates how to ask for user permissions and capture output from the `VoiceProcessor`.\n\nTo launch the demo, run:\n```console\nyarn bootstrap\nyarn example ios\n# or\nyarn example android\n```\n\n## Releases\n\n### v1.2.0 - August 11, 2023\n- Numerous API improvements\n- Error handling improvements\n- Allow for multiple listeners\n- Upgrades to testing infrastructure and example app\n\n### v1.1.0 - February 23, 2023\n- Migrated to new template\n\n### v1.0.0 - March 29, 2021\n- Initial public release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicovoice%2Freact-native-voice-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpicovoice%2Freact-native-voice-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicovoice%2Freact-native-voice-processor/lists"}