36. Use a combination of FFMPEG and String Manipulation. Change into the folder where your mp3's are located: cd mp3folder. One example is to use a simple "for" loop: for file in *.mp3 do ffmpeg -i "$ {file}" "$ {file/%mp3/ogg}" done. The double quotes prevent spaces in the filenames being treated as 'newlines'.
How to convert PDFs to mp3 files in Linux. To convert a PDF document (Portable document format) to an MP3 audio file in Linux, you can use the command line utility pdftotext to extract the text from the PDF file, and then use a text-to-speech software or service to generate an audio file. Here’s a general process you could follow:
Depending on the initial format of the mp3, you may need two separate commands. First convert your existing audio file to the mandatory input format: ffmpeg -i file.mp3 -ar 16000 -ac 1 file.wav. The run pocketsphinx. pocketsphinx_continuous -infile file.wav 2> pocketsphinx.log > myspeech.txt.
Basic command: ffmpeg -i filename.mp4 filename.mp3. Find out the more options of this command with man page. (man ffmpeg) ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3. A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams. By Script:
For any version. I found a neat way to do this with mplayer. This script will rename the files to remove all blank spaces in the names of the files and will recursively convert all .wma files in the current directory to .mp3:
To do so, run the following command: 1. ./AAXtoMP3 . The token has to be replaced with the authcode (“activation_bytes”), which we have just read via audible-activator. The token must be replaced by the path to the aax file. The rest is done by the tool.
eSpeak is a command line tool for Linux that converts text to speech. This compact speech synthesizer provides support for English and many other languages. It is written in C. eSpeak reads the text from the standard input or input file. The voice generated, however, is nowhere close to a human voice. But it is still a compact and handy tool if
Bytescribe WavPlayer. These may be used to convert the audio into an open format, such as WAV. From there you can convert into your desired formats using ffmpeg or similar. Some of these might run on Linux using the WINE compatibility layer. There is at least positive reports for DSS Player Lite.
Y3rJc.