Get transcript summaries of Web videos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 rivejä
880 B

  1. export type ProcessEvent = {
  2. processType: string,
  3. phase: string,
  4. command?: string,
  5. content?: string,
  6. contentType?: string,
  7. };
  8. export type ProcessEventCallback = (event: ProcessEvent) => void;
  9. export type ErrorEventCallback = (event: Error) => void;
  10. export interface SummarizerProcessParams {
  11. url: string;
  12. language?: string;
  13. country?: string;
  14. }
  15. export interface SummarizerEventEmitter extends NodeJS.EventEmitter {
  16. process<T extends SummarizerProcessParams>(params: T): void;
  17. on(eventType: 'process', callback: ProcessEventCallback): this;
  18. on(eventType: 'error', callback: ErrorEventCallback): this;
  19. on(eventType: 'end', callback: () => void): this;
  20. }
  21. export interface OpenAiParams {
  22. apiKey: string;
  23. organizationId?: string;
  24. model?: string;
  25. temperature?: number;
  26. }
  27. export interface CreateBaseSummarizerParams {
  28. openAiParams: OpenAiParams;
  29. }