Assess Pronunciation
assess_pronunciationAssess English pronunciation quality from audio.
Scores pronunciation at four levels: overall, sentence, word, and phoneme. Each score is 0-100. Phonemes are returned in both IPA and ARPAbet notation. Sub-300ms inference latency.
Args: audio_base64: Base64-encoded audio data. Supports WAV, MP3, OGG, and WebM formats. text: The reference English text that the speaker was expected to read aloud. audio_format: Audio format hint — one of 'wav', 'mp3', 'ogg', 'webm'. Defaults to 'wav'.
Returns: dict with keys: - overallScore (int 0-100): Overall pronunciation quality - sentenceScore (int 0-100): Sentence-level fluency and accuracy - words (list): Per-word scores, each containing: - word (str): The word - score (int 0-100): Word pronunciation score - phonemes (list): Per-phoneme scores with IPA/ARPAbet notation - decodedTranscript (str): What the model heard (ASR transcript) - transcript (str): Reference text - confidence (float 0-1): Scoring confidence - warnings (list[str]): Quality warnings if any - audioQuality (dict): Audio metrics (SNR, peak/RMS dB, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The reference English text that the speaker was expected to read aloud. | |
| audio_base64 | Yes | Base64-encoded audio data. Supports WAV, MP3, OGG, and WebM formats. | |
| audio_format | No | Audio format hint — one of 'wav', 'mp3', 'ogg', 'webm'. | wav |