mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
eada8b1dbe
Add *.wav to .gitattributes so audio assets follow the same LFS policy as the existing *.png / *.pdf / *.gif / *.jpg / *.jpeg / *.mp4 / *.webm rules. Re-stage sample.wav so the committed object becomes an LFS pointer instead of a raw 87 KB blob.
Voice demo audio
Drop a small (<100KB) WAV file named sample.wav in this directory. The voice
demo (/demos/voice) fetches it client-side and POSTs to the transcription
endpoint so the flow works without mic permissions.
Expected content: an audio clip speaking the phrase "What is the weather in Tokyo?" — the demo caption advertises that phrase to the user, and the bundled QA checklist + E2E spec assert the transcribed text contains "weather" and/or "Tokyo".
Generate locally, for example:
- macOS:
say -o sample.aiff "What is the weather in Tokyo?" && ffmpeg -i sample.aiff -ar 16000 -ac 1 sample.wav - Linux:
espeak-ng -w sample.wav "What is the weather in Tokyo?" - Windows: PowerShell
System.Speech.Synthesis.SpeechSynthesizer→SetOutputToWaveFile
Target: 16kHz mono, 3-5s duration, <100KB.