跳到正文
Philipp Schmid· @_philschmid · X·· 27 天前AI 评分55
AI 导读

Philipp Schmid 分享了一套把 Gemini API CLI 与编码智能体结合来测试语音、音频等多模态功能的四步方法:先用 Gemini API CLI 生成语音,再用 Chrome 的 --use-file-for-fake-audio-capture=voice.wav%noloop 参数,通过 Playwright 或 browser-use 点击麦克风按钮让 getUserMedia 从 0.0s 播放该 WAV,最后在 DOM 中验证转写文本和 UI 状态。

正文

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:

1. Use Gemini API CLI to generate speak
2. Use Chrome with --use-file-for-fake-audio-capture=voice.wav%noloop
3. Click the mic button via Playwright or browser-use so getUserMedia streams the WAV from 0.0s
4. Verify the transcript and UI state in the DOM

Prompt below 👇

来源:Philipp Schmid · x.com