npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

emic2

v0.0.6

Published

Node API for Emic2 module TTS

Readme

#Emic 2 A simple JS API to communicate with the Emic 2. Emic 2 is a module used to perform TTS. This particular version of the API is targeted to Tessel microcontroller.

##Installation

npm install emic2

Alt text ##Initiating module

var tessel = require('tessel');
var emic2 = require('emic2').use(tessel.port['D']);

emic2.on('ready', function(){
    emic2.speak('Hello, this is Tessel, your new friend');
});

##Methods

  • speak(txt) The main function that transform text to speech
emic2.speak('Hello there, today is going to be a great day');
  • setVoice(int) Change between 9 available voices in Emic2
    /*
     0: Perfect Paul (Paulo)
     1: Huge Harry (Francisco)
     2: Beautiful Betty
     3: Uppity Ursula
     4: Doctor Dennis (Enrique)
     5: Kit the Kid
     6: Frail Frank
     7: Rough Rita
     8: Whispering Wendy (Beatriz) 
    */
    emic2.setVoice(0); // default voice
  • setLanguage('es', ['lan']) Set the language used in TTS
    /*
     en: English
     es: Spanish | [ lan: latino or ca: castilian ] 
    */
    emic2.setLanguage('es', 'lan') //Setting language to espanish
    .speak('Hola amigos y amigas, esperon que todos esten bien')
    .setLanguage('en')
    .speak('As you can see, I am able to speak two languages, can you?');
  • setVolume(int) Set the volume of the Emic 2
    /*
     Volume range [-48 to 18] 
     -48 (softest) to 18 (loudest)
    */
    emic2.setVolume(10);
  • setRate(int) Set the speaking rate in words per minute from 75 (slowest) to 600 (fastest).
    //Default value: 200
    emic2.setRate(500)
    .speak('I am speaking kind of fast');
  • stop() Immediately stop the currently playing text-to-speech message. This command is only valid while a message is playing.
    emic2.speak('This is a really long text........');
    emic2.stop();

#License MIT

Free Software, Hell Yeah!