@@ -175,8 +175,8 @@ Page({
num: 3
}
})
- this.soundRecording()
this.playMediaState()
+ this.soundRecording()
this.startRecording()
} else {
this.setData({
@@ -222,6 +222,7 @@ Page({
success: (res) => {
/*引擎启动成功,可以启动录音机开始录音,并将音频片传给引擎*/
const options = {
+ duration: 600000,
sampleRate: 44100, //采样率
numberOfChannels: 1, //录音通道数
encodeBitRate: 192000, //编码码率
@@ -31,6 +31,7 @@ function request(url, method, data, oldBaseUrl = false) {
message
} = result
+ console.log(code, 'cccc');
if (code == '200') {
reslove(data)
} else if (code == '1102' || code == '1204' || code == '503') {