@syncfusion/ej2-inputs 31.1.17 → 31.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/ej2-inputs.min.js +2 -2
  2. package/dist/ej2-inputs.umd.min.js +2 -2
  3. package/dist/ej2-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-inputs.es2015.js +11 -3
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +11 -3
  7. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  8. package/dist/global/ej2-inputs.min.js +2 -2
  9. package/dist/global/ej2-inputs.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +11 -61
  12. package/src/color-picker/color-picker.js +4 -3
  13. package/src/textbox/textbox.js +7 -0
  14. package/styles/bootstrap4-lite.css +2 -2
  15. package/styles/bootstrap4.css +2 -2
  16. package/styles/bootstrap5-dark-lite.css +2 -2
  17. package/styles/bootstrap5-dark.css +2 -2
  18. package/styles/bootstrap5-lite.css +2 -2
  19. package/styles/bootstrap5.css +2 -2
  20. package/styles/input/_bootstrap4-definition.scss +1 -1
  21. package/styles/input/_bootstrap5-definition.scss +1 -1
  22. package/styles/input/bootstrap4.css +2 -2
  23. package/styles/input/bootstrap5-dark.css +2 -2
  24. package/styles/input/bootstrap5.css +2 -2
  25. package/dist/ts/color-picker/color-picker-model.d.ts +0 -186
  26. package/dist/ts/color-picker/color-picker.d.ts +0 -398
  27. package/dist/ts/color-picker/color-picker.ts +0 -2209
  28. package/dist/ts/color-picker/index.d.ts +0 -5
  29. package/dist/ts/color-picker/index.ts +0 -5
  30. package/dist/ts/common/index.d.ts +0 -4
  31. package/dist/ts/common/index.ts +0 -4
  32. package/dist/ts/common/signature-base.d.ts +0 -340
  33. package/dist/ts/common/signature-base.ts +0 -1170
  34. package/dist/ts/form-validator/form-validator-model.d.ts +0 -121
  35. package/dist/ts/form-validator/form-validator.d.ts +0 -312
  36. package/dist/ts/form-validator/form-validator.ts +0 -1068
  37. package/dist/ts/form-validator/index.d.ts +0 -5
  38. package/dist/ts/form-validator/index.ts +0 -5
  39. package/dist/ts/index.d.ts +0 -18
  40. package/dist/ts/index.ts +0 -18
  41. package/dist/ts/input/index.d.ts +0 -4
  42. package/dist/ts/input/index.ts +0 -4
  43. package/dist/ts/input/input.d.ts +0 -345
  44. package/dist/ts/input/input.ts +0 -1277
  45. package/dist/ts/maskedtextbox/base/index.d.ts +0 -4
  46. package/dist/ts/maskedtextbox/base/index.ts +0 -4
  47. package/dist/ts/maskedtextbox/base/mask-base.d.ts +0 -134
  48. package/dist/ts/maskedtextbox/base/mask-base.ts +0 -1207
  49. package/dist/ts/maskedtextbox/index.d.ts +0 -5
  50. package/dist/ts/maskedtextbox/index.ts +0 -5
  51. package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +0 -5
  52. package/dist/ts/maskedtextbox/maskedtextbox/index.ts +0 -5
  53. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +0 -167
  54. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -307
  55. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +0 -709
  56. package/dist/ts/numerictextbox/index.d.ts +0 -5
  57. package/dist/ts/numerictextbox/index.ts +0 -5
  58. package/dist/ts/numerictextbox/numerictextbox-model.d.ts +0 -228
  59. package/dist/ts/numerictextbox/numerictextbox.d.ts +0 -431
  60. package/dist/ts/numerictextbox/numerictextbox.ts +0 -1672
  61. package/dist/ts/otp-input/index.d.ts +0 -5
  62. package/dist/ts/otp-input/index.ts +0 -5
  63. package/dist/ts/otp-input/otp-input-model.d.ts +0 -165
  64. package/dist/ts/otp-input/otp-input.d.ts +0 -365
  65. package/dist/ts/otp-input/otp-input.ts +0 -924
  66. package/dist/ts/rating/index.d.ts +0 -5
  67. package/dist/ts/rating/index.ts +0 -5
  68. package/dist/ts/rating/rating-model.d.ts +0 -239
  69. package/dist/ts/rating/rating.d.ts +0 -416
  70. package/dist/ts/rating/rating.ts +0 -1101
  71. package/dist/ts/signature/index.d.ts +0 -5
  72. package/dist/ts/signature/index.ts +0 -5
  73. package/dist/ts/signature/signature-model.d.ts +0 -131
  74. package/dist/ts/signature/signature.d.ts +0 -167
  75. package/dist/ts/signature/signature.ts +0 -266
  76. package/dist/ts/slider/index.d.ts +0 -5
  77. package/dist/ts/slider/index.ts +0 -5
  78. package/dist/ts/slider/slider-model.d.ts +0 -401
  79. package/dist/ts/slider/slider.d.ts +0 -721
  80. package/dist/ts/slider/slider.ts +0 -3497
  81. package/dist/ts/smart-textarea/caret-helper.d.ts +0 -17
  82. package/dist/ts/smart-textarea/caret-helper.ts +0 -95
  83. package/dist/ts/smart-textarea/index.d.ts +0 -5
  84. package/dist/ts/smart-textarea/index.ts +0 -5
  85. package/dist/ts/smart-textarea/smart-textarea-model.d.ts +0 -44
  86. package/dist/ts/smart-textarea/smart-textarea.d.ts +0 -80
  87. package/dist/ts/smart-textarea/smart-textarea.ts +0 -518
  88. package/dist/ts/speech-to-text/index.d.ts +0 -5
  89. package/dist/ts/speech-to-text/index.ts +0 -5
  90. package/dist/ts/speech-to-text/speech-to-text-model.d.ts +0 -270
  91. package/dist/ts/speech-to-text/speech-to-text.d.ts +0 -487
  92. package/dist/ts/speech-to-text/speech-to-text.ts +0 -1008
  93. package/dist/ts/textarea/index.d.ts +0 -5
  94. package/dist/ts/textarea/index.ts +0 -5
  95. package/dist/ts/textarea/textarea-model.d.ts +0 -161
  96. package/dist/ts/textarea/textarea.d.ts +0 -237
  97. package/dist/ts/textarea/textarea.ts +0 -812
  98. package/dist/ts/textbox/index.d.ts +0 -5
  99. package/dist/ts/textbox/index.ts +0 -5
  100. package/dist/ts/textbox/textbox-model.d.ts +0 -155
  101. package/dist/ts/textbox/textbox.d.ts +0 -288
  102. package/dist/ts/textbox/textbox.ts +0 -872
  103. package/dist/ts/uploader/index.d.ts +0 -5
  104. package/dist/ts/uploader/index.ts +0 -5
  105. package/dist/ts/uploader/uploader-model.d.ts +0 -555
  106. package/dist/ts/uploader/uploader.d.ts +0 -1216
  107. package/dist/ts/uploader/uploader.ts +0 -4391
