A simple vuejs Audio Recorder plugin
npm install vue-audio-recorder-and-playerA simple Audio recorder and player to record audio content.

```
npm i vue-audio-recorder-and-player --save
import vue-audio-recorder-and-player from 'vue-audio-recorder-and-player';
`$3
Below is an example of how to handle recording result
`
import vue-audio-recorder-and-player from 'vue-audio-recorder-and-player';
export default {
},
methods: {
async recordingStopped(blob) {
const readBlobAsBase64 = (blob) => {
var reader = new FileReader();
return new Promise((resolve) => {
reader.addEventListener("load", function() {
resolve(reader.result);
});
reader.readAsDataURL( blob );
});
};
try {
this.audioURL = await readBlobAsBase64(blob)
} catch (e) {
console.warn(e.message)
}
console.log("here", this.audioURL) // Audio blob as base 64 string
}
}
`$3
This line in package helps to send a response to the parent.
`
this.$emit('recordingstop', blob)
``You can have a mehtod in the parent classs to fetch the response in a function as shown in the example above.
Pratik Aher - Developer