Philipp Schmid· @_philschmid · X·· 2 小时前AI 评分52
AI 导读
Philipp Schmid 分享用 Gemini API CLI 配合编码 Agent 测试语音、音频等多模态功能的方法。步骤为:用 Gemini API CLI 生成语音,通过 Chrome 的 --use-file-for-fake-audio-capture=voice.wav%noloop 参数注入音频,用 Playwright 或 browser-use 点击麦克风按钮让 getUserMedia 从 0.0s 读取 WAV,最后在 DOM 中校验转录和 UI 状态,Prompt 见原文。
正文 · 原文
Did you know you can use the Gemini API CLI together with your coding agent to test multimodal features like voice and audio? Here is how it works:
- Use Gemini API CLI to generate speak
- Use Chrome with --use-file-for-fake-audio-capture=voice.wav%noloop
- Click the mic button via Playwright or browser-use so getUserMedia streams the WAV from 0.0s
- Verify the transcript and UI state in the DOM
Prompt below 👇
来源:Philipp Schmid · x.com
