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 @@ -70,6 +70,12 @@ public sealed partial class UltravoxV1ElevenLabsVoice
[global::System.Text.Json.Serialization.JsonPropertyName("maxSampleRate")]
public int? MaxSampleRate { get; set; }

/// <summary>
/// See https://elevenlabs.io/docs/api-reference/text-to-speech/v-1-text-to-speech-voice-id-stream-input#request.query.enable_ssml_parsing
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("enableSsmlParsing")]
public bool? EnableSsmlParsing { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -111,6 +117,9 @@ public sealed partial class UltravoxV1ElevenLabsVoice
/// The maximum sample rate Ultravox will try to use. ElevenLabs limits your allowed sample rate<br/>
/// based on your tier. See https://elevenlabs.io/pricing#pricing-table (and click "Show API details")
/// </param>
/// <param name="enableSsmlParsing">
/// See https://elevenlabs.io/docs/api-reference/text-to-speech/v-1-text-to-speech-voice-id-stream-input#request.query.enable_ssml_parsing
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -124,7 +133,8 @@ public UltravoxV1ElevenLabsVoice(
float? stability,
global::System.Collections.Generic.IList<global::Ultravox.UltravoxV1ElevenLabsVoicePronunciationDictionaryReference>? pronunciationDictionaries,
int? optimizeStreamingLatency,
int? maxSampleRate)
int? maxSampleRate,
bool? enableSsmlParsing)
{
this.VoiceId = voiceId;
this.Model = model;
Expand All @@ -136,6 +146,7 @@ public UltravoxV1ElevenLabsVoice(
this.PronunciationDictionaries = pronunciationDictionaries;
this.OptimizeStreamingLatency = optimizeStreamingLatency;
this.MaxSampleRate = maxSampleRate;
this.EnableSsmlParsing = enableSsmlParsing;
}

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Ultravox/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7103,6 +7103,9 @@ components:
The maximum sample rate Ultravox will try to use. ElevenLabs limits your allowed sample rate
based on your tier. See https://elevenlabs.io/pricing#pricing-table (and click "Show API details")
format: int32
enableSsmlParsing:
type: boolean
description: See https://elevenlabs.io/docs/api-reference/text-to-speech/v-1-text-to-speech-voice-id-stream-input#request.query.enable_ssml_parsing
description: Specification for a voice served by ElevenLabs.
ultravox.v1.ElevenLabsVoice_PronunciationDictionaryReference:
type: object
Expand Down