Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ public partial interface IVoiceAPIClient
/// Example: fixed
/// </param>
/// <param name="targetLanguages">
/// List of target languages for translation. The stream will emit translations for each language. The maximum allowed target languages per stream is 5. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// List of target languages for translation. The stream will emit translations for each language. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, fr, es]
/// </param>
/// <param name="targetMediaLanguages">
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). Language identifiers must comply with IETF BCP 47.<br/>
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, en-GB]
/// Example: [de]
/// </param>
/// <param name="targetMediaContentType">
/// (closed beta) The audio format for synthesized target media streaming.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public sealed partial class GetVoiceStreamingUrlRequest
public global::DeepL.VoiceSourceLanguageMode? SourceLanguageMode { get; set; }

/// <summary>
/// List of target languages for translation. The stream will emit translations for each language. The maximum allowed target languages per stream is 5. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// List of target languages for translation. The stream will emit translations for each language. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, fr, es]
/// </summary>
Expand All @@ -93,12 +93,12 @@ public sealed partial class GetVoiceStreamingUrlRequest
public global::System.Collections.Generic.IList<global::DeepL.VoiceTargetLanguage>? TargetLanguages { get; set; }

/// <summary>
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). Language identifiers must comply with IETF BCP 47.<br/>
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, en-GB]
/// Example: [de]
/// </summary>
/// <example>[de, en-GB]</example>
/// <example>[de]</example>
[global::System.Text.Json.Serialization.JsonPropertyName("target_media_languages")]
public global::System.Collections.Generic.IList<global::DeepL.VoiceTargetMediaLanguage>? TargetMediaLanguages { get; set; }

Expand Down Expand Up @@ -241,15 +241,15 @@ public sealed partial class GetVoiceStreamingUrlRequest
/// Example: fixed
/// </param>
/// <param name="targetLanguages">
/// List of target languages for translation. The stream will emit translations for each language. The maximum allowed target languages per stream is 5. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// List of target languages for translation. The stream will emit translations for each language. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, fr, es]
/// </param>
/// <param name="targetMediaLanguages">
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). Language identifiers must comply with IETF BCP 47.<br/>
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, en-GB]
/// Example: [de]
/// </param>
/// <param name="targetMediaContentType">
/// (closed beta) The audio format for synthesized target media streaming.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -713,15 +713,15 @@ partial void ProcessGetVoiceStreamingUrlResponseContent(
/// Example: fixed
/// </param>
/// <param name="targetLanguages">
/// List of target languages for translation. The stream will emit translations for each language. The maximum allowed target languages per stream is 5. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// List of target languages for translation. The stream will emit translations for each language. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, fr, es]
/// </param>
/// <param name="targetMediaLanguages">
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). Language identifiers must comply with IETF BCP 47.<br/>
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
/// Default Value: []<br/>
/// Example: [de, en-GB]
/// Example: [de]
/// </param>
/// <param name="targetMediaContentType">
/// (closed beta) The audio format for synthesized target media streaming.<br/>
Expand Down
12 changes: 6 additions & 6 deletions src/libs/DeepL/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3067,7 +3067,7 @@ paths:
source_media_content_type: 'audio/ogg;codecs=opus'
source_language: 'en'
target_languages: ['de', 'fr', 'es']
target_media_languages: ['de', 'fr']
target_media_languages: ['de']
target_media_content_type: 'audio/webm;codecs=opus'
target_media_voice: 'female'
with_tts_short_form:
Expand All @@ -3076,7 +3076,7 @@ paths:
source_media_content_type: 'audio/webm'
source_language: 'en'
target_languages: ['de', 'es']
target_media_languages: ['de', 'es']
target_media_languages: ['de']
target_media_content_type: 'audio/ogg'
with_tts_high_quality:
summary: With translated audio using high-quality PCM
Expand Down Expand Up @@ -5482,7 +5482,7 @@ components:
VoiceTargetLanguages:
type: array
description: >
List of target languages for translation. The stream will emit translations for each language. The maximum allowed target languages per stream is 5. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.
List of target languages for translation. The stream will emit translations for each language. Language identifiers must comply with IETF BCP 47. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.

items:
type: string
Expand Down Expand Up @@ -5537,7 +5537,7 @@ components:
VoiceTargetMediaLanguages:
type: array
description: >
(closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.
(closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). Language identifiers must comply with IETF BCP 47.

Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.

Expand Down Expand Up @@ -5577,9 +5577,9 @@ components:
- zh
- zh-HANS
- zh-HANT
maxItems: 5
maxItems: 1
default: []
example: ["de", "en-GB"]
example: ["de"]
VoiceTargetMediaContentType:
type: string
description: " (closed beta) The audio format for synthesized target media streaming.\n Specifies container, codec, and encoding parameters for the audio returned in target_media_chunk messages.\n If not specified, defaults to audio/webm;codecs=opus.\n Only applies when target_media_languages is specified.\n \n | Content Type | Container | Codec |\n | :--- | :--- | :--- |\n | `audio/flac` | FLAC (flac) | FLAC 24000 Hz |\n | `video/mp2t;codecs=aac` | MPEG Transport Stream (Audio only) | AAC 70 kbit/s |\n | `video/mp2t;codecs=opus` | MPEG Transport Stream (Audio only) | OPUS 32 kbit/s |\n | `audio/ogg` | Ogg (ogg/oga) | OPUS 32 kbit/s |\n | `audio/ogg;codecs=flac` | Ogg (ogg/oga) | FLAC 24000 Hz |\n | `audio/ogg;codecs=opus` | Ogg (ogg/oga) | OPUS 32 kbit/s |\n | `audio/opus` | - | OPUS 32 kbit/s |\n | `audio/pcm;encoding=alaw;rate=8000` | - | PCM A-Law 8000 Hz (G.711) |\n | `audio/pcm;encoding=ulaw;rate=8000` | - | PCM µ-Law 8000 Hz (G.711) |\n | `audio/pcm;encoding=s16le;rate=16000` | - | PCM signed 16-bit little-endian 16000 Hz |\n | `audio/pcm;encoding=s16le;rate=24000` | - | PCM signed 16-bit little-endian 24000 Hz |\n | `audio/webm` | WebM (webm) | OPUS 32 kbit/s |\n | `audio/webm;codecs=opus` | WebM (webm) | OPUS 32 kbit/s |\n | `audio/x-matroska;codecs=aac` | Matroska (mkv/mka) | AAC 70 kbit/s |\n | `audio/x-matroska;codecs=flac` | Matroska (mkv/mka) | FLAC 24000 Hz |\n | `audio/x-matroska;codecs=opus` | Matroska (mkv/mka) | OPUS 32 kbit/s |\n \n We recommend the following formats as good tradeoffs between quality and bandwidth:\n - OPUS (WebM): 32 kbps, recommended for low bandwidth scenarios (default)\n - PCM 24kHz: 384 kbps, high quality"
Expand Down