cd dataset | |
#!/bin/bash | |
# Loop through all .caf files in the current directory | |
for file in *.caf; do | |
# Extract the base name of the file (without extension) | |
base="${file%.*}" | |
# Convert .caf to .wav using ffmpeg | |
ffmpeg -i "$file" "${base}.wav" | |
done | |