Class AIAssistViewTextToSpeechSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
AIAssistViewTextToSpeechSettingsBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.InteractiveChat
Assembly: Syncfusion.AspNetMvc.InteractiveChat.dll
Syntax
public class AIAssistViewTextToSpeechSettingsBuilder : ControlBuilder
Constructors
AIAssistViewTextToSpeechSettingsBuilder()
Declaration
public AIAssistViewTextToSpeechSettingsBuilder()
AIAssistViewTextToSpeechSettingsBuilder(AIAssistViewTextToSpeechSettings)
Declaration
public AIAssistViewTextToSpeechSettingsBuilder(AIAssistViewTextToSpeechSettings model)
Parameters
| Type | Name | Description |
|---|---|---|
| AIAssistViewTextToSpeechSettings | model |
Methods
InputText(String)
Specifies the text content to be converted into speech. Accepts plain string input for synthesis.
Declaration
public AIAssistViewTextToSpeechSettingsBuilder InputText(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| AIAssistViewTextToSpeechSettingsBuilder |
Language(String)
Specifies the language used for text-to-speech synthesis. Accepts valid ISO language codes such as 'en-US', 'fr-FR', or 'de-DE'.
Declaration
public AIAssistViewTextToSpeechSettingsBuilder Language(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| AIAssistViewTextToSpeechSettingsBuilder |
SpeechPitch(Double)
Specifies the pitch of the synthesized voice. Accepts numeric values typically between 0 (low) and 2 (high).
Declaration
public AIAssistViewTextToSpeechSettingsBuilder SpeechPitch(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value |
Returns
| Type |
|---|
| AIAssistViewTextToSpeechSettingsBuilder |
SpeechRate(Double)
Specifies the speaking rate of the synthesized voice. Accepts numeric values typically between 0.1 (slow) and 10 (fast).
Declaration
public AIAssistViewTextToSpeechSettingsBuilder SpeechRate(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value |
Returns
| Type |
|---|
| AIAssistViewTextToSpeechSettingsBuilder |
Voice(Object)
Specifies the voice used for speech synthesis. Must be a valid SpeechSynthesisVoice from speechSynthesis.getVoices().
Declaration
public AIAssistViewTextToSpeechSettingsBuilder Voice(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value |
Returns
| Type |
|---|
| AIAssistViewTextToSpeechSettingsBuilder |
Volume(Double)
Specifies the volume level of the synthesized voice. Accepts numeric values between 0 (mute) and 1 (maximum).
Declaration
public AIAssistViewTextToSpeechSettingsBuilder Volume(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value |
Returns
| Type |
|---|
| AIAssistViewTextToSpeechSettingsBuilder |