Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanasandei/youtube-to-text

Speech to text for any YouTube video.
https://github.com/stefanasandei/youtube-to-text

ai api flask openai python server speech-to-text web-server whisper youtube youtube-dl

Last synced: 7 days ago
JSON representation

Speech to text for any YouTube video.

Awesome Lists containing this project

README

        

# YouTube to text

This is a web application that uses artificial intelligence to transcribe the speech from a YouTube video and store the text in a database.

![Screenshot](./res/images/screenshot.png)

## How it works

The user inputs the video url, and the server uses youtube-dl (yt_dlp) to query video information and to download only the audio, in the `./res/audio` folder. It also stores this information in a `sqlite3` database (`./res/videos.db`). After this it uses OpenAI's Whisper model to get the text from the audio, this processing is done asynchronously on a different thread.

## Libraries used

The third party python modules I used:
- flask
- yt_dlp
- whisper
- sqlalchemy

## License

[GPLv3](LICENSE) © [Stefan Asandei](https://www.stefan-asandei.cf)