ax-llm/ax/ax-audio
Claude Code and agent skill by ax-llm/ax
- community
Checking that the SKILL.md file is still in the repository.
This skill helps an LLM generate correct audio code with @ax-llm/ax. Use when the user asks about ai.transcribe(), ai.speak(), signature audio inputs or outputs, agent audio behavior, .chat() conversational audio, OpenAI audio or realtime models, Gemini Live native audio, Grok Voice Agent models, voices, formats, transcripts, or how audio fits with structured outputs.
Install
npx vskill@latest install ax-llm/ax/ax-audioSKILL.md
The same SKILL.md was published earlier as ax-llm/ax/ax-audio.
Audio I/O Codegen Rules (@ax-llm/ax)
Use this skill for audio in Ax. Pick the smallest audio surface that matches the job:
- Use
ai.transcribe(...)for batch speech-to-text. - Use
ai.speak(...)for batch text-to-speech. - Use
speech:audiosignature outputs for structured programs that should return synthesized audio artifacts. - Use
.chat()audio config for conversational or realtime audio turns.
Core Rules
- Input
:audiois an audio input value:{ data, format?, mimeType?, sampleRate?, channels? }. - Output
:audiois a scripted audio artifact. The model returns plain text for that field; Ax synthesizes it after structured output parsing. - Output audio JSON schema is model-facing
string, not a binary object. - Agents transcribe input audio fields before planner/executor/responder stages by default, so agent stages see text instead of base64 audio.
- Realtime and conversational audio still use
.chat()andmodelConfig.audio. - Batch signature audio artifacts use forward-time
speechoptions, notmodelConfig.audio.
Direct Batch APIs
Providers without the requested batch audio capability throw AxMediaNotSupportedError.
OpenAI's speak() defaults to gpt-4o-mini-tts with the alloy voice and mp3. format: 'pcm' (or 'pcm16') asks OpenAI for its pcm output, 16-bit PCM at 24 kHz. Mistral's speak() defaults to voxtral-mini-tts-2603 and sends the voice as voice_id.
OpenAI also offers gpt-transcribe (AxAIOpenAIModel.GPTTranscribe), billed per minute of audio; it accepts responseFormat: 'json' or 'text' only.
Gemini Batch Audio
Gemini's speak() defaults to gemini-3.8-flash-tts (gemini-3.8-flash-lite-tts is the cheaper tier) and transcribe() to the dedicated gemini-3.5-transcribe model. Pick one of Gemini's prebuilt voices, such as Kore, Puck, or Charon. Gemini takes no output format, so the returned mime type sets the label: 3.8 TTS returns WAV, while earlier TTS models return raw 24 kHz PCM, reported as pcm16 with sampleRate and channels.
Signature Audio Artifacts
The model emits a text script for speech; Ax replaces it with AxChatAudioOutput after result selection. If the field already contains an audio artifact with { data } or { id }, Ax leaves it alone.
An audio input given as a string, or as an audio object with a string transcript (such as result.speech above, passed to the next program), reaches the model as text: the transcript. An audio object without a transcript is sent as an audio part with its format (wav when it has none) and data.
Agent Audio Inputs
The agent runtime transcribes recording first and passes the transcript through the internal agent stages. Use direct ax(...) or .chat() when you specifically want native audio understanding in the model call.
Conversational .chat() Audio
Use modelConfig.audio for conversational audio turns where audio is part of the chat response instead of a structured signature field.
Config Shape
OpenAI Defaults
Use axAIOpenAIAudioDefaultConfig() for OpenAI request-based audio chat:
- model:
gpt-audio-mini - output enabled
- voice:
alloy - output format:
wav - transcript enabled
- streaming disabled by default
- audio input formats:
wav,mp3 - audio output formats:
wav,mp3,flac,opus,aac,pcm16
Use axAIOpenAIRealtimeDefaultConfig() for OpenAI realtime speech-to-speech (gpt-realtime-2.1 and gpt-realtime-2.1-mini are newer reasoning models on the same Realtime endpoint):
- model:
gpt-realtime-2 - output enabled
- voice:
marin - output format:
pcm16 - input default:
audio/pcm, mono, 24000 Hz - turn timeout:
30000 - streaming disabled by default
Use axAIOpenAIRealtimeTranscriptionDefaultConfig() for realtime transcript deltas:
- model:
gpt-realtime-whisper - input default:
audio/pcm, mono, 24000 Hz - output audio disabled; transcript text is returned on
content
Realtime models use a one-turn WebSocket call under .chat(). In Node, pass a WebSocket constructor through request options:
For follow-up turns, keep the assistant audio reference in history:
Gemini Live Defaults
Use axAIGoogleGeminiLiveAudioDefaultConfig() for Gemini native audio. Gemini 3.8 Live accepts no thinking settings; for reasoning, use gemini-3.8-live-extended-thinking, which requires a thinking level (Ax sends medium unless thinkingTokenBudget asks otherwise).
- model:
gemini-3.8-live - output enabled
- voice:
Kore - output format:
pcm16 - output sample rate:
24000 - input default:
audio/pcm;rate=16000, mono - transcript enabled
- turn timeout:
30000 - streaming disabled by default
Gemini Live uses a one-turn WebSocket call under .chat(). It expects PCM input for native audio turns; use format: 'pcm16' or mimeType: 'audio/pcm;rate=16000'.
content is the transcript of what the model said. Native audio models can also send thought summaries, even without showThoughts; those arrive in thought. When a model acknowledges the request before it thinks, .chat() waits for the answer, and content and audio hold both utterances.
Grok Voice Defaults
Use axAIGrokVoiceDefaultConfig() for xAI Grok Voice Agent:
- model:
grok-voice-think-fast-1.0 - output enabled
- voice:
eve - output format:
pcm16 - output sample rate:
24000 - input default:
audio/pcm, mono, 24000 Hz - transcript enabled
- turn timeout:
30000 - streaming disabled by default
Grok Voice uses a one-turn WebSocket call under .chat(). It expects PCM input for spoken input turns; use format: 'pcm16' or mimeType: 'audio/pcm'.
Meta Muse Voice
Use the meta profile for both Muse Voice surfaces. Batch transcription stays on transcribe() and can request endpointing mode, language bias, keywords, partial behavior, audio progress, and a caller session ID:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingwebsite/static/typescript/.well-known/agent-skills/ax-audio/SKILL.md
Popularity
- Repository stars
- 2,957
- Repository forks
- 194
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ax-llm/ax/ax-audio)