How To Download An Audiobook From Youtube
An cease-to-stop solution for downloading any YouTube video as an audiobook and listening to it on your phone. While keeping track of playback positions. Fifty-fifty during app restarts and organisation reboots. Readily bachelor as a Bash script on GitHub.
In the spirit of Sellotape technology, this article focuses on reusing existing components as much equally possible and provides stride-past-stride instructions of how to achieve the goal by
- Downloading a YouTube video as an audiobook
- Transferring the audiobook to a mobile device
- Leveraging an audiobook app that keeps rails of playback positions
For a concise footstep-by-footstep guide, meet also Listen to YouTube.
The Wisdom of Generations Betwixt Two Covers
I love books. And I very much respect books. With a substantial message.
It takes quite some fourth dimension and effort to write a book that carries a substantial bulletin. It's fairly like shooting fish in a barrel to combine some random words and make them bachelor to the globe (yes, this includes this blog too).
An old proverb has it that it's fairly piece of cake to write a all-time seller. All it takes is ane,000 monkeys and 1,000 typewriters. And 1,000 years. For the monkeys to randomly type away. The only problem is how to tell the all-time seller autonomously from the all other rubbish. And that'south only monkeys typing. Now, extrapolate that to humans.
So, how can we ensure quality control on a lengthier sequence of words between two covers?
In the finish, it'due south a rigorous scientific procedure of eliminating every possible logical error, error, or negligence in the content that sets random collections of words apart from what we regard as books.
Hence, while every care has been taken when writing this article, it all the same only is a blog post and not a volume. I haven't put this up for review withal. But you're on information technology. Prove me wrong, and I'll purchase you a pint!
It used to be the case that any gets published between ii covers had to undergo that rigorous scientific procedure before it was accounted to be worthy of striking the press press. And at that place was — and still — is a very expert reason for that.
Why Books (Even so) Affair
In that location's something books provide that is hard to get elsewhere when it comes to quality of in-depth publications.
Books come up with a guarantee. Someone wrote it. Someone else reviewed it. And someone else eventually printed and sold it. In this whole value chain, accountability matters. Become the content wrong and the consequences can reach from loss of reputation to loss of concern.
Only this accountability can too help build reputation and trust. Books were the visible effect available to the masses at the end of a very long thought procedure. A way for substantial messages to reach millions. All throughout history, ideas have been placed on printing presses for them to leave their marking on history.
Books also contain the combined noesis of millennia of homo thoughts, enquiry, or experience. From Sunday Tzu to Socrates and Taleb. Books are the predominant fashion of how we pass the combined knowledge from generation to generation. The medium that delivers books to us might slightly modify in the future but the concept of content with accountability still seems to accept some life left in it.
However, I personally discover that there'due south a slight problem with books. At to the lowest degree in the traditional sense of a long sequence of words between ii covers.
The Trouble of Reading Books
The problem is elementary.
Information technology starts with me. I should read more. I know that.
Later on all, I'm highly interested in an always growing number of books with a substantial bulletin. From direction and philosophy to finance. Yes, feel free to talk to me about a lot of things. Teach me something new and I'll buy you a pint!
Only the unpleasant truth is that those books just keep piling up on my desk as I struggle to find the fourth dimension to read them. Every weekend, I program on having a go at at least 1 of them. Every Sunday evening, I realise that I haven't even looked at a single one of them. Non adept. This keeps me impaired and unhappy. Particularly dumb.
I demand to make reading books part of my everyday life. In essence, I need a ameliorate way to scale reading books.
Sure, I could walk around reading a book, simply like many other people prefer to stare at their phones. All the same, there'southward a slight trouble with that approach as well.
For starters, it would limit my attention. Either to the surrounding or the book. The first one can have catastrophic consequences and event in a serious blow — London is a busy city after all. The second one tin issue in a half hearted understanding of the book at all-time. I don't really know what's worse. All I know is that I don't want either, to exist honest.
The more than pressing problem is that this arroyo still requires me to read the bodily book. And when thinking nearly it, there's not that much spare time in a twenty-four hour period to fully focus on reading a volume. So, I need another fashion.
A Scaleable Way of Reading Books
An honest assessment of my everyday life has shown me that I actually have plenty of spare time during the day to read books.
It's only that this spare time likes to hide behind other activities that actually don't require my full attending.
A simple example on a workday is my commute to and from work. I has go routine in a mere thing of days. I know the stations. I know the platforms. I know the times. I fifty-fifty know how to get a seat if I was upwardly for that. And information technology'southward not that I introduce a lot of variance into the remaining minutes of walking to my final destination either.
So, in essence, I can manage to get to and from work pretty on much autopilot. But this then allows me to keep my brain busy and feed it with other things in the concurrently. No, non reading books. Because of the thing with the accidents again. But there is another way.
In contempo years audiobooks take become quite popular and more than and more titles accept been release as audiobooks likewise. This is good news every bit audiobooks are a groovy way to scale the trouble of reading books.
I can now cruise to work on autopilot while reading a book. Technically, someone else is reading it to me. The means of transporting the bodily bulletin is slightly different just the book is still the same. Finally, I take a scalable solution to reading books.
Not bad. Job done?! Well, conceptionally, yes. Now, on to the details. For starters, where to get those audiobooks? I exercise tend to spend a lot of time commuting, afterwards all.
Audible?
There are groovy commercial offerings out at that place like Audible. They distribute and also produce an ever growing number of contemporary as well as classic audiobooks that can be purchased and listened to on mobile devices.
Audible too offers a free app for most platforms which allows to manage purchases and also remembers the playback position of each audiobook. Even through app restarts and arrangement reboots.
YouTube!
Still there's an fifty-fifty bigger source of audiobooks. And most of them are complimentary. You lot may take heard or fifty-fifty come across the service one time or twice before. YouTube.
From TED talks to audiobooks recorded past enthusiasts, YouTube is home to a big selection of great textile which is in the public domain.
All the same, YouTube is mainly a video streaming service. Which means at that place are 2 problems. Video. And Streaming.
It'south only been recently that videos can now be downloaded (rather than beingness forced to stream them) and watched without an active internet connection. Even with that in place, you are effectively still watching a video when listening to an audiobook. This can be a bit of a drain on screen as well as bombardment life.
And then, watching audiobooks on YouTube sort of works. But there has to be a meliorate style! And in that location is.
Downloading Audio from YouTube
Audiobooks practise not necessarily have to contain video; they tin can just exist regular Mp3 files. This makes them light on screen and battery life as well every bit universal to play back.
The first stride in combining public domain material readily available on YouTube with the benefits of audiobooks is to download the audio section of a YouTube video every bit an audiobook.
At the stop of this department, a new Mp3 file containing the audio section of a given YouTube link will exist stored as an audiobook on the local machine.
This is the first step in an end-to-end solution that also includes transferring the downloaded audiobook to a phone and leveraging an app that keeps track of playback positions during app restarts and even organization reboots.
YouTube2Audiobook
The repository https://github.com/dumrauf/youtube_to_audiobook contains a Bash script that downloads the audio section of a given YouTube link and converts it to an audiobook. The audiobook can then be used like whatever other Mp3 file.
You lot Have
Earlier yous can use the Bash script in the repository out of the box, you need
— youtube-dl which is a Python application that ships with a CLI and allows to download audio and video from YouTube (and "a few other sites" equally well) — FFmpeg which is "a complete, cross-platform solution to record, convert and stream audio and video" (from https://ffmpeg.org/) and also ships with a CLI
Most probable, y'all as well accept a YouTube link that you desire to convert to an audiobook.
Let's utilize the beneath YouTube video, bachelor at https://youtu.be/WRbalzuvms4, every bit an example throughout this commodity.
You Want
After running the Bash script in the repository you get an audiobook version of the input YouTube link stored on your device.
In the case of the above example, you get a new file called Render of Sherlock Holmes (version 2 Dramatic Reading) _ Sir Arthur Conan Doyle _ English language _ 1_6-WRbalzuvms4.mp3 which contains an audiobook version of YouTube link https://youtu.be/WRbalzuvms4. Note that the YouTube identifier WRbalzuvms4 is part of the file name; the concluding section before the file extension to be precise.
Execution
The stand-alone Fustigate script yt2ab.sh is located in the root folder of the repository.
Getting Started
At minimum, the Bash script yt2ab.sh requires a YouTube URL to be passed in via the -u parameter.
The higher up example YouTube link https://youtu.exist/WRbalzuvms4 can exist converted into an audiobook via
./yt2ab.sh -u https://youtu.be/WRbalzuvms4 The Fustigate script so carries out two steps. Information technology commencement downloads the audio section as well as a thumbnail of the given YouTube link using youtube-dl as shown below.
Depending on the size of the sound section in the given YouTube link and your connectedness speed, it may take several minutes before this step completes. Usually, this tends to be the quick part. And information technology's also the part where a quick connection really pays off.
Afterwards, the script so converts the downloaded audio section to a standard Mp3 file using FFmpeg as show beneath.
This ensures that the file tin can be easily played dorsum on most devices. Plus, this footstep also adds the previously downloaded thumbnail to the Mp3 file for easier recognition. Convenience can exist king.
Depending on the size of the audio section in the given YouTube link and the actual audio conversion speed of your machine, it may take several minutes before this footstep completes.
So, get yourself another loving cup of coffee or send the script to the background. However, the good news is that this is the last step and in one case complete, the Bash script successfully completes.
Advanced Use
Farther options are available via additional CLI parameters. The full list of currently bachelor parameters is
Usage : yt2ab.sh -u <youtube-url> -s [audio-speed] -q [audio-quality] -v (erbose) Instance: yt2ab.sh -u https://youtu.be/WRbalzuvms4 Example: yt2ab.sh -u https://youtu.be/WRbalzuvms4 -due south one.v Example: yt2ab.sh -u https://youtu.be/WRbalzuvms4 -south ane.5 -q 3 Example: yt2ab.sh -u https://youtu.be/WRbalzuvms4 -s 1.5 -q three -v Annotation: for sound quality see also column 'ffmpeg selection' on <https://trac.ffmpeg.org/wiki/Encode/MP3>; defaults to iv Decision-making Sound Speed
The audio_speed parameter allows to increase or subtract the speed of the resulting audiobook; defaults to one and hence leaves the sound speed unchanged.
This setting is particularly helpful when trying to normalise the original speed of the given YouTube link in the resulting audiobook. In that case, prepare the audio_speed then that original speed 10 audio_speed = 1, i.east., if the original speed of the YouTube link is ane.5, choosing a value of 2/three for audio_speed volition normalise the speed of the resulting audiobook as 1.v x 2/3 = 1.
However, the final audiobook may sound awkward as audio speed adjustments tin be a lossy process.
Controlling Audio Quality
The audio_quality parameter allows to gear up the quality of the resulting audiobook; defaults to 4. Here, the values are derived from column "ffmpeg option" in tabular array "LAME Bitrate Overview" on https://trac.ffmpeg.org/wiki/Encode/MP3.
Controlling Verbosity
The v(erbose) parameter increases the verbosity of the script and tin can be used for debugging purposes.
FAQs
Below is a listing of frequently asked questions.
I Know How to Brand This Amend!
Excellent. Feel free to fork the repository, make the changes in your fork, and open a pull asking so nosotros can make things improve for everyone. Thank you!
Transferring the Audiobook to a Mobile
At this point, the audiobook version of YouTube link https://youtu.be/WRbalzuvms4 is stored on the local machine. The Mp3 file still needs to exist transferred to a mobile device where it can be listened to in an audiobook app that keeps rails of playback positions. Fifty-fifty during app restarts and organization reboots.
This section focuses on transferring the audiobook to a mobile device, using the solution described in commodity "Transfer Files to Your Mobile By Scanning a QR Code".
Web-Serve-This-Directory
The repository https://github.com/dumrauf/web_serve_this_directory contains a Bash script that starts a Python spider web server with the current directory at its root.
In case
qrencodecan exist detected, a QR lawmaking with the URL of the web server is also created. When scanning the QR code on a phone or tablet continued to the same network, it allows instant access to the local machine. This tin salve a lot of typing.
Starting the Web Server
The stand-alone Fustigate script web-serve-this-directory.sh is located in the root binder of the repository. The directory containing the audiobook tin can exist served over HTTP on port 8000 via
./web-serve-this-directory.sh -p 8000 In case the local IP address is 192.168.1.176, this will start the web server and produce beneath output.
Note that since qr_encode could exist detected, a QR lawmaking has been generated and can be accessed on http://192.168.one.176:8000/webserver_url.jpg.
Accessing the Web Server
The URL of the spider web server is displayed on the first line of the terminal output; in the higher up instance, the URL is http://192.168.1.176:8000/. Re-create-and-pasting the URL into a browser of option or clicking the URL in the terminal, should open up a page like the one below.
In case qr_encode could exist detected, a QR code has been generated and placed as file webserver_url.jpg on the web server. In instance no QR code is available, the URL needs to be manually entered on the mobile. Clicking on file webserver_url.jpg displays the QR code equally shown beneath.
Scanning the QR code on a mobile with a suitable app opens the same page on a mobile browser as shown below.
Unsurprisingly, the directory list on the mobile is identical to the directory listing displayed on the local motorcar. This now allows to download file Return of Sherlock Holmes (version 2 Dramatic Reading) _ Sir Arthur Conan Doyle _ English _ 1_6-WRbalzuvms4.mp3 to the mobile by borer on the file for a longer time until the card shown below appears.
Selecting Download link will start the download. Depending on the size of the file and your connexion speed, transferring the file can take several seconds or minutes to complete.
Stopping the Web Server
In one case the file transfer has successfully completed, the web server on the local machine can exist stopped by pressing Ctrl-C; this is standard Python web server behaviour.
Leveraging an Audiobook App
At this point, the audiobook version of YouTube link https://youtu.be/WRbalzuvms4 is stored on the local auto and likewise transferred to a mobile. The Mp3 file yet needs to be used in an audiobook app that keeps rails of playback positions. Even during app restarts and system reboots.
An App That Keeps Track of Playback Positions
When using the default browser settings, file Render of Sherlock Holmes (version two Dramatic Reading) _ Sir Arthur Conan Doyle _ English _ 1_6-WRbalzuvms4.mp3 should now exist located in the default Download folder at /root/sdcard/Download which is also accessible via the Downloads app.
Mutual music apps should pick up the file and exist able to play it back just like any other Mp3 file. Still, I found these apps to exist better suited for streaming or playing music as hardly any of them retrieve playback positions.
And especially with audiobooks, keeping rails of playback positions matters. At that place has to be an app for that…!
Elementary Audio Book Player Free
Fortunately, there is an app which is up to the job at paw. Elementary Audio Volume Player Free does what is says on the tin. It plays audiobooks and it'southward complimentary.
Best of all, it remembers the playback position of every audiobook. This ways that it'due south possible to continuously listen to multiple audiobooks fifty-fifty when jumping back and forth betwixt them. Plus, I have to say that I really like the simplistic and clean design.
The app focuses on a single folder that tin exist selected past tapping the iv confined icon in the middle of the second row, between the -ten and +10 seconds buttons.
When navigating the underlying binder selector dialogue to the Download binder at /root/sdcard/Download, it should selection upward file Return of Sherlock Holmes (version two Dramatic Reading) _ Sir Arthur Conan Doyle _ English language _ 1_6-WRbalzuvms4.mp3 equally displayed above.
Happy listening!
Conclusion
The higher up end-to-terminate solution solves my trouble of reading books at calibration by carefully Sellotaping together two Bash scripts and leveraging a free audiobook player app.
While this works for me, it may be different in your case. Feel free to get out a comment or contribute to the Git repositories YouTube2Audiobook and Web-Serve-This-Directory, so we tin can make things meliorate for anybody. Thanks!
Disclaimer
Past using the software in this article or following any of its suggestions, you lot hold to always respect the copyright laws in your country and all other jurisdictions that may use.
Moreover, you too concur to e'er respect the Terms of Service of the provider you are downloading content from. The author of this article or software is in no mode responsible for whatever potential amercement, liabilities, or losses.
DOWNLOAD HERE
Posted by: floresbeeldrer.blogspot.com

0 Comments