SSML y detección de idiomas
Detección del idioma de la voz
Sección titulada «Detección del idioma de la voz»Cuando voice_lang es nulo, el sistema detecta automáticamente el idioma de la voz a partir del contenido del mensaje mediante la biblioteca patrickschur/language-detection.
Idiomas compatibles: inglés (EN), alemán (DE), francés (FR), italiano (IT), español (ES), polaco (PL), neerlandés (NL), rumano (RO), portugués (PT), checo (CS), húngaro (HU), sueco (SV), danés (DA), finlandés (FI), eslovaco (SK), croata (HR), turco (TR), ruso (RU), búlgaro (BG), ucraniano (UK).
SSML Support
Sección titulada «SSML Support»The API now supports a subset of SSML (Speech Synthesis Markup Language) for advanced voice message formatting.
Supported Features
Sección titulada «Supported Features»Available Tags
Sección titulada «Available Tags»<break>- Insert pauses in speech<say-as>- Control pronunciation of text
Tag Specifications
Sección titulada «Tag Specifications»<break> Tag
Sección titulada «<break> Tag»- Purpose: Add pauses between words or sentences
- Attributes:
time(e.g., “1s”, “500ms”) - Precios: <0,5ms = 1 carácter, <1s = 2 caracteres, <1,5s = 3 caracteres, etc.
<say-as> Tag
Sección titulada «<say-as> Tag»- Purpose: Control how text is interpreted and spoken
- Supported Attributes:
interpret-as="characters"- Spell out text character by character
- Note: Currently only “characters” value is supported
Wrap your message content with the <speak> root element:
<speak> Your verification code is <say-as interpret-as="characters">A1B2C3</say-as>. <break time="1s"/> Please enter it now.</speak>