ffmpeg has a special pipe flag that instructs the program to consume stdin.
note that almost always the input format needs to be defined explicitly.
example (output is in PCM signed 16-bit little-endian format):
cat file.mp3 | ffmpeg -f mp3 -i pipe: -c:a pcm_s16le -f s16le pipe:
pipe docs are here
supported audio types are here