Audio Recorder plugin using tone.js

Hy, I am trying to build a audio recorder and player plugin in Bubble. I am new to web development and also Bubble.
I need a basic guideline for what steps I should be taking to develop the required plugin.
Here is the what I have done so far.
I am using tone.js for recording and playing audio.
I am able to create a audio blob play it. Now I want to implement that functionality in Bubble.

I am confused what to do next.
Should my next step be to create element in Plugin editor or workflow?