问题描述
这是我试过的代码。
import AudioRecorderPlayer from 'react-native-audio-recorder-player';
const audioRecorderPlayer = new AudioRecorderPlayer();
const path = Platform.select({
ios: 'hello.m4a',android: '/data/user/0/com.nfmobile/files/saroj_new.wav',});
const onStartRecord = async () => {
const result = await audioRecorderPlayer.startRecorder(path);
audioRecorderPlayer.addRecordBackListener((e) => {
return;
});
};
此代码正在创建 wav 格式的音频文件,但该 wav 文件不起作用。
有什么办法可以做到这一点。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)