speech-synthesis
v0.3.2
Published
Speaks using the Web Speech API.
Downloads
183
Readme
speech-synthesis
Speaks using the Web Speech API
Install
$ npm install --save speech-synthesis
Usage
var speechSynthesis = require('speech-synthesis');
speechSynthesis('Hello World', 'en-IN');
// or
speechSynthesis('Hello World', 'veena');
API
speechSynthesis(message, voiceType)
message
Required
Type: string
Lorem ipsum.
voiceType:
Either of langs or name (Case insenstive):
langs: js speechSynthesis.langs
["en-US", "en-GB", "es-ES", "fr-FR", "it-IT", "de-DE", "ja-JP", "ko-KR", "zh-CN", "en-IN", "sv-SE", "fr-CA", "he-IL", "id-ID",
"es-AR", "nl-BE", "en", "ro-RO", "pt-PT", "th-TH", "en-AU", "sk-SK", "hi-IN", "pt-BR", "hu-HU", "zh-TW", "el-GR", "ru-RU",
"en-IE", "nb-NO", "es-MX", "da-DK", "fi-FI", "zh-HK", "ar-SA", "en-ZA", "nl-NL", "tr-TR", "pl-PL", "cs-CZ"]
P.S: If lang is provide, the first match is selected as the voice, to select a specific voice use name for now.
names: js speechSynthesis.names
["Google US English", "Google UK English Male", "Google UK English Female", "Google Español", "Google Français",
"Google Italiano", "Google Deutsch", "Google 日本人", "Google 한국의", "Google 中国的", "Veena", "Agnes", "Albert",
"Alex", "Alice", "Alva", "Amelie", "Anna", "Bad News", "Bahh", "Bells", "Boing", "Bruce", "Bubbles", "Carmit",
"Cellos", "Damayanti", "Daniel", "Deranged", "Diego", "Ellen", "Fiona", "Fred", "Good News", "Hysterical",
"Ioana", "Joana", "Junior", "Kanya", "Karen", "Kathy", "Kyoko", "Laura", "Lekha", "Luciana", "Mariska",
"Mei-Jia", "Melina", "Milena", "Moira", "Monica", "Nora", "Paulina", "Pipe Organ", "Princess", "Ralph",
"Samantha", "Sara", "Satu", "Sin-ji", "Tarik", "Tessa", "Thomas", "Ting-Ting", "Trinoids", "Vicki",
"Victoria", "Whisper", "Xander", "Yelda", "Yuna", "Zarvox", "Zosia", "Zuzana"]
Note: This modules works only in these browsers for now.
License
MIT © hemanth