Among piranhas, sound production is known in carnivorous species, whereas herbivorous species were thought to be mute. Given that these carnivorous sonic species have a complex sonic apparatus, we hypothesize that intermediate forms could be found in other serrasalmid species. The results highlight the evolutionary transition from a simple sound-producing mechanism without specialized sonic structures to a sonic mechanism involving large, fast-contracting sonic muscles. Hypaxial muscles in basal herbivores primarily serve locomotion, but some fibres cause sound production during swimming accelerations, meaning that these muscles have gained a dual function. Sound production therefore seems to have been acquired through exaptation, i.e. the development of a new function (sound production) in existing structures initially shaped for a different purpose (locomotion). In more derived species (Catoprion and Pygopristis), some fibres are distinguishable from typical hypaxial muscles and insert directly on the swimbladder. At this stage, the primary function (locomotion) is lost in favour of the secondary function (sound production). In the last stage, the muscles and insertion sites are larger and the innervation involves more spinal nerves, improving calling abilities. In serrasalmids, the evolution of acoustic communication is characterized initially by exaptation followed by adaptive evolution.