Azure AI Speech
APIAzure speech API that scores pronunciation, fluency and prosody in 33 locales
- Access
- Resource key or Entra ID token
About
Microsoft's speech service, now Azure Speech in Foundry Tools. Pronunciation assessment scores read-aloud or free speech for accuracy, fluency, completeness and prosody down to the phoneme, in 33 locales (no Turkish; prosody in en-US only). Billed as speech to text; prosody costs extra.
What you can do with it
- Score a learner reading a sentence aloud, down to each word, syllable and phoneme
- Rate the fluency and prosody of free speech in a language app (prosody in en-US only)
- Assess pronunciation in 33 locales such as English, Spanish and Chinese, but not Turkish
Get started
- Create a Speech or Foundry resource in the Azure portal (F0 is free)
- Copy the resource key and name
- Send up to 30 s of WAV over REST, or use the Speech SDK for longer audio
Example
PA=$(printf '%s' '{"ReferenceText":"Good morning.","GradingSystem":"HundredMark","Granularity":"Phoneme","Dimension":"Comprehensive"}' | base64 | tr -d '\n')
curl -X POST "https://$SPEECH_RESOURCE.cognitiveservices.azure.com/stt/speech/recognition/conversation/cognitiveservices/v1?language=en-US&format=detailed" \
-H "Ocp-Apim-Subscription-Key: $SPEECH_KEY" \
-H "Content-Type: audio/wav; codecs=audio/pcm; samplerate=16000" \
-H "Accept: application/json" \
-H "Pronunciation-Assessment: $PA" \
--data-binary @good-morning.wavDetails
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- C#, Java, Python, JavaScript/TypeScript, Swift
- MCP server
- None
- Works with
- Azure