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

Philipp Schmid 分享一个提示词模板,用于在没有物理麦克风的情况下端到端测试项目中的语音或音频功能。

正文 · 原文

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