Class AIAssistViewTextToSpeechSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
AIAssistViewTextToSpeechSettingsBuilder
Assembly: Syncfusion.AspNetCore.InteractiveChat.dll
Syntax
public class AIAssistViewTextToSpeechSettingsBuilder : ControlBuilder
Constructors
AIAssistViewTextToSpeechSettingsBuilder()
Declaration
public AIAssistViewTextToSpeechSettingsBuilder()
AIAssistViewTextToSpeechSettingsBuilder(AIAssistViewTextToSpeechSettings)
Declaration
public AIAssistViewTextToSpeechSettingsBuilder(AIAssistViewTextToSpeechSettings model)
Parameters
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
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
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
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
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
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