Audio file captured by MediaRecorder is broken after it is sent to server using Retrofit 2

前端 未结 1 1363
别跟我提以往
别跟我提以往 2021-01-13 09:33

My app records an audio clip and send the clip to the server using Retrofit2 after the recording is completed.The file is received in server,but the file is broken,what I me

相关标签:
1条回答
  • 2021-01-13 10:00

    Your setAudioEncodingBitRate is very low.

    it should be 16000 for 16hz and not just 16

    try it with 16000 or 32000 in setAudioEncodingBitRate value

    comment here if it works or not, i'll try to help you out more

    0 讨论(0)
提交回复
热议问题