Cannot write output file
let newAudioPath = audioPath.replace('.aac', '.mp3')
const transcodeResult = await transcode(audioPath, newAudioPath)
throws Cannot write output file exception.
newAudioPath = /Users/user/Library/Developer/CoreSimulator/Devices/6CDD781C-BADC-4630-82E4-D25F76B3BF72/data/Containers/Data/Application/87E2E2CC-0415-48A6-B06A-FE990ADF21E4/Documents/file_1.mp3
+1 same here
I had the same issue. The problem is that the implementation has been changed for iOS. It no longer converts to .mp3 but to .m4a, although the readme is not updated to point that out.
I can't comment too much on a update to re-implement the mp3 functionality as I no longer work on the project this was a part of, but as far as I can remember that was removed from the iOS version as some Apple update (whether that was iOS itself, AVMediaFoundation, or some other supporting library) caused the method for creating the file to fail