Defines the fluent API for configuring PromptBoxSpeechToTextButtonSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PromptBoxSpeechToTextButtonSettingsBuilder
Inheritance: objectPromptBoxSpeechToTextButtonSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the PromptBoxSpeechToTextButtonSettingsBuilder class.
public PromptBoxSpeechToTextButtonSettingsBuilder(PromptBoxSpeechToTextButtonSettings container)
Properties
protected PromptBoxSpeechToTextButtonSettings Container { get; }
Methods
Enables continuous speech recognition mode. When enabled, recognition continues until manually stopped.
public PromptBoxSpeechToTextButtonSettingsBuilder Continuous()
PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Enables continuous speech recognition mode. When enabled, recognition continues until manually stopped.
public PromptBoxSpeechToTextButtonSettingsBuilder Continuous(bool value)
The value for Continuous
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Enables or disables the Speech to Text button.
public PromptBoxSpeechToTextButtonSettingsBuilder Enable(bool value)
The value for Enable
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Defines the fill mode for the Speech to Text button.
public PromptBoxSpeechToTextButtonSettingsBuilder FillMode(ButtonFillMode value)
The value for FillMode
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Defines the font icon name for the Speech to Text button.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public PromptBoxSpeechToTextButtonSettingsBuilder Icon(Action<PromptBoxSpeechToTextButtonIconSettingsBuilder> configurator)
The PromptBoxSpeechToTextButtonIconSettingsBuilder for the icon setting.
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current instance of PromptBoxSpeechToTextButtonSettingsBuilder .
Defines the font icon name for the Speech to Text button.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public PromptBoxSpeechToTextButtonSettingsBuilder Icon(string icon)
The icon.
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current instance of PromptBoxSpeechToTextButtonSettingsBuilder .
Enables interim (partial) speech recognition results.
public PromptBoxSpeechToTextButtonSettingsBuilder InterimResults()
PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Enables interim (partial) speech recognition results.
public PromptBoxSpeechToTextButtonSettingsBuilder InterimResults(bool value)
The value for InterimResults
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Sets the language for speech recognition. Use standard language codes.
public PromptBoxSpeechToTextButtonSettingsBuilder Lang(string value)
The value for Lang
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Sets the maximum number of alternative transcriptions to return.
public PromptBoxSpeechToTextButtonSettingsBuilder MaxAlternatives(double value)
The value for MaxAlternatives
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Defines the border radius for the Speech to Text button.
public PromptBoxSpeechToTextButtonSettingsBuilder Rounded(Rounded value)
The value for Rounded
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Defines the size of the Speech to Text button.
public PromptBoxSpeechToTextButtonSettingsBuilder Size(ComponentSize value)
The value for Size
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.
Defines the theme color for the Speech to Text button.
public PromptBoxSpeechToTextButtonSettingsBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:PromptBoxSpeechToTextButtonSettingsBuilder
Returns the current PromptBoxSpeechToTextButtonSettingsBuilder instance.