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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vocabulator

v0.2.1

Published

TTS module for SpeechSynthesis API

Readme

vocabulator

TTS module for SpeechSynthesis API

Usage

import vocabulator from 'vocabulator';

const synthesizer = vocabulator({
    language: 'en-GB',
    voiceName: 'Google UK English Male',
    pitch: 1
});

synthesizer.say({ text: 'Hello, world!', /* language, voiceName, pitch, ... */  })

Options

If you do not provide any options on initialization, built-in options will be used. Options provided on initialization will be used by default instead of built-in. Same options can be provided with each say call, and it will override the init config for that specific utterance.

Available options

language

See voices with languages below.

voiceName

See voices with languages below.

pitch

Float. Pitch of the voice.

rate

Float. Rate of the voice.

onend

Function as callback on event.

The end event of the Web Speech API SpeechSynthesisUtterance object is fired when the utterance has finished being spoken.

onerror

Function as callback on event.

The error event of the Web Speech API SpeechSynthesisUtterance object is fired when an error occurs that prevents the utterance from being succesfully spoken.

onmark

Function as callback on event.

The mark event of the Web Speech API SpeechSynthesisUtterance object is fired when the spoken utterance reaches a named SSML "mark" tag.

onpause

Function as callback on event.

The pause event of the Web Speech API SpeechSynthesisUtterance object is fired when the utterance is paused part way through.

onresume

Function as callback on event.

The resume event of the Web Speech API SpeechSynthesisUtterance object is fired when a paused utterance is resumed.

onstart

Function as callback on event.

The start event of the Web Speech API SpeechSynthesisUtterance object is fired when the utterance has begun to be spoken.

Voices

Chrome

- voiceURI: "Google Deutsch"
  name: "Google Deutsch"
  lang: "de-DE"
  localService: false
  default: true
- voiceURI: "Google US English"
  name: "Google US English"
  lang: "en-US"
  localService: false
  default: false
- voiceURI: "Google UK English Female"
  name: "Google UK English Female"
  lang: "en-GB"
  localService: false
  default: false
- voiceURI: "Google UK English Male"
  name: "Google UK English Male"
  lang: "en-GB"
  localService: false
  default: false
- voiceURI: "Google español"
  name: "Google español"
  lang: "es-ES"
  localService: false
  default: false
- voiceURI: "Google español de Estados Unidos"
  name: "Google español de Estados Unidos"
  lang: "es-US"
  localService: false
  default: false
- voiceURI: "Google français"
  name: "Google français"
  lang: "fr-FR"
  localService: false
  default: false
- voiceURI: "Google हिन्दी"
  name: "Google हिन्दी"
  lang: "hi-IN"
  localService: false
  default: false
- voiceURI: "Google Bahasa Indonesia"
  name: "Google Bahasa Indonesia"
  lang: "id-ID"
  localService: false
  default: false
- voiceURI: "Google italiano"
  name: "Google italiano"
  lang: "it-IT"
  localService: false
  default: false
- voiceURI: "Google 日本語"
  name: "Google 日本語"
  lang: "ja-JP"
  localService: false
  default: false
- voiceURI: "Google 한국의"
  name: "Google 한국의"
  lang: "ko-KR"
  localService: false
  default: false
- voiceURI: "Google Nederlands"
  name: "Google Nederlands"
  lang: "nl-NL"
  localService: false
  default: false
- voiceURI: "Google polski"
  name: "Google polski"
  lang: "pl-PL"
  localService: false
  default: false
- voiceURI: "Google português do Brasil"
  name: "Google português do Brasil"
  lang: "pt-BR"
  localService: false
  default: false
- voiceURI: "Google русский"
  name: "Google русский"
  lang: "ru-RU"
  localService: false
  default: false
- voiceURI: "Google 普通话(中国大陆)"
  name: "Google 普通话(中国大陆)"
  lang: "zh-CN"
  localService: false
  default: false
- voiceURI: "Google 粤語(香港)"
  name: "Google 粤語(香港)"
  lang: "zh-HK"
  localService: false
  default: false
- voiceURI: "Google 國語(臺灣)"
  name: "Google 國語(臺灣)"
  lang: "zh-TW"
  localService: false
  default: false