Socket
Book a DemoInstallSign in
Socket

speech-synthesis

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speech-synthesis

Speaks using the Web Speech API.

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
29
-9.37%
Maintainers
1
Weekly downloads
 
Created
Source

speech-synthesis Build Status

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

FAQs

Package last updated on 27 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts