UNPKG

scrptly

Version:

Scrptly is a Video Development Kit (VDK) for programmatically generating AI-powered videos.

20 lines (19 loc) 765 B
import AuditoryLayer, { AuditoryLayerProperties, AuditoryLayerSettings } from './AuditoryLayer.js'; export type TTSLayerSettings = AuditoryLayerSettings & { voice?: string | "default"; model: string; modelSettings?: any; cache?: boolean; }; export type TTSLayerProperties = AuditoryLayerProperties; export default class TTSLayer extends AuditoryLayer { static type: string; settings: TTSLayerSettings; properties: TTSLayerProperties; constructor(parent: any, properties: TTSLayerProperties | undefined, settings: TTSLayerSettings); static get defaultSettings(): Partial<TTSLayerSettings>; static get defaultProperties(): Partial<TTSLayerProperties>; say(text: string, settings?: { wait?: boolean; }): this; }