From 5f47cd2f53f9eca1c040cc8913ac9d7af346134e Mon Sep 17 00:00:00 2001 From: Rishabh Bhargava Date: Thu, 30 Apr 2026 11:36:30 -0700 Subject: [PATCH] docs(tts): clarify language parameter supports lowercase locales ENG-87042 Relaxes the TTS `language` enum to free-form string and updates the description to note that locale codes (e.g. `zh-hk` for Cantonese) are supported and must be lowercase. Mirrors mintlify-docs PR #764. --- openapi.yaml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 4606452..74a00a6 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10088,24 +10088,10 @@ components: - raw language: type: string - description: Language of input text. + description: | + Language or locale of input text. Accepts ISO 639-1 language codes (e.g., `en`, `fr`, `es`, `zh`) as well as locale codes for region-specific variants. Locale codes must be lowercase (e.g., `zh-hk` for Cantonese, not `zh-HK`). default: en - enum: - - en - - de - - fr - - es - - hi - - it - - ja - - ko - - nl - - pl - - pt - - ru - - sv - - tr - - zh + example: en response_encoding: type: string description: Audio encoding of response. Only applicable when response_format is raw or pcm. Cartesia models respect this parameter and support all values. Orpheus, Kokoro, and Minimax models always return pcm_s16le regardless of this setting.