offline-tts
Advanced tools
Comparing version 1.0.8 to 1.1.0
@@ -1,2 +0,2 @@ | ||
const speak = (text, voice = 0, volume = 1, rate = 1, pitch = 1) => { | ||
const speak = (text, voice = 0, speed = 1, volume = 1, pitch = 1) => { | ||
let speech = window.speechSynthesis | ||
@@ -6,3 +6,3 @@ let utterance = new SpeechSynthesisUtterance(text) | ||
utterance.voice = speechSynthesis.getVoices()[voice]; | ||
utterance.rate = rate | ||
utterance.rate = speed | ||
utterance.pitch = pitch | ||
@@ -9,0 +9,0 @@ utterance.volume = volume |
{ | ||
"name": "offline-tts", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"description": "Easily convert text to speech, even offline!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1020