The respelling_suggestion API call allows you to query WellSaid's database for precise pronunciations that best work with our text-to-speech models. This call will return all forms of pronunciations for the given word provided in the query, to use this query follow this guide.

How do you use the endpoint?

Request

Make a GET request to this URL, including your API key in the header and the word you wish to query as part of the URL:

https://api.wellsaidlabs.com/v1/tts/respelling_suggestions?word='your_word_here'

An example curl command:

curl --request GET \
     --url 'https://api.wellsaidlabs.com/v1/tts/respelling_suggestions?word=pizza' \
     --header 'X-API-KEY: YOUR_API_KEY \

Response

Below is an example of a successful response showing one avatar with the following structure:

[
  {
    "phonetic_respelling": "PEET-suh",
    "word": "pizza"
  }
]

Details of response

Fieldtypenotes
phonetic_respellingstringThe Respelling of the word provided in the query.
wordintegerThe original word provided for the respelling suggestion