Tu peux te contenter de la commande
ffmpeg -stats -y -hide_banner -f pulse -i $sink -map_metadata -1 -metadata copyright="Bibi" -qscale:a 2 -af loudnorm=I=-14:LRA=11:TP=-1 Nom_Du_Fichier
avec Nom_Du_Fichier valant toto.mp3 ou mieux toto.aac (successeur de mp3) ou toto.ogg, ffmpeg se débrouille avec ce qu’il a