Other APIs
Phonemize
Phonemize endpoint: convert a recording of a word into a phonetic string in the Rime phonetic alphabet.
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 by Mist v1 and v2 only. 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.

