try pcm codec
This commit is contained in:
parent
3e38c2c7e4
commit
b2e5f132b3
1 changed files with 3 additions and 3 deletions
|
|
@ -330,8 +330,8 @@ export default {
|
|||
startRecording() {
|
||||
var constraints = {
|
||||
audio: {
|
||||
channelCount: 1,
|
||||
sampleRate: 16000,
|
||||
// channelCount: 1,
|
||||
// sampleRate: 16000,
|
||||
echoCancellation: false,
|
||||
autoGainControl: true,
|
||||
noiseSuppression: true,
|
||||
|
|
@ -344,7 +344,7 @@ export default {
|
|||
.then((stream) => {
|
||||
this.recorder = RecordRTC(stream, {
|
||||
type: "audio",
|
||||
mimeType: "audio/webm",
|
||||
mimeType: "audio/webm;codecs=pcm",
|
||||
});
|
||||
this.recorder.startRecording();
|
||||
this.state = State.RECORDING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue