ai-youtube-transcript
Version:
Fetch and process transcripts from YouTube videos with support for multiple languages, translation, and formatting
20 lines (19 loc) • 598 B
TypeScript
import { Formatter } from './formatter';
import { FetchedTranscript } from '../models/transcript';
/**
* Formats transcripts as plain text
*/
export declare class TextFormatter implements Formatter {
/**
* Format a single transcript as plain text
*
* @param transcript - The transcript to format
*/
formatTranscript(transcript: FetchedTranscript): string;
/**
* Format multiple transcripts as plain text
*
* @param transcripts - The transcripts to format
*/
formatTranscripts(transcripts: FetchedTranscript[]): string;
}