Class TalkCommand
Represents a command to play text-to-speech into an active call.
public class TalkCommand
- Inheritance
-
TalkCommand
- Inherited Members
Properties
Language
The language for the text-to-speech in BCP-47 format (e.g., "en-US", "fr-FR"). Default is "en-US".
[JsonProperty("language")]
public string Language { get; set; }
Property Value
Level
The volume level for the speech, from -1 to 1 in 0.1 increments. Default is 0.
[JsonProperty("level")]
public string Level { get; set; }
Property Value
Loop
The number of times to repeat the text. Set to 0 for infinite looping. Default is 1.
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Include, NullValueHandling = NullValueHandling.Ignore, PropertyName = "loop")]
public int? Loop { get; set; }
Property Value
- int?
Premium
Set to true to use the premium version of the specified voice style if available; otherwise the standard version is used.
[JsonProperty("premium")]
public bool Premium { get; set; }
Property Value
Style
The vocal style index (vocal range, tessitura, and timbre). Default is 0. Available styles vary by language.
[JsonProperty("style")]
public int? Style { get; set; }
Property Value
- int?
Text
The text to synthesize and play into the call. Up to 1500 UTF-8 characters. Each comma adds a short pause to the synthesized speech.
[JsonProperty("text")]
public string Text { get; set; }