Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Visualiser

Audio Visualiser is a simple tool to visualize audio being recorded in real-time. It provides a visual representation of the audio input using various visual styles.

Features

  • Real-time audio visualization
  • Multiple visual styles
  • Extremely Easy to integrate

Installation

Clone the repository to your local machine:

git clone https://github.com/TheoGibbons/audio-visualiser.git

Usage

To use the Audio Visualiser, include the following files in your HTML:

<link rel="stylesheet" href="audio-visualiser.css">
<script src="audio-visualiser.js"></script>
<script src="audio-visualiser-visuals.js"></script>

Demo

A demo is provided in the demo.html file. You can open this file in your browser to see the Audio Visualiser in action.

Example

Here is an example of how to set up the Audio Visualiser in your HTML file:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Visualise Audio Demo</title>
    <link rel="stylesheet" href="audio-visualiser.css">
</head>
<body>

<canvas id="visualiser" style="display: none"></canvas>

<script src="audio-visualiser.js"></script>
<script src="audio-visualiser-visuals.js"></script>
<script>
  document.addEventListener('DOMContentLoaded', () => {

    // Initialize the visualizer with your canvas
    AudioVisualiser.init({
        canvas: document.getElementById('visualiser'),
        theme: 'bar'        // DEFAULT
        // theme: 'bar2WithOptions'
        // theme: 'border'
        // theme: 'bezier'
        // theme: 'bezier2'
        // theme: 'circle'
        // theme: 'circle2'
        // theme: 'circle3'
        // theme: 'circle4'
        // theme: 'circle4withOptions'
    });
    
    // Call visualiseAudio to start/stop
    AudioVisualiser.visualiseAudio(true/false);

  });
</script>
</body>
</html>

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages