X-Microsoft-OutputFormat header.
Getting started
1
Create an Azure Speech resource
In the Azure portal, create a Speech resource. Copy KEY 1 from
Resource Management > Keys and Endpoint, and copy the resource location
such as
eastus.2
Select Azure Speech in messages.tts
3
Send a message
Send a reply through any connected channel. OpenClaw synthesizes the audio
with Azure Speech and delivers MP3 for standard audio, or Ogg/Opus when
the channel expects a voice note.
Configuration options
All options live undermessages.tts.providers["azure-speech"].
The provider is considered configured once
apiKey is set plus one of
region, endpoint, or baseUrl. Env vars are only checked as a fallback
for config keys left unset. Workspace .env files cannot set
AZURE_SPEECH_ENDPOINT; use the process environment, global runtime dotenv,
or explicit config for endpoint routing.
Notes
Authentication
Authentication
Azure Speech uses a Speech resource key, not an Azure OpenAI key. The key
is sent as
Ocp-Apim-Subscription-Key; OpenClaw derives
https://<region>.tts.speech.microsoft.com from region unless you
provide endpoint or baseUrl.Voice names
Voice names
Use the Azure Speech voice
ShortName value, for example
en-US-JennyNeural. The bundled provider can list voices through the
same Speech resource and filters out voices marked deprecated, retired,
or disabled.Audio outputs
Audio outputs
Azure accepts output formats such as
audio-24khz-48kbitrate-mono-mp3,
ogg-24khz-16bit-mono-opus, and riff-24khz-16bit-mono-pcm. OpenClaw
requests Ogg/Opus for voice-note targets so channels can send native
voice bubbles without an extra MP3 conversion, and forces
raw-8khz-8bit-mono-mulaw for telephony targets.Alias
Alias
azure is accepted as a provider alias for existing config, but new
config should use azure-speech to avoid confusion with Azure OpenAI
model providers.Related
Text-to-speech
TTS overview, providers, and
messages.tts config.Configuration
Full config reference including
messages.tts settings.Providers
All bundled OpenClaw providers.
Troubleshooting
Common issues and debugging steps.