react-native-audio-recorder-player
react-native-audio-recorder-player copied to clipboard
Place the newly recorded audio in the following location, and upon opening it, there will be missing bit rate and duration information
const dirs = ReactNativeBlobUtil.fs.dirs; const option = Platform.select({ android: ${dirs.LegacyMusicDir}/+ Date.now() +.mp3, // android: ${dirs.CacheDir}/+ Date.now() +.wav, }); const audioSet = { AudioEncoderAndroid: AudioEncoderAndroidType.AAC, AudioSourceAndroid: AudioSourceAndroidType.MIC, AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.low, AVNumberOfChannelsKeyIOS: 2, AVFormatIDKeyIOS: AVEncodingOption.aac, OutputFormatAndroid: OutputFormatAndroidType.AAC_ADTS, };
version: 3.6.10