Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Mar 2, 2025
1 parent c81e2b7 commit dd1b922
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public TextToSpeechRequest(
public int? Seed { get; }

[Preserve]
[JsonProperty("apply_text_normalization")]
[JsonProperty("apply_text_normalization", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string ApplyTextNormalization { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ namespace ElevenLabs.Voices
[Serializable]
public sealed class VoiceSettings
{
[Obsolete("use new .ctr overload")]
public VoiceSettings(
float stability,
float similarityBoost,
bool speakerBoost,
float style)
: this(stability, similarityBoost, style, speakerBoost)
{
}

[Preserve]
[JsonConstructor]
public VoiceSettings(
Expand All @@ -27,16 +37,6 @@ public VoiceSettings(
Speed = speed;
}

[Obsolete("use new .ctr overload")]
public VoiceSettings(
[JsonProperty("stability")] float stability,
[JsonProperty("similarity_boost")] float similarityBoost,
[JsonProperty("speaker_boost")] bool speakerBoost,
[JsonProperty("style")] float style)
: this(stability, similarityBoost, style, speakerBoost)
{
}

[Range(0f, 1f)]
[SerializeField]
private float stability = 0.75f;
Expand Down

0 comments on commit dd1b922

Please sign in to comment.