diff --git a/Vonage/Voice/TalkCommand.cs b/Vonage/Voice/TalkCommand.cs index 86b0bc72d..d73d3c476 100644 --- a/Vonage/Voice/TalkCommand.cs +++ b/Vonage/Voice/TalkCommand.cs @@ -1,5 +1,4 @@ using Newtonsoft.Json; -using System; namespace Vonage.Voice; @@ -13,23 +12,13 @@ public class TalkCommand [JsonProperty("text")] public string Text { get; set; } - /// - /// The name of the voice used to deliver text. You use the voice_name - /// that has the correct language, gender and accent for the message - /// you are sending. For example, the default voice kimberley is a - /// female who speaks English with an American accent (en-US). - /// Possible values for voice_name are listed at https://docs.nexmo.com/voice/voice-api/api-reference#talk_put - /// - [JsonProperty("voice_name")] - [Obsolete("This parameter has been made obsolete by the language and style fields. Please see https://developer.nexmo.com/voice/voice-api/guides/text-to-speech#locale for more details")] - public string VoiceName { get; set; } - /// /// Set to 0 to replay the audio file at stream_url when the stream ends. The default value is 1. /// - [JsonProperty(DefaultValueHandling = DefaultValueHandling.Include, NullValueHandling = NullValueHandling.Ignore, PropertyName ="loop")] + [JsonProperty(DefaultValueHandling = DefaultValueHandling.Include, NullValueHandling = NullValueHandling.Ignore, + PropertyName = "loop")] public int? Loop { get; set; } - + /// /// The volume level that the speech is played. This can be any value between -1 to 1 in 0.1 increments, with 0 being the default. ///