UNPKG

@cloudraker/use-whisper

Version:

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

77 lines (76 loc) 2.1 kB
{ "name": "@cloudraker/use-whisper", "version": "0.3.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/cloudraker/use-whisper#readme", "bugs": "https://github.com/cloudraker/use-whisper/issues", "license": "MIT", "author": "Baptiste Laget <blaget@cloudraker.com> (https://www.cloudraker.com)", "repository": "github:cloudraker/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": "npm run lint-format && npm run lint-fix", "test": "npm run tsc && npm run lint", "prepublishOnly": "npm run build", "tsc": "tsc" }, "dependencies": { "@ffmpeg/core": "^0.11.0", "@ffmpeg/ffmpeg": "^0.12.10", "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.57.1", "eslint-config-prettier": "^8.7.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.4", "react": "^18.2.0", "tsup": "^6.7.0", "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" } }