ai-youtube-transcript
Version:
Fetch and process transcripts from YouTube videos with support for multiple languages, translation, and formatting
22 lines (21 loc) • 706 B
TypeScript
import { Formatter } from './formatter';
import { FetchedTranscript } from '../models/transcript';
/**
* Formats transcripts as JSON
*/
export declare class JSONFormatter implements Formatter {
/**
* Format a single transcript as JSON
*
* @param transcript - The transcript to format
* @param options - JSON.stringify options
*/
formatTranscript(transcript: FetchedTranscript, options?: any): string;
/**
* Format multiple transcripts as JSON
*
* @param transcripts - The transcripts to format
* @param options - JSON.stringify options
*/
formatTranscripts(transcripts: FetchedTranscript[], options?: any): string;
}