speech-to-element
Version:
Add real-time speech to text functionality into your website with no effort
11 lines (10 loc) • 467 B
TypeScript
import { TextColor } from '../types/options';
import { Speech } from '../speech';
export declare class Elements {
static isPrimitiveElement(element: Element): boolean;
static createInterimSpan(): HTMLSpanElement;
static createGenericSpan(): HTMLSpanElement;
static appendSpans(speech: Speech, element: HTMLElement): void;
static applyCustomColors(speech: Speech, color: TextColor): void;
static isInsideShadowDOM(element: Element): boolean;
}