react-native native module for audio recorder and player.
709
stars
212
forks
source link
Place the newly recorded audio in the following location, and upon opening it, there will be missing bit rate and duration information #623
Open
H-hang-H opened 2 months ago
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