Transcription Agent
Code
1from kern.agent import Agent2from kern.models.openai import OpenAIResponses3from kern.tools.models.groq import GroqTools45url = "https://kern-public.s3.amazonaws.com/demo_data/sample_conversation.wav"67agent = Agent(8 name="Groq Transcription Agent",9 model=OpenAIResponses(id="gpt-5.2"),10 tools=[GroqTools(exclude_tools=["generate_speech"])],11)1213agent.print_response(f"Please transcribe the audio file located at '{url}' to English")Usage
Set up your virtual environment
1uv venv --python 3.122source .venv/bin/activate1uv venv --python 3.122.venv\Scripts\activateSet your API key
1export GROQ_API_KEY=xxx2export OPENAI_API_KEY=xxxInstall dependencies
1uv pip install -U groq openai kern-aiRun Agent
1python cookbook/11_models/groq/transcription_agent.py