burmese-voice

1.0.3 • Public • Published

burmese-voice

A speech command ai library for Burmese language

Read the documentation Here. Download the model Here.

The library currently can classify 6 burmese words by voice and one additional noise. The voices are

  • Go (သွား)
  • Stop (ရပ်)
  • Left (ဘယ်)
  • Right (ညာ)
  • On (ဖွင့်)
  • Off (ပိတ်)
  • Background Noise

Using BurmeseVoice Model

  let burmeseVoice;

       async function main(){
        const URL = "http://localhost:8000/models/"; // URL must be absolute URL
        burmeseVoice = new BurmeseVoice(URL)
        await burmeseVoice.load();
        console.log(burmeseVoice.getLabels());
       }

       function init(){
        burmeseVoice.listen((result)=>{
            console.log(result);
            const voice = burmeseVoice.getBestResult(result.scores);
            console.log(voice);
        });
       }

       function stop(){
        burmeseVoice.stopListening();
       }

       main();

Package Sidebar

Install

npm i burmese-voice

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

958 kB

Total Files

9

Last publish

Collaborators

  • minsithu