UNPKG

@picovoice/picovoice-react

Version:

React component for Picovoice SDK for Web

84 lines (83 loc) 2.96 kB
{ "name": "@picovoice/picovoice-react", "version": "3.0.3", "description": "React component for Picovoice SDK for Web", "entry": "src/index.ts", "module": "dist/esm/index.js", "iife": "dist/iife/index.js", "types": "dist/types/index.d.ts", "license": "Apache-2.0", "keywords": [ "porcupine", "rhino", "hotword", "wake word", "private", "web", "voice", "speech recognition", "ai", "offline", "hooks", "react", "dom", "nlu", "asr" ], "author": "Picovoice Inc", "scripts": { "build:all": "rollup --config", "build:types": "tsc --declaration --declarationMap --emitDeclarationOnly --outDir ./dist/types", "build": "npm-run-all --parallel build:**", "lint": "eslint . --ext .js,.ts", "prepack": "npm-run-all build", "start": "cross-env TARGET='debug' rollup --config --watch", "watch": "rollup --config --watch", "format": "prettier --write \"**/*.{js,ts,json}\"", "base64-ppn-files": "npx pvbase64 -i ./test/porcupine/porcupine_params.pv -o ./test/porcupine/porcupine_params.js -n porcupineModelBase64 && npx pvbase64 -i ./test/keyword_files/picovoice_wasm.ppn -o ./test/keyword_files/picovoice_wasm.js -n picovoiceKeywordBase64", "base64-rhn-files": "npx pvbase64 -i ./test/rhino/rhino_params.pv -o ./test/rhino/rhino_params.js -n rhinoModelBase64 && npx pvbase64 -i ./test/contexts/coffee_maker_wasm.rhn -o ./test/contexts/coffee_maker_wasm.js -n coffeeMakerContextBase64", "setup-test": "node scripts/setup_test.js && yarn base64-ppn-files && yarn base64-rhn-files", "test": "cypress run --component" }, "dependencies": { "@picovoice/picovoice-web": "=3.0.3" }, "devDependencies": { "@babel/core": "^7.21.3", "@babel/plugin-transform-runtime": "^7.21.0", "@babel/preset-env": "^7.20.2", "@babel/runtime": "^7.21.0", "@picovoice/web-voice-processor": "~4.0.8", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-terser": "^0.4.0", "@rollup/pluginutils": "^5.0.2", "@testing-library/react-hooks": "^8.0.1", "@types/react": "^17.0.2", "@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/parser": "^5.51.0", "async-mutex": "^0.4.0", "cross-env": "^7.0.3", "cypress": "^12.8.1", "eslint": "^8.22.0", "eslint-plugin-cypress": "^2.12.1", "npm-run-all": "^4.1.5", "prettier": "^2.8.3", "react": "^17.0.2", "react-dom": "^17.0.2", "rollup": "^2.79.1", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "rollup-plugin-web-worker-loader": "^1.6.1", "tslib": "^2.5.0", "typescript": "^4.9.5", "vite": "^3.2.5" }, "peerDependencies": { "@picovoice/web-voice-processor": "~4.0.8", "react": ">=17", "react-dom": ">=17" } }