Other APIs
Phonemize
Phonemize endpoint: convert a recording of a word into a phonetic string in the Rime phonetic alphabet.
The Rime API authenticates every request with a bearer token in the
Then post it to the endpoint:
The response includes the phonetic string:
Authorization header: Authorization: Bearer YOUR_API_KEY. See API authentication for how to create a key.
Overview
This API endpoint converts a short audio recording of a word into a phonetic string in the Rime phonetic alphabet. Use it when you know how a word should sound but don’t want to write the phonetic string by hand: record the word (or synthesize it), post the audio, and paste the returned string into a TTS request inside curly brackets withphonemizeBetweenBrackets: true. See Custom pronunciation.
Custom pronunciation strings are supported on Mist v1, Mist v2, and English Mist v3. Coda and non-English Mist v3 accept
phonemizeBetweenBrackets and ignore it. For an overview of all the ways to control pronunciation, see Pronunciation control.Request
Unlike Rime’s other endpoints, the request body is the raw audio bytes, not JSON or multipart form data. Set theContent-Type header to match the audio format. WAV (audio/wav) and MP3 (audio/mpeg) are supported.
Example
Generate or record audio of the word, for example with the Rime CLI:Response fields
audioId: identifier of the uploaded audio clip.phonemeString: the phonetic transcription in the Rime phonetic alphabet. The string may end with a punctuation token (e.g.!or?); strip it before using the string inside{}.authed: always1.

