From Newsgroup: comp.mobile.android
Tutorial:
Convert any ebook or text to audiobook spoken English on Windows
and copy to your mobile device to play that audiobook for hours
I've been undergoing many days of hyperbaric oxygen therapy
where it's rather boring being in a sealed pressurized chamber.
<
https://i.postimg.cc/Lsjs3tj8/hyperbaric01.jpg> hyperbaric chamber
The hyperbaric clinic will allow you to connect your mobile device
but it has to remain outside the hyperbaric chamber so they have to
be able to operate the controls (essentially, hit a button to play).
I generally only listen to documentaries so I came up with an idea.
Why not just create my own "audiobook" from any book out there?
That turned out to be so easy, that I wrote this up to help others
at the clinic who also might want to convert an ebook to an audiobook.
This is the basic process:
a. Obtain an ebook on Windows
b. Convert that ebook to an audiobook on Windows
c. Copy the audiobook to your mobile device
d. Connect the mobile device using the hyperbaric chamber dongle
e. Set up the audio player so the clinic staff can hit the play button
For others to benefit from everything I do (which is how I'm wired),
here is a quick log of the specific steps I used for this process.
1. Obtain any desired (large) file of any format & roughly of a book size
2. If needed, on Windows, convert that (large) file to a suitable format
3. If needed, on Windows, edit the file to remove extraneous pages
4. On Windows, convert that (large) text file to a (large) audio file
5. Copy that (large) audio file from Windows to your mobile device
6. Play that (large) audio file on your mobile device
It takes all of a few minutes using the freeware I used below:
1. Obtain any desired (large) file of any format & roughly of a book size
<
https://standardebooks.org/>
<
https://www.ilovephd.com/60-legal-websites-to-download-millions-of-free-books-in-2025/>
<
https://www.howtogeek.com/these-are-the-best-sites-for-drm-free-ebooks-and-comics/>
2. Use Windows Calibre to convert your (large) input book file to TXT or DOCX.
3. Many may opt to use Microsoft Word (or Notepad++) to edit the TXT or DOCX.
4. Use Windows Balabolka to export as an audio file using any preferred voice.
5. Copy the (large) audio file to Android over USB (where iOS is constrained).
6. Play that (large) audio file on your mobile device using VLC freeware
Here are the steps in more detail (sufficient for others to reproduce)
1. I started with this EPUB file (which I converted to an M4A file for iOS).
"Relativity : the Special and General Theory by Albert Einstein"
That book explains Einsteinos theories in accessible language.
<
https://www.gutenberg.org/ebooks/5001>
<
https://www.gutenberg.org/ebooks/5001.epub.noimages>
Name: pg5001.epub
Size: 181564 bytes (177 KiB)
SHA256: 07D0F0F8CD9D3AC3CBE251F2CA4DAAF11183E3C755001B80A729EC310074AE6B
2. I opened it into Windows Calibre & converted the EPUB format to text
Calibre input formats:
EPUB (.epub), MOBI (.mobi), AZW, AZW3, AZW4 (Amazon Kindle formats),
PDF (.pdf), DOCX (.docx), RTF (.rtf), TXT (.txt), ODT,
HTML/XHTML (.html, .htm), CBZ/CBR (Comic book formats)
Calibre output formats:
EPUB, MOBI, AZW3, PDF, DOCX, RTF, TXT, HTML, LRF (Sony Reader),
ZIP (for packaging HTML or TXT), FB2 (FictionBook).
3. Using Windows GVim, I edited out table of contents, bibliography, etc.
4. Using Windows Balabolka I converted the (large) text into (large) audio.
Balabolka can read & process:
TXT (.txt), DOCX (.docx), RTF (.rtf), PDF (.pdf) with some limitations
HTML/HTM (.html, .htm), FB2 (.fb2), ODT (.odt), LIT (.lit), CHM (.chm),
EPUB (.epub) - Only partially supported; better to convert to TXT or DOCX
Balabolka can output spoken text as:
MP3 (.mp3), WAV (.wav), OGG (.ogg), WMA (.wma),
MP4 (.mp4) Only for video with subtitles, not standard audio output
When paired with ffmpeg in the Balabolka setup, Balabolka can output:
M4A (.m4a), M4B (.m4b), AAC (.aac), FLAC (.flac), ALAC (.alac),
AIFF (.aiff), Opus (.opus), PCM (.pcm), CAF (.caf), AU (.au),
AC3 (.ac3), MP2 (.mp2)
5. To copy the resulting large file to Android you just connect by USB.
For iOS, it's much harder, where you can't just easily copy over USB.
First I tried LocalSend but it failed so I won't go into those details.
Then I used VLC & it worked perfectly to transfer the file to iOS
using the Wi-Fi local-LAN capability of VLC to copy files into iOS.
6. To play the (large) audiobook, I used VLC on both platforms.
The technicians at the clinic only needed to press the VLC "play" button.
Here is the free software I used (EPUB players are added for completeness).
(I try to never suggest software that isn't free or that delivers ads!)
Windows:
Calibre EPUB reader & converter (FOSS)
<
https://calibre-ebook.com/>
Balabolka text reader & audiobook creator (freeware, but not FOSS)
<
https://www.cross-plus-a.com/balabolka.htm>
Ffmpeg audio conversion tool (FOSS)
<
https://ffmpeg.org/download.html>
Android:
Voice Audiobook Player FOSS adfree (FOSS)
<
https://play.google.com/store/apps/details?id=de.ph1b.audiobook>
Smart AudioBook Player free adfree (free, but proprietary software)
<
https://play.google.com/store/apps/details?id=ak.alizandro.smartaudiobookplayer>
iOS :
BookPlayer audio player by Gianni Carlo (FOSS)
<
https://apps.apple.com/app/id1138219998>
Everlisten++ audio player by Tomoyoshi Natsui (free, but proprietary software)
<
https://apps.apple.com/app/id1116483197>
Here is the Calibre conversion sequence from EPUB to either TXT or DOCX:
1. Launch Calibre on Windows.
2. Click "Add books" to import your EPUB file into the Calibre library.
3. Select the imported book in the Calibre list.
Relativity _ the Special and Ge - Albert Einstein.epub (178KB)
4. Click "Convert books" in the top toolbar.
5. In the conversion window, set "Output format" to "TXT" in the top right corner. (or set the output to docx if you want to edit in Microsoft Word)
6. Optionally adjust metadata, layout, or remove images under the various tabs.
7. Click "OK" to start the conversion.
8. When finished, right-click the book in the Calibre list & choose
"Open Book Folder" (or "Open containing folder").
9. Locate the newly created TXT file in the folder for use in Balabolka.
Calibre named the 1,848-line text file based on its metadata:
"Relativity _ the Special and Ge - Albert Einstein.txt" (201KB)
Here is the Balabolka conversion sequence:
1. Launch Balabolka on Windows.
2. Click "File" > "Open" to select your TXT or DOCX file.
"Relativity _ the Special and Ge - Albert Einstein.txt" (201KB)
3. Review the text in the main window. You can edit it if needed.
4. Choose your preferred voice:
Click "Voice" > "Select Voice" (Windows comes with voices)
Pick from installed SAPI5 voices or Windows system voices
5. Adjust speech settings if desired:
Click "Voice" > "Settings"
Modify speed, pitch, & volume
6. To export audio:
Click "File" > "Save Audio File"
Choose an audiobook format (MP3, WAV, OGG, M4A, M4B, WAV, etc.)
If you have FFmpeg installed, you can also choose M4A or M4B
How to get FFmpeg for Windows:
a. Go to the official FFmpeg website:
https://ffmpeg.org/download.html
b. Under "Windows", click the link to the recommended build
(usually
https://www.gyan.dev/ffmpeg/builds/)
c. Download the "release full" ZIP package
d. Extract the ZIP file to a folder on your computer
e. Inside the extracted folder, locate the ffmpeg.exe file
(usually it will be found in the "bin" subfolder)
How to point Balabolka to FFmpeg:
a. Launch Balabolka on Windows
b. Click "Options" > "Audio File Options"
c. In the dialog box, check "Use external program for audio conversion"
d. Click the "Browse" button & select the ffmpeg.exe file you downloaded
e. Choose an output format & adjust encoding settings if needed
f. Click "OK" to save your settings
g. Balbolka can now export audio using FFmpeg-supported formats.
7. Set filename & destination & wait for the beep to indicate it finished.
Mine took about two minutes to convert.
The default name based on the metadata is:
Name: Relativity _ the Special and Ge - Albert Einstein.m4b
Size: 36100654 bytes (34 MiB)
SHA256: 67A92B6476F050FB3D9B16A6ABE326A9E229BF1AF1199260019C9F4FAB671A25
Here's how I transferred that audiobook file from Windows to Android:
1. Connect Android to Windows over USB
2. Click on the Android icon that shows up & pick a destination
3. Slide the (large) file over from Windows to that Android destination
To transfer any (large) non-camera file from Windows to an iOS
device is miserable compared to how trivial it is to do on Android.
1. Make sure both your iOS device & Windows are on your local LAN.
2. Install VLC for Mobile freeware from the iOS App Store
<
https://apps.apple.com/app/id650377962>
3. Start VLC & tap the VLC cone icon in the top left corner
to open the side menu & tap "Sharing via WiFi" to enable
the WiFi transfer feature.
4. Note the IP address shown (for example,
http://192.168.0.2).
5. On your Windows computer, open a browser & enter
the IP address shown in VLC.
6. The VLC web interface will appear.
Drag & drop your (large) audio file into the upload area.
7. Wait for the file to finish uploading.
It will appear in the VLC media library on your iOS device.
8. On your iOS device, tap the audiobook file in VLC to begin playback.
In summary, these simple cross-platform steps should work for you too:
1. Get the book <
https://standardebooks.org/>
2. Convert format [Calibre ==> EPUB > TXT or DOCX]
3. Remove non-narrative sections [GVim, Word, Notepad++]
4. Generate audio [Balabolka + FFmpeg]
5. Transfer to mobile device [USB (Android), VLC Wi-Fi (iOS)]
6. Playback [VLC, BookPlayer, Smart AudioBook Player]
I'm sure there are other ways to obtain, convert, copy & play
books on your mobile device, so please improve with how you do it.
NOTE:
A "technicality" is the clinic only has an HDMI-to-mobile-device adaptor connecting to your power port (either USB-C or Lightning); nothing else.
--- Synchronet 3.21a-Linux NewsLink 1.2