跳到正文
Philipp Schmid· @_philschmid · X·· 3 小时前AI 评分60
AI 导读

Philipp Schmid 分享了一个无麦克风端到端测试语音功能的提示词模板,通过安装 gemini-api-cli、使用 gemini-api tts 生成 WAV 测试文件,并结合无头浏览器参数与虚拟音频捕获来验证语音功能。

正文 · 原文

Example prompt template:

Install npx skills add google-gemini/gemini-skills --skill gemini-api-cli -y and test the voice or audio feature in this project end-to-end without a physical mic. Find how the app opens microphone capture, generate spoken WAV test files with gemini-api tts, and launch headless Chrome with --use-fake-ui-for-media-stream --use-fake-device-for-media-stream --use-file-for-fake-audio-capture=/abs/path/voice.wav%noloop. Click the mic button so getUserMedia streams the WAV from 0.0s and verify the feature works.

来源:Philipp Schmid · x.com