To convert a plain text file to an mp3, use the espeak speech synthesizer and ffmpeg to save the audio as an mp3.
To convert a pdf to an mp3, use pdftotext.
Last updated 4 years ago