Add WAV support

This commit is contained in:
Gennady Grishkovtsov
2019-05-03 01:17:56 +03:00
parent 1f8aad013a
commit 94fc582eef
8 changed files with 109 additions and 14 deletions

View File

@@ -27,9 +27,10 @@
return
}
const type = this.record.blob.type.split('/')[1]
const link = document.createElement('a')
link.href = this.record.url
link.download = `${this.filename}.mp3`
link.download = `${this.filename}.${type}`
link.click()
}
}

View File

@@ -348,7 +348,8 @@
pauseRecording : this.pauseRecording,
micFailed : this.micFailed,
bitRate : this.bitRate,
sampleRate : this.sampleRate
sampleRate : this.sampleRate,
format : this.format
})
}
},