@@ -1,487 +0,0 @@
1
- import { INotifyPropertyChanged, Component, EmitType, ChildProperty, BaseEventArgs } from '@syncfusion/ej2-base';
2
- import { SpeechToTextModel, TooltipSettingsModel, ButtonSettingsModel } from './speech-to-text-model';
3
- import { IconPosition } from '@syncfusion/ej2-buttons';
4
- /**
5
- * Applicable positions where the Tooltip can be displayed over SpeechToText button.
6
- * - TopLeft :- The tooltip appears at the top-left corner of the SpeechToText button.
7
- * - TopCenter :- The tooltip appears at the top-center of the SpeechToText button.
8
- * - TopRight :- The tooltip appears at the top-right corner of the SpeechToText button.
9
- * - BottomLeft :- The tooltip appears at the bottom-left corner of the SpeechToText button.
10
- * - BottomCenter :- The tooltip appears at the bottom-center of the SpeechToText button.
11
- * - BottomRight :- The tooltip appears at the bottom-right corner of the SpeechToText button.
12
- * - LeftTop :- The tooltip appears at the left-top corner of the SpeechToText button.
13
- * - LeftCenter :- The tooltip appears at the left-center of the SpeechToText button.
14
- * - LeftBottom :- The tooltip appears at the left-bottom corner of the SpeechToText button.
15
- * - RightTop :- The tooltip appears at the right-top corner of the SpeechToText button.
16
- * - RightCenter :- The tooltip appears at the right-center of the SpeechToText button.
17
- * - RightBottom :- The tooltip appears at the right-bottom corner of the SpeechToText button.
18
- */
19
- export declare type TooltipPosition = 'TopLeft' | 'TopCenter' | 'TopRight' | 'BottomLeft' | 'BottomCenter' | 'BottomRight' | 'LeftTop' | 'LeftCenter' | 'LeftBottom' | 'RightTop' | 'RightCenter' | 'RightBottom';
20
- /**
21
- * Configuration settings for the toggle button used in the SpeechToText component.
22
- */
23
- export declare class ButtonSettings extends ChildProperty<ButtonSettings> {
24
- /**
25
- * Specifies the text content to be displayed when the SpeechToText button is in the "start" state.
26
- * This content appears alongside the icon or as standalone text based on the configuration.
27
- *
28
- * @type {string}
29
- * @default ""
30
- */
31
- content: string;
32
- /**
33
- * Specifies the text content to be displayed when the SpeechToText button is in the "stop" state.
34
- * This content appears alongside the icon or as standalone text based on the configuration.
35
- *
36
- * @type {string}
37
- * @default ""
38
- */
39
- stopContent: string;
40
- /**
41
- * Specifies the CSS classes for the icon displayed on the SpeechToText button.
42
- * This class determines the appearance of the button icon in "start" state.
43
- *
44
- * @type {string}
45
- * @default ""
46
- */
47
- iconCss: string;
48
- /**
49
- * Specifies the CSS classes for the icon displayed when the SpeechToText button is in the "stop" state.
50
- * This class determines the styling of the button icon in the stop state, allowing for clear visual feedback.
51
- *
52
- * @type {string}
53
- * @default ""
54
- */
55
- stopIconCss: string;
56
- /**
57
- * Specifies the position of the icon relative to the button text content in the SpeechToText component.
58
- * This property can accept either a string or an IconPosition enum to determine the position of the icon.
59
- *
60
- * @type {string | IconPosition}
61
- * @default "Left"
62
- */
63
- iconPosition: string | IconPosition;
64
- /**
65
- * Specifies whether the button should be styled as a primary action button in the SpeechToText component.
66
- * When set to `true`, the button applies primary styling.
67
- *
68
- * @type {boolean}
69
- * @default false
70
- */
71
- isPrimary: boolean;
72
- }
73
- /**
74
- * Configuration settings for tooltip in the SpeechToText component.
75
- * This allows customization of the tooltip content and its positioning.
76
- */
77
- export declare class TooltipSettings extends ChildProperty<TooltipSettings> {
78
- /**
79
- * The text displayed when the user hovers over the button while it is in the listening state,
80
- * showing the start listening option.
81
- * @type {string}
82
- * @default 'Start listening'
83
- */
84
- content: string;
85
- /**
86
- * The text displayed when the user hovers over the button while listening is in progress,
87
- * and the button shows the stop icon.
88
- * @type {string}
89
- * @default 'Stop listening'
90
- */
91
- stopContent: string;
92
- /**
93
- * Specifies the position of the tooltip in the UI, indicating where the tooltip should appear.
94
- *
95
- * @isenumeration true
96
- * @asptype TooltipPosition
97
- * @default 'TopCenter'
98
- */
99
- position: TooltipPosition;
100
- }
101
- /**
102
- * Enum representing the operational states of the SpeechToText component.
103
- */
104
- export declare enum SpeechToTextState {
105
- /**
106
- * Specifies the state where the SpeechToText component is inactive and not processing spoken input.
107
- */
108
- Inactive = "Inactive",
109
- /**
110
- * Specifies the state where the SpeechToText component is actively listening to spoken input.
111
- */
112
- Listening = "Listening",
113
- /**
114
- * Specifies the state where the SpeechToText component has stopped processing spoken input.
115
- */
116
- Stopped = "Stopped"
117
- }
118
- /**
119
- * Represents the event arguments when a listening is started in the Speech to text component.
120
- */
121
- export interface StartListeningEventArgs extends BaseEventArgs {
122
- /**
123
- * Indicates whether the listening or speech action should be canceled.
124
- * Setting this to `true` prevents listening.
125
- *
126
- * @type {boolean}
127
- * @default false
128
- */
129
- cancel: boolean;
130
- /**
131
- * Specifies the event type associated with the start listening action.
132
- *
133
- * @type {Event}
134
- */
135
- event: Event;
136
- /**
137
- * Represents the current state of the component when listening starts.
138
- *
139
- * @isenumeration true
140
- * @asptype SpeechToTextState
141
- * @default 'Inactive'
142
- */
143
- listeningState: SpeechToTextState;
144
- /**
145
- * Indicates whether the listening event was triggered by user interaction (`true`)
146
- * or programmatically (`false`).
147
- *
148
- * @type {boolean}
149
- * @default false
150
- */
151
- isInteracted: boolean;
152
- }
153
- /**
154
- * Represents the event arguments triggered when listening stops in the SpeechToText component.
155
- */
156
- export interface StopListeningEventArgs extends BaseEventArgs {
157
- /**
158
- * Specifies the event type associated with the stop listening action.
159
- *
160
- * @type {Event}
161
- */
162
- event: Event;
163
- /**
164
- * Represents the current state of the component when listening stops.
165
- *
166
- * @isenumeration true
167
- * @asptype SpeechToTextState
168
- * @default 'Inactive'
169
- */
170
- listeningState: SpeechToTextState;
171
- /**
172
- * Indicates whether the listening event was triggered by user interaction (`true`)
173
- * or programmatically (`false`).
174
- * @type {boolean}
175
- * @default false
176
- */
177
- isInteracted: boolean;
178
- }
179
- /**
180
- * Represents the event arguments triggered when a transcript is updated in the SpeechToText component.
181
- */
182
- export interface TranscriptChangedEventArgs extends BaseEventArgs {
183
- /**
184
- * Specifies the event type associated with the transcript been update in the SpeechToText component.
185
- * Represents the event arguments when a listening is processed in the speech to text component.
186
- *
187
- * @type {Event}
188
- */
189
- event: Event;
190
- /**
191
- * Specifies the transcribed text captured from the speech to text.
192
- * This property contains the text representation of recorded speech.
193
- *
194
- * @type {string}
195
- * @default ''
196
- */
197
- transcript: string;
198
- /**
199
- * Specifies whether the recognized speech result is interim or final.
200
- * Returns `true` when interim results are returned and `false` when it is a final result.
201
- * The value is determined based on the `allowInterimResults` property.
202
- *
203
- * @type {boolean}
204
- * @default true
205
- */
206
- isInterimResult: boolean;
207
- }
208
- /**
209
- * Represents the event arguments triggered when listening is disabled or exceptions are raised in the SpeechToText component.
210
- */
211
- export interface ErrorEventArgs extends BaseEventArgs {
212
- /**
213
- * Specifies the data provided when an error event is triggered during speech-to-text actions.
214
- * This property helps identify the specific error event that occurred during listening or speaking,
215
- * allowing to differentiate between various issues such as microphone access failures,
216
- * unsupported language models, or network issues.
217
- *
218
- * @type {Event}
219
- */
220
- event?: Event;
221
- /**
222
- * Represents a string describing the error type that occurred during speech-to-text actions.
223
- * This value indicates what went wrong, such as 'audio-capture' or 'not-allowed', and helps to find
224
- * the cause of the failure for better troubleshooting.
225
- *
226
- * @type {string}
227
- * @default ''
228
- */
229
- error: string;
230
- /**
231
- * A message providing further details about the error.
232
- * This message gives more context or clarification on the error that occurred,
233
- * helping user to better understand the issue.
234
- * It could include user-facing messages or more technical error details.
235
- *
236
- * @type {string}
237
- * @default ''
238
- */
239
- errorMessage: string;
240
- }
241
- export declare class SpeechToText extends Component<HTMLElement> implements INotifyPropertyChanged {
242
- /**
243
- * The transcribed text from the speech-to-text process.
244
- * This property updates dynamically during speech recognition, providing both interim and final results.
245
- * It can be used to display or process the transcribed speech.
246
- *
247
- * @type {string}
248
- * @default ''
249
- */
250
- transcript: string;
251
- /**
252
- * The language and locale used for speech recognition.
253
- * This ensures proper transcription by selecting the correct language model.
254
- * Common formats: 'en-US' (English, United States), 'es-ES' (Spanish, Spain), 'fr-FR' (French, France).
255
- *
256
- * @type {string}
257
- * @default ''
258
- */
259
- lang: string;
260
- /**
261
- * Determines whether interim results should be provided during speech recognition.
262
- * If true, partial results are delivered in real-time, allowing for a dynamic user experience.
263
- * If false, only final results will be provided after the recognition process is complete.
264
- *
265
- * @type {boolean}
266
- * @default true
267
- */
268
- allowInterimResults: boolean;
269
- /**
270
- * Determines whether the tooltip should be displayed on hover over the SpeechToText button.
271
- * If true, the tooltip will be shown to provide additional information about the current state or action.
272
- *
273
- * @type {boolean}
274
- * @default true
275
- */
276
- showTooltip: boolean;
277
- /**
278
- * Represents the current operational state of the component.
279
- * This state helps manage transitions and control the component's behavior.
280
- * Possible values:
281
- * - 'Inactive': Component is idle.
282
- * - 'Listening': The component is actively listening for speech input.
283
- * - 'Stopped': Listening has stopped.
284
- *
285
- * @isenumeration true
286
- * @asptype SpeechToTextState
287
- * @default 'Inactive'
288
- */
289
- listeningState: SpeechToTextState;
290
- /**
291
- * Customizes the appearance and functionality of the record button.
292
- * This allows for customization of button content, icons, and positions.
293
- * Use it to adjust the button's visual and functional properties according to your needs.
294
- *
295
- * @default null
296
- * @type {ButtonSettingsModel}
297
- */
298
- buttonSettings: ButtonSettingsModel;
299
- /**
300
- * Defines tooltip content and positioning for guiding user interactions.
301
- * Tooltip provides helpful instructions or descriptions for button actions, improving user experience.
302
- *
303
- * @default null
304
- * @type {TooltipSettingsModel}
305
- */
306
- tooltipSettings: TooltipSettingsModel;
307
- /**
308
- * Indicates whether the component is disabled.
309
- * When true, all interactions with the component (e.g., clicking, listening) are disabled.
310
- * Useful for preventing user interaction in specific states, such as during processing or error handling.
311
- *
312
- * @type {boolean}
313
- * @default false
314
- */
315
- disabled: boolean;
316
- /**
317
- * Specifies additional CSS classes for customizing the component's appearance.
318
- * Allows applying custom styles to match application requirements
319
- * This property can be used to extend the component's default style.
320
- *
321
- * @type {string}
322
- * @default ''
323
- */
324
- cssClass: string;
325
- /**
326
- * Allows additional HTML attributes to be added to the root element of the SpeechToText button.
327
- * This property accepts a key-value pair format for attributes such as name, aria-label, and others.
328
- * This helps to make the button more accessible and adaptable to specific requirements.
329
- *
330
- * @type {Object}
331
- * @default null
332
- */
333
- htmlAttributes: {
334
- [key: string]: string;
335
- };
336
- /**
337
- * Triggered when the SpeechToText component is initialized and ready for interaction.
338
- * This event indicates that the component is fully loaded and can start processing user input.
339
- * Use this event to execute initialization logic or show the component's ready state.
340
- *
341
- * @event created
342
- */
343
- created: EmitType<Event>;
344
- /**
345
- * Triggered when speech recognition begins listening for audio input.
346
- * This event fires when the user starts the speech-to-text process.
347
- * Use this event to execute logic or display feedback (e.g., a "Listening..." message).
348
- *
349
- * @param {StartListeningEventArgs} args - The event arguments containing the state and context information for the start of the listening process.
350
- * @event onStart
351
- */
352
- onStart: EmitType<StartListeningEventArgs>;
353
- /**
354
- * Triggered when speech recognition stops listening for audio input.
355
- * This event marks the end of the listening session, either due to user action or completion of recognition.
356
- * Use this event to trigger post-processing logic or indicate that listening has ended (e.g., show "Listening stopped").
357
- *
358
- * @param {StopListeningEventArgs} args - The event arguments containing the state and context information for the stop action.
359
- * @event onStop
360
- */
361
- onStop: EmitType<StopListeningEventArgs>;
362
- /**
363
- * Triggered when an error occurs during speech recognition or listening, this event provides details to handle exceptions, display messages, and troubleshoot issues like microphone failures, network errors, or unsupported browsers and language models.
364
- *
365
- * Common error strings may include:
366
- * - `no-speech`: No speech detected. Please speak into the microphone.
367
- * - `aborted`: Speech recognition was aborted.
368
- * - `audio-capture`: No microphone detected. Ensure your microphone is connected.
369
- * - `not-allowed`: Microphone access denied. Allow microphone permissions.
370
- * - `service-not-allowed`: Speech recognition service is not allowed in this context.
371
- * - `network`: Network error occurred. Check your internet connection.
372
- * - `unsupported-browser`: The browser does not support the SpeechRecognition API.
373
- *
374
- * In addition to handling common speech recognition errors, it is essential to handle unsupported browser errors. For example, if the browser does not support the `SpeechRecognition` API, the `unsupported-browser` error string will be triggered. This can help notify users to switch to a compatible browser.
375
- *
376
- * For more details on the error strings and how to handle them, refer to the documentation:
377
- * [SpeechRecognitionErrorEvent error](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionErrorEvent/error)
378
- *
379
- * @param {ErrorEventArgs} args - The event arguments containing the error details:
380
- * - `error`: The error string representing the specific issue that occurred.
381
- * - `message`: A brief message describing the error.
382
- * - `event`: The event object that triggered the error (contains details like the type of error event).
383
- *
384
- * @event onError
385
- */
386
- onError: EmitType<ErrorEventArgs>;
387
- /**
388
- * Triggered when the transcript is updated during the speech recognition process.
389
- * This event delivers updated text as the user speaks. It can be used to update the UI with real-time transcription.
390
- * The event provides both interim and final transcript results, depending on the configuration.
391
- *
392
- * @param {TranscriptChangedEventArgs} args - The event arguments containing the latest transcript text.
393
- * @event transcriptChanged
394
- */
395
- transcriptChanged: EmitType<TranscriptChangedEventArgs>;
396
- /**
397
- * Constructor for creating the component
398
- *
399
- * @param {SpeechToTextModel} options - Specifies the SpeechToTextModel model.
400
- * @param {string | HTMLElement} element - Specifies the element to render as component.
401
- * @private
402
- */
403
- constructor(options?: SpeechToTextModel, element?: string | HTMLElement);
404
- /**
405
- * Initialize the event handler
406
- *
407
- * @private
408
- * @returns {void}
409
- */
410
- protected preRender(): void;
411
- protected getDirective(): string;
412
- /**
413
- * To get component name.
414
- *
415
- * @returns {string} - It returns the current module name.
416
- * @private
417
- */
418
- getModuleName(): string;
419
- /**
420
- * Get the properties to be maintained in the persisted state.
421
- *
422
- * @private
423
- * @returns {string} - It returns the persisted data.
424
- */
425
- protected getPersistData(): string;
426
- protected render(): void;
427
- private recognition;
428
- private micOn;
429
- private buttonInst;
430
- private tooltipInst;
431
- private fullTranscript;
432
- private isClicked;
433
- private isUserInteracted;
434
- private hasStarted;
435
- private l10n;
436
- private initializeLocale;
437
- private renderSpeechToText;
438
- private updateAriaLabel;
439
- private updateCssClass;
440
- private updateButtonCssClass;
441
- private updateTooltip;
442
- private handleStateChange;
443
- private addHtmlAttributes;
444
- private removeHtmlAttributes;
445
- private wireEvents;
446
- private unWireEvents;
447
- private handleButtonClick;
448
- private triggerUnSupportedError;
449
- private initializeSpeechRecognition;
450
- private handleStartRecognition;
451
- private triggerUnSupportedStart;
452
- private startSpeechRecognition;
453
- private stopSpeechRecognition;
454
- private handleStopRecognition;
455
- private buttonSettingsChanges;
456
- private destroyAndNullify;
457
- /**
458
- * Destroy the SpeechToText.
459
- *
460
- * @returns {void}
461
- */
462
- destroy(): void;
463
- /**
464
- * Begins the audio capture process by listening to the user's microphone input.
465
- * This method initiates the speech-to-text process and continuously updates the `transcript` property with interim and final recognition results.
466
- *
467
- * @returns {void} No return value.
468
- */
469
- startListening(): void;
470
- /**
471
- * Stops the audio capture process and finalizes the speech recognition.
472
- * This method ends the ongoing speech-to-text operation and completes the recognition process, storing the final transcription.
473
- * It is typically called to stop listening when the user is finished speaking.
474
- *
475
- * @returns {void} No return value.
476
- */
477
- stopListening(): void;
478
- /**
479
- * Called if any of the property value is changed.
480
- *
481
- * @param {SpeechToTextModel} newProp - Specifies new properties
482
- * @param {SpeechToTextModel} oldProp - Specifies old properties
483
- * @returns {void}
484
- * @private
485
- */
486
- onPropertyChanged(newProp: SpeechToTextModel, oldProp?: SpeechToTextModel): void;
487
- }