react-voice-visualizer icon indicating copy to clipboard operation
react-voice-visualizer copied to clipboard

No way to reset

Open Johnrobmiller opened this issue 1 year ago • 1 comments

Looking for a way to reset everything. Read through the docs, found nothing. Setting recordedBlob to null and audioSrc to '' does nothing. There ought to be a way to reset these things. If there is, it should be more clearly documented.

Johnrobmiller avatar Apr 22 '24 22:04 Johnrobmiller

I'm seeing a method called "clearCanvas". Is this the intended method? It says it clears the canvas, but makes no mention of recordedBlob or audioSrc and only claims to clear the canvas. Therefore, it is implied that it will not reset audioSrc. However, when I tested it out, it seems to reset audioSrc.

In my opinion, this function ought to be renamed to better reflect its actual behavior

Johnrobmiller avatar Apr 22 '24 23:04 Johnrobmiller