Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
325 stars 143 forks source link

Add support for downloading transcripts #242

Closed jaredsburrows closed 1 year ago

jaredsburrows commented 1 year ago

Add support for downloading transcripts

Hexer10 commented 1 year ago

If by transcript you mean downloading the closed captions and translate them it is already possible:

  final manifest = await yt.videos.closedCaptions
      .getManifest(videoId);
  final trackInfo = manifest
      .getByLanguage('en', autoGenerated: true) // Get the autogenerated en track
      .first
      .autoTranslate('it'); // Translateto italian

  final track = await yt.videos.closedCaptions.get(trackInfo);

please reopen if I got this wrong.