tta files are a file format characterized by combining multiple music tracks into one, operating as a single playlist file. Since devices that can play tta files are limited, if you want to play on a smartphone or share with friends, you need to convert to more common audio formats such as mp3 or wav.
To convert tta files to wav files, execute the following command as an example:
ffmpeg -i "music.tta" "${i%.tta}.wav"
For command execution, on Linux, execute as is; on Windows 10, install Windows Subsystem Linux (WSL) to enable Linux command execution, then execute the command. Iโve written a detailed article about WSL. Please use the search function on this blog.
The following example converts all tta files in the folder:
for i in *.tta; do
ffmpeg -i "$i" "${i%.tta}.wav"
done
The following example recursively converts all .tta files from folders below the current folder hierarchy:
tmpIFS=$IFS ; IFS='
' ; for i in $( command find "." -type f | ag tta ) ;
do
ffmpeg -i "$i" "${i%.tta}.wav"
done ; IFS=$tmpIFS