用 Gemini API CLI 测试语音多模态功能
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:
Philipp Schmid 介绍如何把 Gemini API CLI 与编码智能体配合,测试语音、音频等多模态功能:先用 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 👇