Skip to content

Interact with audio file or microphone from your browser

License

Notifications You must be signed in to change notification settings

Alexzava/js-beater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interact with audio file or microphone from your browser.

Try the demo here

How to use

Play from microphone

<script src="jsbeater.js"></script>
<script>
	window.onload = () => {
		let threshold = 180 // Default 180
		jsbMic(example, t)
	}

	function example() {
		console.log("Hello World!")
	}
</script>

Play from file

<script src="jsbeater.js"></script>
<script>
	window.onload = () => {
		let threshold = 240 // Default 240
		jsbFile("filename.mp3", example, t)
	}

	function example() {
		console.log("Hello World!")
	}
</script>

Examples

Play from microphone

Play from file

License

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

About

Interact with audio file or microphone from your browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published