0

google-live-audio (Gemini Live API)

Grade a spoken answer and its transcript with one Gemini Live request.

Example · مثالgemini

Content

google-live-audio (Gemini Live API)

Grade a spoken answer and its transcript with one Gemini Live request.

Run the eval

Set GOOGLE_API_KEY to your Google AI Studio API key, then run:

npx promptfoo@latest init --example google-live-audio
cd google-live-audio
npx promptfoo@latest eval

The assertions check the returned audio and grade the transcript at output.text. See the Google Live provider docs for configuration.

Source and license

Source
Promptfoo
Original
promptfoo/promptfoo/examples/google-live-audio
License
MIT