@ng-web-apis/speech
Version:
A library for using Web Speech API with Angular
20 lines (19 loc) • 1.16 kB
TypeScript
import type { OnChanges } from '@angular/core';
import { EventEmitter } from '@angular/core';
import * as i0 from "@angular/core";
export declare class WaTextToSpeech implements OnChanges {
private readonly speechSynthesisRef;
paused: boolean;
readonly onerror: EventEmitter<SpeechSynthesisErrorEvent>;
readonly onend: EventEmitter<SpeechSynthesisEvent>;
readonly onmark: EventEmitter<SpeechSynthesisEvent>;
readonly onboundary: EventEmitter<SpeechSynthesisEvent>;
set waTextToSpeech(utterance: SpeechSynthesisUtterance);
ngOnChanges(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<WaTextToSpeech, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaTextToSpeech, "[waTextToSpeech]", never, { "paused": { "alias": "waTextToSpeechPaused"; "required": false; }; "waTextToSpeech": { "alias": "waTextToSpeech"; "required": false; }; }, { "onerror": "waTextToSpeechError"; "onend": "waTextToSpeechEnd"; "onmark": "waTextToSpeechMark"; "onboundary": "waTextToSpeechBoundary"; }, never, never, true, never>;
}
/**
* @deprecated: use {@link WaTextToSpeech}
*/
export declare const TextToSpeechDirective: typeof WaTextToSpeech;