iI am using the Speech to Text REST API for short audio with the Pronunciation Assessment feature enabled via the "Pronunciation-Assessment" header. Base speech recognition succeeds correctly (transcription, confidence score, and lexical/ITN/display text are all returned accurately), but the "PronunciationAssessment" object is entirely missing from NBest[0] in the response — instead I receive the error: "NBest[0] is missing PronunciationAssessment block".
TROUBLESHOOTING ALREADY PERFORMED:
- Tested with two separate Speech resources, in two different regions (eastus and westus2).
- Verified the Pronunciation-Assessment header is valid base64-encoded compact JSON, containing: ReferenceText, GradingSystem: "HundredMark", Granularity: "Phoneme", Dimension: "Comprehensive", EnableMiscue: true.
- Verified Content-Type header is set correctly to "audio/wav; codecs=audio/pcm; samplerate=16000".
- Verified audio is real human speech, WAV format, 16kHz mono PCM.
- Verified format=detailed and language=en-US are present as URL query parameters (not headers).
- Reference text matches the spoken audio content (confirmed by comparing to the successful Lexical/Display transcription in the response).
- Issue is 100% reproducible across both resources/regions tested — same request structure, same failure every time.
REQUEST:
- Endpoint: https://{region}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US&format=detailed
- Method: POST
- Headers: Ocp-Apim-Subscription-Key, Content-Type: audio/wav; codecs=audio/pcm; samplerate=16000, Pronunciation-Assessment: [base64-encoded config]
EXPECTED RESPONSE:
NBest[0] should contain a "PronunciationAssessment" object with AccuracyScore, FluencyScore, CompletenessScore, and PronScore, per the documented example in "Use pronunciation assessment" (learn.microsoft.com/azure/ai-services/speech-service/how-to-pronunciation-assessment).
ACTUAL RESPONSE:
Base recognition succeeds (RecognitionStatus: Success, correct Lexical/ITN/Display text with high confidence), but the PronunciationAssessment object is absent, and the API instead returns: {"error":"NBest[0] is missing PronunciationAssessment block"}.
Please advise whether this is a known service-side issue, and help identify the root cause on your end since client-side configuration has been verified against current documentation and reproduces consistently across resources and regions.