Join multiple wave files with Termux

by P. Andreas Schmidt, IVE

Version 1 (June 13, 2023)

Download (30 downloads)

I came up with this concretely because the speak blocks have 4000 char limit, which means in some cases you could end up having to output to more than one audio file but you want one. With the ffmpeg command in Termux you can join several wave files.
So this is an example that does not do any setup for you. For it to work, you will first need to:
-install Termux
-update all packages and install ffmpeg
-give Termux permission to access storage files

You can either run the command directly, check this flow out for this: https://llamalab.com/automate/community/flows/41995 (on how to setup everything to work that way, don't forget to grant Automate the permission to execute commands in Termux, in the app systems settings)
Or else you can install the Tasker plugin, set it up, create a script containing the ffmpeg command (see args variable for arguments), add the plugin block with name of the script. This has the advantage that you can run it with phone locked/screen off.

If you don't know (how to install/run) Termux, read some instructions on the internet.

Then adapt either the flow or your system: it's setup to save the files in a Automate folder in your Download folder. So either create that folder first or change basically all the blocks to whatever other folder. You can also change what the wave files should say, of course. As per the arguments passed on, the output file will be overwritten.

Hope this helps others.

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.