Reputation: 1
I am interested in making a AI voice assistant chat app that helps you with scheduling. I want to have a audio visualizer so you know when it is talking. I would like to do this without an JavaScript or React. I do not know if I can avoid it, but it is really not an option for me at the moment. If I don't want to have AI right this app and I do not want to learn JavaScript just yet. If it does need some JavaScript please help me out with some snippets. (Forgot to mention I will be using LiveKit with an OpenAI API key and python as a backend).
Thanks!!!
Upvotes: -1
Views: 21
Reputation: 1
You can not add an audio visualizer only by using HTML.
To do this you will need the Web Audio API in JS.
There are three main steps to add an audio visualizer to your webpage:
you need to create an audio element to play the sound
By using the API you analyze the audio frequencies
Use JS to update the graphics area in real time and display the visualization
Alternatively you can create a css-based visual effect that looks like a visualizer, but it will not actually react to the audio. This is a more simplefied way.
Upvotes: 0