Skip to content

milani/microphone.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a script that provide access to microphone throw Flash.

You can stream voices, get user voice raw data, record and play voice all in javascript!

Example

var mic = new Microphone(function(){//called when user allows access
    mic.sampleRate = 44100;

    //when samples are available, this function is called
    mic.onSamplesAvailable = function(data){
        console.log(data);
    };
    //starts streaming
    mic.start();

    setTimeout(function(){
        mic.stop();
    },2000);
});

Attention

This script is in his early days! Try it, but don't use in production.

License

Code is published under MIT License

About

Brings microphone access to javascript!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published