Code Monkey home page Code Monkey logo

pptr_m3u8's Introduction

Not all companies provide complete transcribed text of their annual general meetings. Use Puppeteer to scrape m3u8 playlists from annual general meeting webcasts, and then download the audio with yt-dlp. Lastly, transcribe the audio using whisper.cpp.

Tested against the most commonly used webcast/streaming service providers used by larger companies in Australia.

prerequisites

Install yt-dlp, ffmpeg, and whisper.cpp.

how to use

Place the annual general meetings you want to download and transcribe in urls.csv.

  1. npm install
  2. npm start to run the scraping/audio download process
  3. alternatively, run ./process_playlist_audio.sh to scrape, download the audio, and transcribe with whisper.cpp.

Playlist scraping and audio downloads can both be configured to run in batches of N size - currently we run batches of 2 for both, but this can be changed by updating the second param in chunkArray (see implementation in lib/utils.ts):

    // playlist.ts
    const agmBatches: AGM[][] = chunkArray(agms, 2);
    for (const agmBatch of agmBatches) {
        await processBatch(agmBatch, getM3U8Playlist);
    }

    const chunklistAGMs: AGM[] = Array.from(chunklistSet);
    const urlBatches: AGM[][] = chunkArray(chunklistAGMs, 2);
    for (const urlBatch of urlBatches) {
        await processBatch(urlBatch, downloadPlaylistAudio);
    }

Downloaded audio files will be output to an audio dir. Transcribed audio files will also be output to the same audio dir.

to do

  • use whisper with mlx
  • vectordb for whisper output
  • llm to search/summarize whisper output?
  • performance bottlenecks: some of the AGMs can take awhile to download. whisper can also take time to transcribe. speed up if/where possible.

pptr_m3u8's People

Contributors

0v00 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.