UNPKG

@chengsokdara/use-whisper

Version:

React Hook for OpenAI Whisper API with speech recorder and silence removal built-in.

77 lines (76 loc) 2.13 kB
{ "name": "@chengsokdara/use-whisper", "version": "0.2.0", "description": "React Hook for OpenAI Whisper API with speech recorder and silence removal built-in.", "keywords": [ "react", "hook", "hooks", "openai", "api", "whisper", "speech", "voice", "record", "recorder", "silence", "remove", "removal" ], "homepage": "https://github.com/chengsokdara/use-whisper#readme", "bugs": "https://github.com/chengsokdara/use-whisper/issues", "license": "MIT", "author": "Sokdara Cheng <chengsokdara@gmail.com> (https://chengsokdara.github.io)", "repository": "github:chengsokdara/use-whisper", "scripts": { "dev": "env NODE_ENV=development tsup", "build": "env NODE_ENV=production tsup", "lint-fix": "eslint ./src --ext .ts,.tsx --quiet --fix --ignore-path ./.gitignore", "lint-format": "prettier --loglevel warn --write \"./**/*.{ts,tsx,css,md,json}\"", "lint": "yarn lint-format && yarn lint-fix", "test": "yarn run tsc && yarn run lint", "prepublishOnly": "yarn run build" }, "dependencies": { "@chengsokdara/react-hooks-async": "^0.0.2", "@ffmpeg/ffmpeg": "^0.11.6", "axios": "^1.3.4", "hark": "^1.2.3", "lamejs": "github:zhuker/lamejs", "recordrtc": "^5.6.2" }, "devDependencies": { "@types/hark": "^1.2.2", "@types/node": "^18.15.3", "@types/react": "^18.0.28", "@types/recordrtc": "^5.6.10", "@typescript-eslint/eslint-plugin": "^5.55.0", "@typescript-eslint/parser": "^5.55.0", "eslint": "^8.36.0", "eslint-config-prettier": "^8.7.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.4", "react": "^18.2.0", "tsup": "^6.6.3", "typescript": "^4.9.5" }, "peerDependencies": { "react": "*" }, "files": [ "dist" ], "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { "node": "./dist/index.cjs", "require": "./dist/index.cjs", "import": "./dist/index.js", "default": "./dist/index.cjs" }, "type": "module", "publishConfig": { "access": "public" } }