mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0923a6bdf6
Wire @copilotkit/voice into a langgraph-python /demos/voice route via a dedicated runtime (/api/copilotkit-voice) that mounts TranscriptionServiceOpenAI. The mic button auto-appears in the CopilotChat composer because the runtime advertises audioFileTranscriptionEnabled=true. - Per-demo runtime route /api/copilotkit-voice with transcriptionService - Demo page at /demos/voice with <CopilotChat /> + Play-sample button - SampleAudioButton fetches /demo-audio/sample.wav and POSTs the single-route transcribe envelope to the runtime URL, then writes the transcribed text into the chat textarea via the native setter + synthetic input event so React state stays in sync - Manifest, registry, constraints, docs-links wired; shell bundles regenerated - QA checklist (qa/voice.md) + Playwright E2E spec (tests/e2e/voice.spec.ts) - public/demo-audio/ placeholder committed; sample.wav to be added by user - Allowlist shell-docs / shell-dojo demo-content.json in the binary-size pre-commit hook (they are bundled fixtures, already over 1 MB on main)
4 lines
160 B
Plaintext
4 lines
160 B
Plaintext
# Audio clips bundled with demos (e.g. the voice demo's sample.wav) are
|
|
# binary — prevent autocrlf / line-ending rewrites on Windows checkouts.
|
|
*.wav binary
|