Score a Phoneme list
In this example we score the term:
gotcha
/g/ao1/ch/ah0
Since gotcha is an american vernacular and not a valid dictionary word we use the phoneme list API to score it.
The phoneme list uses a different url endpoint and expects the list of phonemes in Arpabet notation.
Note that we specify phoneme stress as 0,1,2 per Arpabet notation. This API allows you to score any word or sentence that can phonetically expressed in Arpabet.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
key | string | API key issued by Speechace. | |
user_id | string | Optional: A unique anonymized identifier for the end-user who spoke the audio. | |
dialect | string | The dialect to use for scoring. Supported values are "en-us" (US English) and "en-gb" (UK English). |
Request Body
[{"name"=>"phone_list", "value"=>"g|ao|ch|ah", "datatype"=>"string"}, {"name"=>"user_audio_file", "value"=>nil, "datatype"=>"null"}, {"name"=>"question_info", "value"=>"'u1/q1'", "datatype"=>"string"}]
RESPONSES
status: OK
{"status":"success","quota_remaining":-1,"word_score":{"word":"g|ao|ch|ah","quality_score":97,"phone_score_list":[{"phone":"g","stress_level":null,"extent":[51,60],"quality_score":100,"sound_most_like":"g"},{"phone":"ao","stress_level":null,"extent":[60,72],"quality_score":91,"sound_most_like":"ao"},{"phone":"ch","stress_level":null,"extent":[72,87],"quality_score":100,"sound_most_like":"ch"},{"phone":"ah","stress_level":null,"extent":[87,102],"quality_score":96,"sound_most_like":"ah"}]},"version":"9.0"}