@readium/speech 0.6.0 → 0.7.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/README.md +3 -1
- package/build/SpeechServer/speechServerVoiceMapping.d.ts +2 -2
- package/build/SpeechServer/types.d.ts +2 -1
- package/build/index.cjs +27 -27
- package/build/index.js +653 -647
- package/build/preferences/SpeechDefaults.d.ts +3 -5
- package/build/preferences/SpeechPreferences.d.ts +3 -5
- package/build/preferences/SpeechPreferencesEditor.d.ts +2 -3
- package/build/preferences/SpeechSettings.d.ts +2 -3
- package/build/preferences/constraints.d.ts +2 -2
- package/build/speechNavigator.d.ts +2 -0
- package/build/utterance.d.ts +0 -1
- package/build/utterances/extractUtterances.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,9 @@ In the third phase, we added highlighting: content currently being spoken (e.g.
|
|
|
34
34
|
|
|
35
35
|
In the fourth phase, we extracted [Guided Navigation objects](https://readium.org/guided-navigation) from a document (or a fragment of a document), and generated utterances from these objects.
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
In the fifth phase, we added a second `ReadiumSpeechPlaybackEngine` implementation, backed by [speech-server](https://github.com/readium/speech-server) instead of the browser's Web Speech API.
|
|
38
|
+
|
|
39
|
+
We are now on the sixth phase: verbosity and prosody, in particular contextualization — synthesized announcements spoken around content based on its role (entering/leaving a chapter, a footnote, a pagebreak…). See [Preferences](docs/Preferences.md).
|
|
38
40
|
|
|
39
41
|
## Demos
|
|
40
42
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReadiumSpeechVoice } from '../voices/types';
|
|
1
|
+
import { ReadiumSpeechVoice, TServerVoiceControls } from '../voices/types';
|
|
2
2
|
import { SpeechServerVoice } from './types';
|
|
3
|
-
export declare function mapServerVoice(voice: SpeechServerVoice): ReadiumSpeechVoice;
|
|
3
|
+
export declare function mapServerVoice(voice: SpeechServerVoice, providerControls?: TServerVoiceControls): ReadiumSpeechVoice;
|
|
@@ -8,7 +8,6 @@ export interface SpeechServerVoice {
|
|
|
8
8
|
otherLanguages?: string[];
|
|
9
9
|
gender?: TGender | null;
|
|
10
10
|
quality?: TQuality;
|
|
11
|
-
controls?: TServerVoiceControls;
|
|
12
11
|
}
|
|
13
12
|
export interface SpeechServerTimingMark {
|
|
14
13
|
name: "word" | "sentence";
|
|
@@ -52,5 +51,7 @@ export interface SpeechServerServiceInfo {
|
|
|
52
51
|
providers: {
|
|
53
52
|
id: string;
|
|
54
53
|
installedLanguages: string[];
|
|
54
|
+
quality?: TQuality;
|
|
55
|
+
controls?: TServerVoiceControls;
|
|
55
56
|
}[];
|
|
56
57
|
}
|