dictate-button
Version:
Customizable Web Component that adds speech-to-text dictation capabilities to text fields
21 lines (20 loc) • 719 B
TypeScript
/**
* Options for the dictate button injection.
*/
export interface InjectDictateButtonOptions {
/** Size of the button in pixels; defaults to 30 */
buttonSize?: number;
/** Whether to log events to console */
verbose?: boolean;
/** Optional custom API endpoint */
customApiEndpoint?: string;
}
/**
* Inject the dictate-button component to text fields.
*
* Optionally log button events to the console (verbose mode).
*
* @param {string} textFieldSelector - CSS selector for text fields to enhance
* @param {InjectDictateButtonOptions} options - Configuration options
*/
export declare function injectDictateButton(textFieldSelector: string, options?: InjectDictateButtonOptions): void;