input raw audio info:
sample rate: 44.1k
sample format: 16bit signed integer, little endian
channel numbers: 2
encoding the raw pcm audio into .wav using ffmpeg, command line:
ffmpeg -f s16le -ar 44.1k -ac 2 -i input_file.pcm output_file.wav
通过ffmpeg可以实现将pcm编码为aac
详细的我会在后续加上代码。