← Catalog

@agimon-ai/po-voice

Client audio capture, host transcription, and autonomous narration for Pi agents.

Extension

Install

Install with PiG

pig install npm:@agimon-ai/po-voice

Install with Pi

pi install npm:@agimon-ai/po-voice
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

README

Written by the package's publisher, shown as published in version 0.0.0-alpha.197 (README.md). PiG does not review it.

@agimon-ai/po-voice

Client microphone capture, host transcription, spoken responses and an optional Live companion. Voice can transcribe one recording into the composer or keep a session listening for turns. It is a configurable feature, not fixed host infrastructure.

Requires Node.js 24 or newer. Manual and daily-work Voice need a supported local transcription engine (whisper-cli, whisper, or Apple-silicon mlx_whisper) and client microphone permission. Live uses separate ChatGPT subscription access rather than local ASR. Contracts and platform support are alpha.

Configure daily-work Voice

Starter configs select Voice in default.packages; keep it there or select it through a layer. Configure Voice in host Settings or ~/.po/config.yaml, for example:

voice:
  mode: legacy
  engine: openai-whisper
  language: auto
  adapters:
    openai-whisper:
      binary: whisper
      model:
        id: base
  autoCapture:
    model: provider/model-id
    utteranceIdleMs: 3000
    composeUtteranceIdleMs: 1200
    transcriptionTimeoutMs: 120000
    tts:
      engine: macos-say
      voice: Samantha
      rate: 190

Replace provider/model-id with a configured model. Omit autoCapture for manual transcription only. Engine names are whisper-cpp, openai-whisper, mlx-whisper and auto; installing an engine is separate from selecting it. The transcription deadline defaults to 120 seconds. Ordinary endpoint silence defaults to 3,000 ms (range 1,500 to 10,000); composition uses 1,200 ms (range 800 to 3,000).

The settings API validates scope, values and save hashes. voice.mode, voice.live and voice.autoCapture are host-only. Browser input selection is separate from host FFmpeg's voice.recorder.device.

A profile's profile.md frontmatter can override TTS voice and rate per field, but never the synthesizer engine. The selected persona's voice is read at activation. See Profile.

Capture and control

The composer button records from the browser's current input and appends dictation until Send. Autonomous capture asks for an input only when several are available, remembers the answer in that browser until the device set changes, and uses the browser default if dismissed.

v e toggles the session's selected voice mode. The Activity rail offers daily work/Live selection, mute, unmute, interruption and transfer. Only the current owner can switch a running mode. Switching while muted stops voice and leaves the selected mode idle. Selecting Live while signed out does not stop daily work. Selecting a mode or signing in does not itself enable capture.

For a long prompt, say hey po or po prompt to start composition, that's it or po send to submit, and po cancel or scratch that to discard. Short utterances need no phrase. Configured phrase arrays replace the defaults, not extend them. Send/cancel act only within a draft and on a whole segment or a sentence-ending command, so ordinary dictation remains content.

Drafts are session-local and limited to 32,768 characters. Worker restart and idle capture rotation preserve them; deactivation, reload and process restart discard them. Wait for composing, listening before the next segment because capture pauses during transcription. Composed submissions become follow-ups if the agent is busy.

Autonomous mode supplies describe_voice_tools, use_voice_tools and narrate. The facade catalog describes contributed capabilities; the primary agent uses narrate for speech. Narration waits for playback and returns completed, interrupted, superseded or failed. The native tool accepts at most 4,000 characters; the shared normative boundary is 4,096. Stale sessions, startup, draining and disposal refuse narration. A missed narration call can produce one bounded final-response fallback, using the configured model for longer text; those calls consume quota.

The normative contract requires complete final-answer narration. Current native tool guidance differs for code, paths and tables; see known divergences, rather than assuming the implementation satisfies every requirement.

Live companion

Live is an experimental interface around the primary agent, not another coding agent. The primary agent keeps its model, tools, approvals, Team and Workflow. The host manages per-device Live media and routes fresh action requests to the selected session, including admitted paired-host routes. Moving the route does not copy agent state.

To try it with separate provider and microphone consent:

  1. Select host-only voice.mode: live.
  2. Sign in to ChatGPT for Po features in Settings > Providers (or /login). Image generation and Web search use the same host-held sign-in.
  3. Explicitly activate with a WebRTC-capable client. No API-key fallback is provided.

Unset voice.live.voice and voice.live.model use realtime defaults. Keep legacy or omit voice.mode for daily-work Voice; it remains supported.

Submission acknowledgement is not completed work. Live receives bounded session context and correlated agent results; oversized results produce an unavailable notice rather than an invented summary. Raw thinking and tool output are not companion speech. Interruption suppresses output until explicit reactivation; it does not cancel main-agent work. Reload/reconnect do not resume microphone transmission.

Only a single pending ask approval can be answered by Live. The next user message must be exactly approve or deny after trimming and lowercasing, within 30 seconds of readback. The challenge is session-bound and single-use. human approvals and autonomous daily-work approvals stay in the app. Readback may be paraphrased, and echo or another speaker can be transcribed: ask is a courtesy, not an authentication boundary.

Subscription connectivity and synthetic roundtrips have been exercised, but physical playback, microphone/speaker echo, interruption recovery and duplex usability remain unqualified. See realtime boundaries, NOTICE and the upstream Apache license.

Data and recovery

A capable client performs activity detection and endpointing and streams original mono 16 kHz PCM16 through the authenticated session media API. Otherwise host VAD supplies the fallback. The host validates PCM, creates private spools, normalizes when needed and runs the selected local ASR in a supervised worker. Spool directories use 0700; files use 0600. Unacknowledged turns remain recoverable by identity/revision after worker restart.

Audio being locally transcribed is not a blanket “nothing leaves the machine” guarantee:

  • Remote-client PCM crosses the authenticated transport to the host.
  • Transcript candidates and bounded control data cross process boundaries.
  • Transcript admission/correction, deferred narration compaction and long-final fallback may send bounded text to the configured model.
  • Live sends microphone audio to its realtime provider.
  • Operational telemetry follows the configured sink; arbitrary metadata may be sensitive.

Manual recordings and autonomous spool windows are bounded to five minutes. Cancellation/deactivation interrupts capture and playback. Recovered audio from unrelated sessions must not silently attach to new turns.

Browser media ownership is page-global, so switching cockpit routes does not disconnect a background session's microphone. Removing ownership or closing the page releases its resources. Remote-control ownership can take the lease from a local client; it does not let the local client take it back while the remote owner remains connected.

Server-streamed playback can supply an exact PCM reference for conservative echo discrimination. Missing alignment, failed local Silero, unsupported clients and browser SpeechSynthesis retain intentional-address/exact-stop interruption rather than claiming natural full duplex. Physical acoustic qualification is still required.

Integration and maintenance

Host readiness is GET /api/plugins/voice/readiness. Session status and control mount under /api/workspaces/:workspaceId/sessions/:sessionId/plugins/voice as GET /status and POST /control. voice.control uses the same typed operations. Manual uploads use the session's plugins/voice-media/manual/transcribe route. Readiness is not proof of a live provider connection.

Adapters import declared exports such as @agimon-ai/po-voice/clientMedia, not internal files. ARCHITECTURE.md describes current owners and gaps; SPEC.md preserves normative requirements and acceptance criteria.

pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/po-voice

License

Functional Source License 1.1, MIT Future License (FSL-1.1-MIT): free for any purpose except a Competing Use; each version converts to MIT two years after release. See LICENSE.