ai-youtube-transcript
Version:
Fetch and process transcripts from YouTube videos with support for multiple languages, translation, and formatting
26 lines (25 loc) • 759 B
TypeScript
import { Formatter } from './formatter';
import { FetchedTranscript } from '../models/transcript';
/**
* Formats transcripts in SRT (SubRip) format
*/
export declare class SRTFormatter implements Formatter {
/**
* Format a single transcript in SRT format
*
* @param transcript - The transcript to format
*/
formatTranscript(transcript: FetchedTranscript): string;
/**
* Format multiple transcripts in SRT format
*
* @param transcripts - The transcripts to format
*/
formatTranscripts(transcripts: FetchedTranscript[]): string;
/**
* Format a time value in SRT format (HH:MM:SS,mmm)
*
* @param seconds - The time in seconds
*/
private formatTime;
}