{"_id":"@earendil-works/pi-voice","_rev":"2-e11cb04faeb051cb51f062eb41f836d6","name":"@earendil-works/pi-voice","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@earendil-works/pi-voice","version":"0.1.0","keywords":["pi-package","pi-extension","voice","dictation","transcription","speech-to-text"],"license":"MIT","_id":"@earendil-works/pi-voice@0.1.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi-voice#readme","bugs":{"url":"https://github.com/earendil-works/pi-voice/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"6b5f51b1bfd72e6e717e7ddbdb185ac6b45f9ed8","tarball":"https://registry.npmjs.org/@earendil-works/pi-voice/-/pi-voice-0.1.0.tgz","fileCount":45,"integrity":"sha512-qb8leyR63W5yWBPEgxeVXpcgJ/RKWyUcxa4lthmUk7kY8wCUv2ISe6hoJDg+K4xUyaL25CYPuDovK8GCXizKoA==","signatures":[{"sig":"MEUCIHo4vvSKgNInTkYf+9KRq9MmHpTa47lD6hN2tTKf3lFFAiEA+le9wb9v0WHqZ8ZsP/Apgmx9nodIcTWTiIkisFmx/EE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":347450},"type":"module","engines":{"node":">=22"},"gitHead":"f28e440bcc82ddad134cc6e54c8cc3f3f45eccdd","scripts":{"test":"npm run check && node scripts/run-tests.mjs","check":"tsc --noEmit","catalog:verify":"node scripts/catalog-metadata.mjs","prepublishOnly":"npm test","catalog:generate":"node scripts/generate-catalog.mjs","catalog:update-metadata":"node scripts/catalog-metadata.mjs --write","recommendations:generate":"node scripts/generate-recommendations.mjs"},"_npmUser":{"name":"rwachtler","email":"r.wachtler@outlook.com"},"repository":{"url":"git+https://github.com/earendil-works/pi-voice.git","type":"git"},"_npmVersion":"11.6.2","description":"Local speech-to-text for Pi","directories":{},"_nodeVersion":"24.12.0","dependencies":{"opencc-js":"^1.4.1","transcribe-cpp":"0.2.2","@huggingface/hub":"2.15.0","@picovoice/pvrecorder-node":"1.2.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typebox":"^1.3.7","typescript":"5.9.3","@types/node":"22.20.1","@huggingface/gguf":"^0.4.6","@earendil-works/pi-tui":"^0.83.0","@earendil-works/pi-coding-agent":"0.83.0"},"peerDependencies":{"typebox":"*","@earendil-works/pi-tui":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-voice_0.1.0_1790152094839_0.8284771713828323","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"pi":{"extensions":["./index.ts"]},"_id":"@earendil-works/pi-voice@0.2.0","bugs":{"url":"https://github.com/earendil-works/pi-voice/issues"},"dist":{"shasum":"6e291f3ba3395023067a48b8032261bf433c655a","tarball":"https://registry.npmjs.org/@earendil-works/pi-voice/-/pi-voice-0.2.0.tgz","fileCount":51,"integrity":"sha512-OCZmsAgRXVL9DGCjoiONEwcYPNS+PudRljzY5SlwG5fVQ9iPQr63LxMChX4VDCEiwIgVIqD66tEbQiJF2FU16w==","signatures":[{"sig":"MEYCIQCT0rVQnBxa4RPf6Bzk7t0fLmJ+kbZMEILuAXun77ZmggIhAO6vvsa+LoD9e4/X0cHf2bjGg2hvltmUzbgiNgy1mBfr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF7NSYI1n+9pORUqIvGe+LIsSCLMKKuZZ6Q1RzJ9zfLXAiEAq/lIFGCfKs1mVnLoVh8dmoKJV8lTsVNzyHn8CNuomYc="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-voice@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1659704},"name":"@earendil-works/pi-voice","type":"module","engines":{"node":">=22"},"gitHead":"5e12a8146aaa8e6bad474a9284abe3b8af0010c3","license":"MIT","scripts":{"test":"npm run check && node scripts/run-tests.mjs","check":"tsc --noEmit","catalog:verify":"node scripts/catalog-metadata.mjs","prepublishOnly":"npm test","catalog:update-metadata":"node scripts/catalog-metadata.mjs --write","recommendations:generate":"node scripts/generate-recommendations.mjs"},"version":"0.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"966cd547-959c-4664-ae5c-464878041d56"}},"homepage":"https://github.com/earendil-works/pi-voice#readme","keywords":["pi-package","pi-extension","voice","dictation","transcription","speech-to-text"],"repository":{"url":"git+https://github.com/earendil-works/pi-voice.git","type":"git"},"_npmVersion":"11.16.0","description":"Local speech-to-text for Pi","directories":{},"maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"_nodeVersion":"24.21.0","dependencies":{"opencc-js":"^1.4.1","transcribe-cpp":"0.4.0","@huggingface/hub":"2.15.0","@handy-computer/recorder":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typebox":"^1.3.7","typescript":"5.9.3","@types/node":"22.20.1","@huggingface/gguf":"^0.4.6","@earendil-works/pi-tui":"^0.83.0","@earendil-works/pi-coding-agent":"0.83.0"},"peerDependencies":{"typebox":"*","@earendil-works/pi-tui":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-voice_0.2.0_1792132872311_0.8323752288944741"}}},"time":{"created":"2026-09-23T08:28:14.621Z","modified":"2026-10-16T06:41:12.767Z","0.1.0":"2026-09-23T08:28:14.997Z","0.2.0":"2026-10-16T06:41:12.435Z"},"bugs":{"url":"https://github.com/earendil-works/pi-voice/issues"},"license":"MIT","homepage":"https://github.com/earendil-works/pi-voice#readme","keywords":["pi-package","pi-extension","voice","dictation","transcription","speech-to-text"],"repository":{"url":"git+https://github.com/earendil-works/pi-voice.git","type":"git"},"description":"Local speech-to-text for Pi","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"readme":"# Pi Voice\n\nLocal speech-to-text for Pi.\n\nPress a keyboard shortcut, talk, and the resulting transcript will be put directly into your chat.\n\n## Install\n\nInstall the npm package:\n\n```bash\npi install npm:@earendil-works/pi-voice\n```\n\nIf you prefer being on the development tip, you can install from GitHub:\n\n```bash\npi install ssh://git@github.com/earendil-works/pi-voice\n```\n\n## Usage\n\nThe extension registers:\n\n- a configurable terminal shortcut (`Ctrl+Alt+Z` by default) to start and stop recording;\n- `/voice`, which does the same as the shortcut. While recording, `Space` also stops and transcribes, and `Escape` discards;\n- a `transcribe_file` tool that the agent can use to transcribe local audio or video files;\n- `/voice-settings` for preferred languages, model, transcription language, microphone, and shortcut settings.\n\n`/transcribe` remains available as a compatibility alias for `/voice-settings`.\n\n## Upgrading from pi-transcribe\n\nIt's recommended to install Pi Voice via NPM. If you have an older install of pi-transcribe uninstall it via: \n\n```bash\npi remove git:github.com/earendil-works/pi-transcribe\n```\n\nIf you installed it into a project with `-l`, run `pi remove -l git:github.com/earendil-works/pi-transcribe` from that project instead. Then install Pi Voice with:\n\n```bash\npi install npm:@earendil-works/pi-voice\n```\n\n## File transcription and FFmpeg\n\nThe agent can call `transcribe_file` for local audio or video files. Decoded audio is limited to 512 MiB (about 2.3 hours). File decoding requires the `ffmpeg` executable. Install FFmpeg with your system package manager if you don't already have it installed\n\n```bash\n# macOS with Homebrew\nbrew install ffmpeg\n\n# Debian or Ubuntu\nsudo apt install ffmpeg\n\n# Windows with winget\nwinget install Gyan.FFmpeg\n```\n\nIf FFmpeg is installed outside `PATH`, point Pi Voice at it before starting Pi:\n\n```bash\nexport PI_VOICE_FFMPEG_PATH=/path/to/ffmpeg\n```\n\nThe legacy `PI_TRANSCRIBE_FFMPEG_PATH` variable remains supported when `PI_VOICE_FFMPEG_PATH` is not set.\n\nWhen FFmpeg is unavailable, `transcribe_file` reports platform-specific guidance to the agent. The agent should ask before running a package-manager command. Model setup is still explicit: run `/voice-settings` once in the interactive TUI to choose and, after confirmation, download a local model.\n\n## Developing & Building Pi Voice\n\nTo develop or run it from a checkout:\n\n```bash\ngit clone git@github.com:earendil-works/pi-voice.git\ncd pi-voice\nnpm install --ignore-scripts\npi -e .\n```\n\nIf you want to be able to re-run onboarding you can enable the debug env var when starting Pi. This enables the `/voice-onboarding` command.\n\n```bash\nPI_VOICE_DEBUG=1 pi -e /absolute/path/to/pi-voice\n```\n","readmeFilename":"README.md"}