Awdible is a free and open-source software, app and python package that allows you to download music from youtube and convert it to mp3.
The idea is to provide a free version of audible.
- Download music / audiobook from youtube
- Convert music / audiobook to mp3 / wave / flac (...) need ffmpeg installed
- Automaticly crop a long audio file to a specific duration ie 60 minutes
- Find music / audiobook from a list of songs / audiobook names : Waka Waka, Happy, Harry potter and the philosopher's stone, (...) need specific api keys
- Add specfic context about a file such as live, album, or title
Using regular pip and venv tools :
python3 -m venv .venv
source .venv/bin/activate
pip install awdible
Please note that you should to have ffmpeg installed on your system to use certain features of Awdible.
On Ubuntu, Debian, Linux Mint (...) you can install it with the following command :
sudo apt update
sudo apt install ffmpeg -y
On fedora, Red Hat, CentOS (...) you can install it with the following command :
sudo dnf install ffmpeg
On MacOs, you can install it with the following command :
brew install ffmpeg
Please check that the ffmpeg command is available in your terminal.
ffmpeg -version
If you have any issues with ffmpeg, please visit the ffmpeg website.
It is possible not to have ffmpeg installed but in such case, you will not be able to convert the downloaded files to mp3, wave, flac, etc.
Some features of Awdible require external api keys, specially the -s
option.
you must have a set up your youtube rapid api account.
You need to add in your environment variables or export directly from a terminal the following :
export RAPID_API_KEY="*********"
export RAPID_API_HOST="youtube-data8.p.rapidapi.com"
Last but not least, Please not that a valid internet connection is required to use Awdible
.
Standard usage, download and convert to mp3 :
awdible [youtube-url]
Specify a destination folder :
awdible -d my/dest [youtube-url]
Specify a file list song / audibooks urls and specify destination folder :
awdible -f my_file.txt -d my/dest
The my_file.txt file must contain one youtube url per line. my_file.txt example :
https://www.youtube.com/watch?v=3y5A4paFOb4
https://www.youtube.com/watch?v=3y5A4paFOb4
https://www.youtube.com/watch?v=3y5A4paFOb4
Specify a file list song / audibooks ids and specify destination folder :
awdible -f my_file.txt -d my/dest -p
The my_file.txt file must contain one youtube id per line. my_file.txt example :
3y5A4paFOb4
3y5A4paFOb4
3y5A4paFOb4
Specify a file list song / audiooks names (not just yourube url) and specify destination folder :
awdible -f my_file.txt -s -d my/dest
The my_file.txt file must contain one youtube id per line. my_file.txt example :
waka waka shakira
Stand by me
Somewhere over the rainbow
Please note that for the -s
option, you must have a set up your youtube rapid api account.
You need to add in your environment variables or export directly from a terminal the following :
export RAPID_API_KEY="*********"
export RAPID_API_HOST="youtube-data8.p.rapidapi.com"
from awdible import Awdible
url = "https://www.youtube.com/watch?v=3y5A4paFOb4"
awdible = Awdible(url)
awdible.run()
# or
urls = [
"https://www.youtube.com/watch?v=3y5A4paFOb4",
"https://www.youtube.com/watch?v=3y5A4paFOb4",
"https://www.youtube.com/watch?v=3y5A4paFOb4"
]
awdible = Awdible(urls)
awdible.run()
Launch local streamlit :
awdible gui
The on line web app is temporarily unavailable.
It will be available in the 0.3.0
release.
Please visit Documentation page.
Please visit the :
Awdible is an open-source project and we are always looking for more people to contribute to its development.
It could be by adding new features, fixing bugs, improving the documentation, or any other way you see fit.
Any help is welcome, and we will do our best to help you get started.
Any feedback is also welcome.
Please visit Contributing page.