|
@@ -175,8 +175,8 @@ Page({
|
|
num: 3
|
|
num: 3
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.soundRecording()
|
|
|
|
this.playMediaState()
|
|
this.playMediaState()
|
|
|
|
+ this.soundRecording()
|
|
this.startRecording()
|
|
this.startRecording()
|
|
} else {
|
|
} else {
|
|
this.setData({
|
|
this.setData({
|
|
@@ -222,6 +222,7 @@ Page({
|
|
success: (res) => {
|
|
success: (res) => {
|
|
/*引擎启动成功,可以启动录音机开始录音,并将音频片传给引擎*/
|
|
/*引擎启动成功,可以启动录音机开始录音,并将音频片传给引擎*/
|
|
const options = {
|
|
const options = {
|
|
|
|
+ duration: 600000,
|
|
sampleRate: 44100, //采样率
|
|
sampleRate: 44100, //采样率
|
|
numberOfChannels: 1, //录音通道数
|
|
numberOfChannels: 1, //录音通道数
|
|
encodeBitRate: 192000, //编码码率
|
|
encodeBitRate: 192000, //编码码率
|