# stopRecordAudio ^4.4.0
开启麦克风录音后,自行控制结束录音
# 接口调用示例
this.$bridge
.stopRecordAudio(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
Prop | Type | Default | Description |
---|---|---|---|
filePath | String | N/A | 如果启用麦克风接口startRecordAudio 的isSave 为true ,则返回录音保存的文件路径 |
fileName | String | N/A | 如果启用麦克风接口startRecordAudio 的isSave 为true ,则返回录音保存的文件名 |
data | String | N/A | 如果启用麦克风接口startRecordAudio 的isTransform 为true ,则返回转换的文字 |