Problem:
Hello, I use the custom audio recorder component(the code will be given below) and the react-audio-visualizer package.
During the recording of the user's voice - everything is ok, the "LiveAudioVisualizer" component works well. But when I try to render a finished audio recording, the "AudioVisualizer" does not visualize anything, except the background color. In other words, the canvas with styles is rendered normally, but sound waves are not.
Problem: Hello, I use the custom audio recorder component(the code will be given below) and the react-audio-visualizer package. During the recording of the user's voice - everything is ok, the "LiveAudioVisualizer" component works well. But when I try to render a finished audio recording, the "AudioVisualizer" does not visualize anything, except the background color. In other words, the canvas with styles is rendered normally, but sound waves are not.
Project setup: "react": "^18.2.0", "react-audio-visualize": "^1.1.3";
What I tried: I tried to create a simple project and visualize a song in "mp3" format. And it didn't work.
Code samples: Custom useAudioRecorder hook:
The App component with the main logic(voice recording and rendering a finished audio recording):
I would really appreciate your help