react-text-to-speech
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -23,7 +23,8 @@ import React, { useEffect, useState } from 'react'; | ||
function setStopped() { | ||
setSpeechStatus('stopped'); | ||
utterance.onpause = null; | ||
utterance.onend = null; | ||
utterance.onerror = null; | ||
setSpeechStatus('stopped'); | ||
synth.cancel(); | ||
if (synth.paused) | ||
synth.cancel(); | ||
} | ||
@@ -30,0 +31,0 @@ utterance.onpause = () => setSpeechStatus('paused'); |
{ | ||
"name": "react-text-to-speech", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "An easy to use react component for the Web Speech API.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
14479
104