mirror of
https://github.com/kevin-DL/vue-audio-recorder.git
synced 2026-01-19 22:15:18 +00:00
Add WAV support
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,7 +348,8 @@
|
||||
pauseRecording : this.pauseRecording,
|
||||
micFailed : this.micFailed,
|
||||
bitRate : this.bitRate,
|
||||
sampleRate : this.sampleRate
|
||||
sampleRate : this.sampleRate,
|
||||
format : this.format
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user