HTTPS SSH

console.speak

console.speak('out loud') & console.laugh()

Browser

<script src="//cdn.rawgit.com/pixelass/console-speak/master/dist/index.js"/>

npm

npm i -D console-speak
import consoleSpeak from 'console-speak'
consoleSpeak(window)

Usage

console.speak('Bonjour le monde', {lang: 'fr-FR')

console.speak('Ciao mondo', {lang: 'it-IT'})

console.speak('Hola Mundo', {lang: 'es-ES'})

console.speak('Hallo Welt', {lang: 'de-DE'})

console.speak('Hello World', {rate: .5, pitch: 2})

console.speak('This is hysterical', { voice: 'Hysterical'})

Voices

Lang 'en-US' (default) has some voices to choose from

  • Alex
  • Agnes
  • Albert
  • Bad News
  • Bahh
  • Bells
  • Boing
  • Bruce
  • Bubbles
  • Cellos
  • Deranged
  • Fred
  • Good News
  • Hysterical
  • Junior
  • Kathy
  • Pipe Organ
  • Princess
  • Ralph
  • Samantha
  • Trinoids
  • Vicki
  • Victoria
  • Whisper
  • Zarvox

More fun with laughter

console.laugh() // => 'Hahahahaha', {voice: 'Hysterical'}
console.laugh('LOL') // => 'LOL', {voice: 'Hysterical'}