Skip to content

Commit 62ccedf

Browse files
committed
Merge branch 'dvc-1667-docs-es-variants' into 'main'
docs(voice): [DVC-1667] add es-419 (LATAM) to Voice API enums, matrix, changelog Closes DVC-1667 See merge request deepl-org/deepl/clapi-track/api-docs-mirror!255
2 parents f291d45 + 79106d5 commit 62ccedf

6 files changed

Lines changed: 14 additions & 2 deletions

File tree

‎api-reference/openapi.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10150,6 +10150,7 @@
1015010150
"en-GB",
1015110151
"en-US",
1015210152
"es",
10153+
"es-419",
1015310154
"et",
1015410155
"fi",
1015510156
"fr",
@@ -10216,6 +10217,7 @@
1021610217
"en-GB",
1021710218
"en-US",
1021810219
"es",
10220+
"es-419",
1021910221
"fi",
1022010222
"fr",
1022110223
"fr-CA",

‎api-reference/openapi.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7652,6 +7652,7 @@ components:
76527652
- en-GB
76537653
- en-US
76547654
- es
7655+
- es-419
76557656
- et
76567657
- fi
76577658
- fr
@@ -7720,6 +7721,7 @@ components:
77207721
- en-GB
77217722
- en-US
77227723
- es
7724+
- es-419
77237725
- fi
77247726
- fr
77257727
- fr-CA

‎api-reference/voice/deepl-voice-api-service-specification-updates.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ audio provides the following functionality:
100100
<li>`en-GB` (English (British))</li>
101101
<li>`en-US` (English (American))</li>
102102
<li>`es` (Spanish)</li>
103+
<li>`es-419` (Spanish (Latin American))</li>
103104
<li>`et` (Estonian)</li>
104105
<li>`fi` (Finnish)</li>
105106
<li>`fr` (French)</li>

‎docs/resources/roadmap-and-release-notes.mdx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ rss: true
1313
- [`POST /v2/document`](/api-reference/document/upload-and-translate-a-document) protects brace-delimited placeholders in `json` documents by default: values such as `{stars}` or `{{userName}}` are kept verbatim instead of being translated along with the surrounding text. Set `input_conversion_options=version:1,json-placeholders:translate` to translate them instead.
1414
- ICU MessageFormat skeletons such as `{count, plural, one {# item} other {# items}}` are always protected, with only the branch text translated, in both modes.
1515

16+
## September 30 - Voice API Spanish (Latin America)
17+
- The [Voice API](/docs/voice/overview) now supports `es-419` (Spanish, Latin America) as a target-language variant for translation and translated speech, in beta. Translation is provided by DeepL; translated speech is provided by an external service partner.
18+
- `es-419` translated speech is reported with `"external": true` and beta status in the [`GET /v3/languages?resource=voice`](/docs/languages/using-the-languages-api) response, so call with `include=beta&include=external` to see it.
19+
- See the [supported languages table](/docs/voice/supported-voice-languages) for the full Voice API language list.
20+
1621
## September 29 - New Document Formats (Beta) and Embedded Image Translation Controls
1722
- [`POST /v2/document`](/api-reference/document/upload-and-translate-a-document) now supports ten additional file formats, all currently in beta: `xlsm` (macro-enabled Excel), `zip` (SCORM e-learning packages), `vtt` (WebVTT subtitles), `yaml` / `yml`, `properties` (Java properties), `strings` (iOS/macOS strings), `md` / `markdown`, `resx` (.NET resources), `odt` (OpenDocument Text), and `rtf` (Rich Text Format).
1823
- A new `input_conversion_options` parameter controls how the input document is converted before translation. The `suppress-image-types` option leaves specified types of images embedded in `pptx` documents untranslated. For example, `version:1,suppress-image-types:all` suppresses all embedded images, and `version:1,suppress-image-types:logo-photo` suppresses logos and photos only.

‎docs/voice/supported-voice-languages.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Translation is always provided by DeepL. For some languages, transcription and t
4949
| Slovak | ⎋ | ✓ | ⎋ |
5050
| Slovenian | ⎋ | ✓ | ⎋ |
5151
| Spanish | ✓ | ✓ | ✓ |
52+
| Spanish (Latin American) <Badge color="blue">beta</Badge> | ✓ | ✓ | ⎋ |
5253
| Swedish | ✓ | ✓ | ✓ |
5354
| Tagalog | ⎋ | ✓ | ⎋ |
5455
| Tamil <Badge color="blue">beta</Badge> | ⎋ | ✓ | ⎋ |

‎scripts/generate-voice-languages.mjs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export async function update({ authKey, dryRun = false }) {
2020
const languagesByCode = new Map(languages.map((language) => [language.lang, language]));
2121

2222
const rows = languages
23-
// Skip the row for a base language if variants are available
24-
.filter((l) => l.lang.includes('-') || !languages.some((f) => f.lang.startsWith(`${l.lang}-`)))
23+
// Skip the row for a base language if two or more variants cover it (e.g. fr-CA + fr-FR).
24+
// A single variant (e.g. es-419 without es-ES) leaves the base row as the other variety.
25+
.filter((l) => l.lang.includes('-') || languages.filter((f) => f.lang.startsWith(`${l.lang}-`)).length < 2)
2526
.sort(byName)
2627
.map((l) => {
2728
const isVariant = l.lang.includes('-');

0 commit comments

Comments
 (0)