Share via


TextSource Constructors

Definition

Overloads

TextSource(String)

Initializes a new instance of TextSource.

TextSource(String, String)

Initializes a new instance of TextSource.

TextSource(String, String, VoiceKind)

Initializes a new instance of TextSource.

TextSource(String)

Source:
TextSource.cs
Source:
TextSource.cs

Initializes a new instance of TextSource.

public TextSource (string text);
new Azure.Communication.CallAutomation.TextSource : string -> Azure.Communication.CallAutomation.TextSource
Public Sub New (text As String)

Parameters

text
String

Text for the cognitive service to be played.

Exceptions

text is null.

Applies to

TextSource(String, String)

Source:
TextSource.cs
Source:
TextSource.cs

Initializes a new instance of TextSource.

public TextSource (string text, string voiceName);
new Azure.Communication.CallAutomation.TextSource : string * string -> Azure.Communication.CallAutomation.TextSource
Public Sub New (text As String, voiceName As String)

Parameters

text
String

Text for the cognitive service to be played.

voiceName
String

The voiceName of the audio.

Exceptions

text is null.

Applies to

TextSource(String, String, VoiceKind)

Source:
TextSource.cs
Source:
TextSource.cs

Initializes a new instance of TextSource.

public TextSource (string text, string sourceLocale, Azure.Communication.CallAutomation.VoiceKind voiceKind);
new Azure.Communication.CallAutomation.TextSource : string * string * Azure.Communication.CallAutomation.VoiceKind -> Azure.Communication.CallAutomation.TextSource
Public Sub New (text As String, sourceLocale As String, voiceKind As VoiceKind)

Parameters

text
String

Text for the cognitive service to be played.

sourceLocale
String

The culture info string of the voice.

voiceKind
VoiceKind

The Voice Kind of the voice.

Exceptions

text is null.

Applies to