@readium/speech 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1585,7 +1585,7 @@ class dt {
|
|
|
1585
1585
|
utterancesBeingCancelled = !1;
|
|
1586
1586
|
// Flag to track if utterances are being cancelled
|
|
1587
1587
|
lacksNativePauseEvents = !1;
|
|
1588
|
-
// Google
|
|
1588
|
+
// Google and Chrome OS voices never fire onpause/onresume
|
|
1589
1589
|
// Playback parameters
|
|
1590
1590
|
rate = 1;
|
|
1591
1591
|
pitch = 1;
|
|
@@ -1761,7 +1761,7 @@ class dt {
|
|
|
1761
1761
|
if (e === this.speakGeneration) {
|
|
1762
1762
|
if (this.lacksNativePauseEvents = !1, a && this.voiceManager) {
|
|
1763
1763
|
const r = this.voiceManager.convertToSpeechSynthesisVoice(a);
|
|
1764
|
-
r && (i.voice = r, i.lang = r.lang, this.lacksNativePauseEvents =
|
|
1764
|
+
r && (i.voice = r, i.lang = r.lang, this.lacksNativePauseEvents = r.name.startsWith("Google") || r.name.startsWith("Chrome OS"));
|
|
1765
1765
|
}
|
|
1766
1766
|
t.language && (i.lang = t.language), i.rate = this.rate, i.pitch = this.pitch, i.volume = this.volume, i.onstart = () => {
|
|
1767
1767
|
if (e !== this.speakGeneration) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readium/speech",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "A TypeScript library for implementing read aloud features with Web technologies, following best practices for digital publishing.",
|
|
5
5
|
"author": "Readium Foundation",
|
|
6
6
|
"keywords": [
|