1. Lame编译配置:
参考
https://wufengxue.github.io/2019/05/25/wechat-voice-codec-lame.html
https://github.com/Jay-Goo/Mp3Converter
https://blog.csdn.net/bjrxyz/article/details/73435407?locationNum=15&fps=1
https://www.jianshu.com/p/fb531239cd79
https://github.com/GavinCT/AndroidMP3Recorder
需要配置NDK

2. PCM转MP3:
由于讯飞SDK生成的是16000, 16bit, 单声道
只测试了单声道的效果，多声道效果没有测试

这个功能是参考
https://github.com/Jay-Goo/Mp3Converter
库做的
不过这个库有两个问题
1. 没法编码单声道pcm文件
2. 最后一段录音没有

1 可以通过使用lame_encode_buffer解决
2 需要在read=0读取结束时再write一遍数据fwrite