Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/stefanasandei/youtube-to-text
- Owner: stefanasandei
- License: gpl-3.0
- Created: 2023-01-07T13:32:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T13:50:11.000Z (about 2 years ago)
- Last Synced: 2024-11-09T13:17:35.525Z (2 months ago)
- Topics: ai, api, flask, openai, python, server, speech-to-text, web-server, whisper, youtube, youtube-dl
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)