21 |
22 |
Usage
23 |
General usage is to select the input or textarea fields that you would like to enable speech to text on.
24 |
$("input, textarea").speechToText();
25 |
26 |
Options
27 |
You may pass a class name in the options parameter which will be used to reset any custom CSS you have applied to input fields. This is used to avoid strange effects on the speech button on textareas.
28 |
$("textarea").speechToText({inputResetClass:"input-reset-class"});
29 |
30 |
31 |
32 |
Example
33 |
56 |
57 |