UNPKG

@diffusionstudio/core-v4

Version:

2D motion graphics and video rendering engine

40 lines (39 loc) 1.01 kB
import { Timestamp } from '../timestamp'; export declare class Word { /** * A unique identifier for the word */ id: `${string}-${string}-${string}-${string}-${string}`; /** * Defines the text to be displayed */ text: string; /** * Defines the time stamp at * which the text is spoken */ start: Timestamp; /** * Defines the time stamp at * which the text was spoken */ stop: Timestamp; /** * Defines the confidence of * the predicition */ confidence?: number; /** * Create a new Word object * @param text The string contents of the word * @param start Start in **milliseconds** * @param stop Stop in **milliseconds** * @param confidence Predicition confidence */ constructor(text: string, start: number, stop: number, confidence?: number); /** * Defines the time between start * and stop returned as a timestamp */ get duration(): Timestamp; }