I am consistently getting this error. I have set the audioset while recording the audio so that the file will be in the correct format.
const audioSet = {
AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
AudioSourceAndroid: AudioSourceAndroidType.MIC,
AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high,
AVNumberOfChannelsKeyIOS: 2,
AVFormatIDKeyIOS: AVEncodingOption.aac,
OutputFormatAndroid: OutputFormatAndroidType.MPEG_4,
};
Here is the error
{
“error”: {
“message”: “Audio file might be corrupted or unsupported”,
“type”: “invalid_request_error”,
“param”: “file”,
“code”: “invalid_value”
}
}