@readium/speech 0.11.0 → 0.13.0
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 +4 -6
- package/build/Fallback/fallbackEngineProvider.d.ts +3 -3
- package/build/Fallback/fallbackSpeechEngine.d.ts +5 -5
- package/build/Fallback/index.d.ts +3 -3
- package/build/Fallback/recoverableFailure.d.ts +1 -1
- package/build/SpeechServer/index.d.ts +7 -7
- package/build/SpeechServer/selectFormat.d.ts +1 -1
- package/build/SpeechServer/speechServerEngine.d.ts +5 -5
- package/build/SpeechServer/speechServerEngineProvider.d.ts +4 -4
- package/build/SpeechServer/speechServerVoiceMapping.d.ts +2 -2
- package/build/SpeechServer/types.d.ts +1 -1
- package/build/WebSpeech/WebSpeechVoiceManager.d.ts +1 -1
- package/build/WebSpeech/index.d.ts +3 -3
- package/build/WebSpeech/webSpeechEngine.d.ts +4 -4
- package/build/WebSpeech/webSpeechEngineProvider.d.ts +3 -3
- package/build/decorator/createLocator.d.ts +2 -1
- package/build/decorator/index.d.ts +2 -2
- package/build/decorator/setupDecorations.d.ts +1 -1
- package/build/engine.d.ts +3 -3
- package/build/index.d.ts +14 -15
- package/build/index.js +1782 -6846
- package/build/navigator.d.ts +7 -7
- package/build/preferences/Preference.d.ts +6 -6
- package/build/preferences/SpeechDefaults.d.ts +1 -1
- package/build/preferences/SpeechPreferences.d.ts +1 -1
- package/build/preferences/SpeechSettings.d.ts +1 -1
- package/build/preferences/constraints.d.ts +8 -8
- package/build/preferences/guards.d.ts +1 -1
- package/build/preferences/index.d.ts +4 -2
- package/build/preferences/verbosityTables.d.ts +1 -1
- package/build/provider.d.ts +2 -2
- package/build/providerRegistry.d.ts +3 -3
- package/build/speechNavigator.d.ts +14 -14
- package/build/utils/text.d.ts +0 -2
- package/build/utterances/contextualization.d.ts +5 -4
- package/build/utterances/extractUtterances.d.ts +4 -4
- package/build/utterances/locate.d.ts +3 -3
- package/build/utterances/mergeUtterances.d.ts +2 -2
- package/build/utterances/nodeFields.d.ts +5 -0
- package/build/utterances/roles.d.ts +1 -1
- package/build/utterances/tableStructure.d.ts +5 -5
- package/build/utterances/text.d.ts +4 -4
- package/build/utterances/types.d.ts +3 -2
- package/build/utterances/utteranceOutput.d.ts +2 -2
- package/build/utterances/walk.d.ts +2 -2
- package/build/utterances/walkContext.d.ts +8 -7
- package/build/voices/filters.d.ts +1 -1
- package/build/voices/languages.d.ts +2 -2
- package/build/voices/localized.d.ts +1 -1
- package/build/voices/packages.d.ts +1 -1
- package/build/voices/sorting.d.ts +2 -2
- package/build/voices/voiceDuplicates.d.ts +1 -1
- package/package.json +15 -15
- package/build/ar-DuqkW85r.cjs +0 -1
- package/build/bg-DQ8Or9ln.cjs +0 -1
- package/build/bho-UB6aO8oz.cjs +0 -1
- package/build/bn-DdnrYetr.cjs +0 -1
- package/build/ca-D2gB-PsU.cjs +0 -1
- package/build/cmn-BkQ6_5c5.cjs +0 -1
- package/build/cs-Dg7ZcgUn.cjs +0 -1
- package/build/da-Bmc3-wE3.cjs +0 -1
- package/build/de-yGzFecZa.cjs +0 -1
- package/build/el-BXDgzxPG.cjs +0 -1
- package/build/en-BkmFXU-D.cjs +0 -1
- package/build/es-yaOBPPo5.cjs +0 -1
- package/build/eu-uq15ZgwW.cjs +0 -1
- package/build/fa-C7gf54mN.cjs +0 -1
- package/build/fi-Ckva-_7A.cjs +0 -1
- package/build/fr-C7LUVKsE.cjs +0 -1
- package/build/gl-_cjNQmPr.cjs +0 -1
- package/build/gnd/a11y.d.ts +0 -20
- package/build/gnd/converter.d.ts +0 -73
- package/build/gnd/dom.d.ts +0 -6
- package/build/gnd/domRangeGenerator.d.ts +0 -9
- package/build/gnd/elementHandlers.d.ts +0 -5
- package/build/gnd/idAllocator.d.ts +0 -6
- package/build/gnd/index.d.ts +0 -7
- package/build/gnd/makeGnd.d.ts +0 -9
- package/build/gnd/object.d.ts +0 -28
- package/build/gnd/options.d.ts +0 -17
- package/build/gnd/prescan.d.ts +0 -1
- package/build/gnd/roles.d.ts +0 -3
- package/build/gnd/selectorGenerator.d.ts +0 -3
- package/build/gnd/text.d.ts +0 -18
- package/build/gnd/textFragmentGenerator.d.ts +0 -2
- package/build/gnd/textrefFragment.d.ts +0 -40
- package/build/gnd/types.d.ts +0 -21
- package/build/he-DVF3vvW9.cjs +0 -1
- package/build/hi-Cw9tDdoY.cjs +0 -1
- package/build/hr-BggD5hef.cjs +0 -1
- package/build/hu-CVN4AAaU.cjs +0 -1
- package/build/id-0GsU08OQ.cjs +0 -1
- package/build/index.cjs +0 -24
- package/build/it-CjraJOTi.cjs +0 -1
- package/build/ja-DZA_Jiej.cjs +0 -1
- package/build/kk-B1QeTCqa.cjs +0 -1
- package/build/kn-Dr8XiVC3.cjs +0 -1
- package/build/ko-D71TFL45.cjs +0 -1
- package/build/mr-CX6HEC_l.cjs +0 -1
- package/build/ms-DfrAHvvL.cjs +0 -1
- package/build/nb-CZLktG1o.cjs +0 -1
- package/build/nl-B5M6yG47.cjs +0 -1
- package/build/pl-l20DtMGO.cjs +0 -1
- package/build/pt-BUTOekxw.cjs +0 -1
- package/build/ro-DIcYfRAr.cjs +0 -1
- package/build/ru-CJPE4iif.cjs +0 -1
- package/build/sk-DzFVn2yw.cjs +0 -1
- package/build/sl-B4fy9eLK.cjs +0 -1
- package/build/sv-DwG8WENn.cjs +0 -1
- package/build/ta-IhlG6xub.cjs +0 -1
- package/build/te-BMlSZMWZ.cjs +0 -1
- package/build/th-Bgdg_M0f.cjs +0 -1
- package/build/tr-BS6FY0hu.cjs +0 -1
- package/build/uk-BBTtG5rE.cjs +0 -1
- package/build/vi-ZQ09Ahmv.cjs +0 -1
- package/build/wuu-DnwGQ6c-.cjs +0 -1
- package/build/yue-BU-8AjYB.cjs +0 -1
package/build/navigator.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Configurable } from './preferences/Configurable';
|
|
3
|
-
import { SpeechPreferences } from './preferences/SpeechPreferences';
|
|
4
|
-
import { SpeechSettings } from './preferences/SpeechSettings';
|
|
5
|
-
import { ReadiumSpeechVoice } from './voices/types';
|
|
6
|
-
import { ReadiumSpeechUtterance } from './utterance';
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
|
+
import { Configurable } from './preferences/Configurable.js';
|
|
3
|
+
import { SpeechPreferences } from './preferences/SpeechPreferences.js';
|
|
4
|
+
import { SpeechSettings } from './preferences/SpeechSettings.js';
|
|
5
|
+
import { ReadiumSpeechVoice } from './voices/types.js';
|
|
6
|
+
import { ReadiumSpeechUtterance } from './utterance.js';
|
|
7
7
|
export type ReadiumSpeechPlaybackState = "playing" | "paused" | "idle" | "loading" | "ready";
|
|
8
8
|
export interface ReadiumSpeechPlaybackEvent {
|
|
9
9
|
type: "start" | "pause" | "resume" | "end" | "stop" | "skip" | "error" | "boundary" | "mark" | "idle" | "loading" | "ready" | "voiceschanged" | "languagefallback" | "enginefallback" | "enginerecovered";
|
|
@@ -16,7 +16,7 @@ export interface ReadiumSpeechNavigatorContract extends Configurable<SpeechSetti
|
|
|
16
16
|
setSpeakInContentLanguage(enabled: boolean): void;
|
|
17
17
|
getSpeakInContentLanguage(): boolean;
|
|
18
18
|
loadContent(content: ReadiumSpeechUtterance | ReadiumSpeechUtterance[]): void;
|
|
19
|
-
loadGndContent(nodes:
|
|
19
|
+
loadGndContent(nodes: GuidedNavigationObject[]): Promise<void>;
|
|
20
20
|
getCurrentContent(): ReadiumSpeechUtterance | null;
|
|
21
21
|
getContentQueue(): ReadiumSpeechUtterance[];
|
|
22
22
|
play(): void;
|
|
@@ -5,10 +5,10 @@ export interface IPreference<T> {
|
|
|
5
5
|
clear(): void;
|
|
6
6
|
}
|
|
7
7
|
export interface IEnumPreference<T> extends IPreference<T> {
|
|
8
|
-
supportedValues: T[];
|
|
8
|
+
supportedValues: readonly T[];
|
|
9
9
|
}
|
|
10
10
|
export interface IRangePreference<T> extends IPreference<T> {
|
|
11
|
-
supportedRange: [T, T];
|
|
11
|
+
supportedRange: readonly [T, T];
|
|
12
12
|
step: number;
|
|
13
13
|
increment(): void;
|
|
14
14
|
decrement(): void;
|
|
@@ -38,11 +38,11 @@ export declare class EnumPreference<T extends string | number | symbol> extends
|
|
|
38
38
|
effectiveValue?: T | null;
|
|
39
39
|
isEffective: boolean;
|
|
40
40
|
onChange: (newValue: T | null | undefined) => void;
|
|
41
|
-
supportedValues: T[];
|
|
41
|
+
supportedValues: readonly T[];
|
|
42
42
|
});
|
|
43
43
|
set value(value: T | null | undefined);
|
|
44
44
|
get value(): T | null | undefined;
|
|
45
|
-
get supportedValues(): T[];
|
|
45
|
+
get supportedValues(): readonly T[];
|
|
46
46
|
}
|
|
47
47
|
export declare class BooleanPreference extends Preference<boolean> {
|
|
48
48
|
set value(value: boolean | null | undefined);
|
|
@@ -61,12 +61,12 @@ export declare class RangePreference<T extends number> extends Preference<T> imp
|
|
|
61
61
|
effectiveValue?: T | null;
|
|
62
62
|
isEffective: boolean;
|
|
63
63
|
onChange: (newValue: T | null | undefined) => void;
|
|
64
|
-
supportedRange: [T, T];
|
|
64
|
+
supportedRange: readonly [T, T];
|
|
65
65
|
step: number;
|
|
66
66
|
});
|
|
67
67
|
set value(value: T | null | undefined);
|
|
68
68
|
get value(): T | null | undefined;
|
|
69
|
-
get supportedRange(): [T, T];
|
|
69
|
+
get supportedRange(): readonly [T, T];
|
|
70
70
|
get step(): number;
|
|
71
71
|
increment(): void;
|
|
72
72
|
decrement(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GndRole } from '
|
|
1
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
2
2
|
import { AutoPauseScope, VerbosityPreset } from './SpeechPreferences.js';
|
|
3
3
|
import { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
|
|
4
4
|
export interface ISpeechDefaults {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GndRole } from '
|
|
1
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
2
2
|
import { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
|
|
3
3
|
import { ConfigurablePreferences } from './Configurable.js';
|
|
4
4
|
export type VerbosityPreset = "none" | "few" | "some" | "most" | "custom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GndRole } from '
|
|
1
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
2
2
|
import { ConfigurableSettings } from './Configurable.js';
|
|
3
3
|
import { SpeechDefaults } from './SpeechDefaults.js';
|
|
4
4
|
import { AutoPauseScope, SpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
|
|
2
2
|
import { AutoPauseScope, ISpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
|
|
3
3
|
export interface RangeConfig {
|
|
4
|
-
range: [number, number];
|
|
5
|
-
step: number;
|
|
4
|
+
readonly range: readonly [number, number];
|
|
5
|
+
readonly step: number;
|
|
6
6
|
}
|
|
7
7
|
export declare const pauseDurationRangeConfig: RangeConfig;
|
|
8
8
|
export declare const rateRangeConfig: RangeConfig;
|
|
9
9
|
export declare const pitchRangeConfig: RangeConfig;
|
|
10
10
|
export declare const volumeRangeConfig: RangeConfig;
|
|
11
|
-
export declare const verbosityPresets: VerbosityPreset[];
|
|
12
|
-
export declare const languageModes: LanguageMode[];
|
|
13
|
-
export declare const extractionFormats: ExtractionFormat[];
|
|
14
|
-
export declare const autoPauseScopes: AutoPauseScope[];
|
|
15
|
-
export declare const segmentationModes: Segmentation[];
|
|
16
|
-
export declare const extractionPreferenceKeys: (keyof ISpeechPreferences)[];
|
|
11
|
+
export declare const verbosityPresets: readonly VerbosityPreset[];
|
|
12
|
+
export declare const languageModes: readonly LanguageMode[];
|
|
13
|
+
export declare const extractionFormats: readonly ExtractionFormat[];
|
|
14
|
+
export declare const autoPauseScopes: readonly AutoPauseScope[];
|
|
15
|
+
export declare const segmentationModes: readonly Segmentation[];
|
|
16
|
+
export declare const extractionPreferenceKeys: readonly (keyof ISpeechPreferences)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function ensureBoolean(value: boolean | null | undefined): boolean | null | undefined;
|
|
2
2
|
export declare function ensureEnumValue<T extends string | number | symbol>(value: T | null | undefined, supportedValues: readonly T[]): T | null | undefined;
|
|
3
|
-
export declare function ensureValueInRange(value: number | null | undefined, range: [number, number]): number | null | undefined;
|
|
3
|
+
export declare function ensureValueInRange(value: number | null | undefined, range: readonly [number, number]): number | null | undefined;
|
|
4
4
|
export declare function ensureStringArray(value: string[] | null | undefined): string[] | null | undefined;
|
|
@@ -3,8 +3,10 @@ export type { IPreferencesEditor } from './PreferencesEditor.js';
|
|
|
3
3
|
export { BooleanPreference, EnumPreference, Preference, RangePreference, StringArrayPreference } from './Preference.js';
|
|
4
4
|
export type { IEnumPreference, IPreference, IRangePreference } from './Preference.js';
|
|
5
5
|
export { SpeechPreferences } from './SpeechPreferences.js';
|
|
6
|
-
export type { ISpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
|
|
7
|
-
export type { LanguageMode, Segmentation } from '../utterances/types.js';
|
|
6
|
+
export type { AutoPauseScope, ISpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
|
|
7
|
+
export type { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
|
|
8
|
+
export { autoPauseScopes, extractionFormats, extractionPreferenceKeys, languageModes, pauseDurationRangeConfig, pitchRangeConfig, rateRangeConfig, segmentationModes, verbosityPresets, volumeRangeConfig, } from './constraints.js';
|
|
9
|
+
export type { RangeConfig } from './constraints.js';
|
|
8
10
|
export { SpeechDefaults } from './SpeechDefaults.js';
|
|
9
11
|
export type { ISpeechDefaults } from './SpeechDefaults.js';
|
|
10
12
|
export { SpeechSettings } from './SpeechSettings.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GndRole } from '
|
|
1
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
2
2
|
import { VerbosityPreset } from './SpeechPreferences.js';
|
|
3
3
|
export declare const skippedAtVerbosity: Readonly<Record<Exclude<VerbosityPreset, "custom">, ReadonlySet<GndRole>>>;
|
|
4
4
|
export declare const contextualizedAtVerbosity: Readonly<Record<Exclude<VerbosityPreset, "custom">, ReadonlySet<GndRole>>>;
|
package/build/provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReadiumSpeechPlaybackEngine } from './engine';
|
|
2
|
-
import { ReadiumSpeechVoice } from './voices/types';
|
|
1
|
+
import { ReadiumSpeechPlaybackEngine } from './engine.js';
|
|
2
|
+
import { ReadiumSpeechVoice } from './voices/types.js';
|
|
3
3
|
export interface ReadiumSpeechEngineProvider {
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReadiumSpeechEngineProvider } from './provider';
|
|
2
|
-
import { ReadiumSpeechPlaybackEngine } from './engine';
|
|
3
|
-
import { ReadiumSpeechVoice } from './voices/types';
|
|
1
|
+
import { ReadiumSpeechEngineProvider } from './provider.js';
|
|
2
|
+
import { ReadiumSpeechPlaybackEngine } from './engine.js';
|
|
3
|
+
import { ReadiumSpeechVoice } from './voices/types.js';
|
|
4
4
|
export interface ReadiumSpeechProviderVoices {
|
|
5
5
|
providerId: string;
|
|
6
6
|
voices: ReadiumSpeechVoice[];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ReadiumSpeechPlaybackEngine } from './engine';
|
|
2
|
-
import {
|
|
3
|
-
import { ReadiumSpeechNavigatorContract, ReadiumSpeechPlaybackEvent, ReadiumSpeechPlaybackState } from './navigator';
|
|
4
|
-
import { ISpeechDefaults } from './preferences/SpeechDefaults';
|
|
5
|
-
import { ISpeechPreferences, SpeechPreferences } from './preferences/SpeechPreferences';
|
|
6
|
-
import { SpeechPreferencesEditor } from './preferences/SpeechPreferencesEditor';
|
|
7
|
-
import { SpeechSettings } from './preferences/SpeechSettings';
|
|
8
|
-
import { ContextualizationShapeOverrides } from './preferences/verbosityTables';
|
|
9
|
-
import { ReadiumSpeechUtterance } from './utterance';
|
|
10
|
-
import { Contextualizations } from './utterances/types';
|
|
11
|
-
import { SentenceSegmenter } from './utterances/sentenceSegmenter';
|
|
12
|
-
import { ReadiumSpeechVoice } from './voices/types';
|
|
1
|
+
import { ReadiumSpeechPlaybackEngine } from './engine.js';
|
|
2
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
3
|
+
import { ReadiumSpeechNavigatorContract, ReadiumSpeechPlaybackEvent, ReadiumSpeechPlaybackState } from './navigator.js';
|
|
4
|
+
import { ISpeechDefaults } from './preferences/SpeechDefaults.js';
|
|
5
|
+
import { ISpeechPreferences, SpeechPreferences } from './preferences/SpeechPreferences.js';
|
|
6
|
+
import { SpeechPreferencesEditor } from './preferences/SpeechPreferencesEditor.js';
|
|
7
|
+
import { SpeechSettings } from './preferences/SpeechSettings.js';
|
|
8
|
+
import { ContextualizationShapeOverrides } from './preferences/verbosityTables.js';
|
|
9
|
+
import { ReadiumSpeechUtterance } from './utterance.js';
|
|
10
|
+
import { Contextualizations } from './utterances/types.js';
|
|
11
|
+
import { SentenceSegmenter } from './utterances/sentenceSegmenter.js';
|
|
12
|
+
import { ReadiumSpeechVoice } from './voices/types.js';
|
|
13
13
|
export interface ContextualizationOverrides {
|
|
14
14
|
contextualizations?: Contextualizations;
|
|
15
15
|
shapes?: ContextualizationShapeOverrides;
|
|
16
|
-
params?: (role: string, node:
|
|
16
|
+
params?: (role: string, node: GuidedNavigationObject) => Record<string, string> | undefined;
|
|
17
17
|
}
|
|
18
18
|
export interface SegmentationOverrides {
|
|
19
19
|
suppressions?: Record<string, string[]>;
|
|
@@ -54,7 +54,7 @@ export declare class ReadiumSpeechNavigator implements ReadiumSpeechNavigatorCon
|
|
|
54
54
|
setSpeakInContentLanguage(enabled: boolean): void;
|
|
55
55
|
getSpeakInContentLanguage(): boolean;
|
|
56
56
|
loadContent(content: ReadiumSpeechUtterance | ReadiumSpeechUtterance[]): void;
|
|
57
|
-
loadGndContent(nodes:
|
|
57
|
+
loadGndContent(nodes: GuidedNavigationObject[]): Promise<void>;
|
|
58
58
|
private setContentQueue;
|
|
59
59
|
private reextract;
|
|
60
60
|
private resolveResumeIndex;
|
package/build/utils/text.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export declare const BINDING_PUNCT_CLASS = "\\p{Pe}\\p{Pf}.,;:!?\uFF0C\u3002\u3001\uFF1B\uFF1A\uFF01\uFF1F\u060C\u061B\u061F";
|
|
2
1
|
export declare const OPENING_PUNCT_CLASS = "\\p{Ps}\\p{Pi}\u00BF\u00A1";
|
|
3
|
-
export declare function startsWithBindingPunct(s: string): boolean;
|
|
4
2
|
export declare function startsWithOpeningPunct(s: string): boolean;
|
|
5
3
|
export declare function isSinglePunctuationChar(s: string): boolean;
|
|
6
4
|
export declare function neutralizeAngleBrackets(text: string): string;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
2
3
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
3
4
|
import { SourceTrace, WalkContext } from './walkContext.js';
|
|
4
5
|
export declare function resolveEntryText(ctx: WalkContext, base: string, variantKey?: string, params?: Record<string, string>): string | undefined;
|
|
5
6
|
export declare function isRoleContextualized(role: string, ctx: WalkContext): boolean;
|
|
6
7
|
export declare function isDroppedByAnotherRole(role: GndRole, roles: GndRole[], ctx: WalkContext): boolean;
|
|
7
|
-
export declare function scopeToQuote(utterance: ReadiumSpeechUtterance, text: string, quoteText: string, node:
|
|
8
|
-
export declare function pushRoleContextualization(out: ReadiumSpeechUtterance[], sources: SourceTrace, node:
|
|
8
|
+
export declare function scopeToQuote(utterance: ReadiumSpeechUtterance, text: string, quoteText: string, node: GuidedNavigationObject, ctx: WalkContext): void;
|
|
9
|
+
export declare function pushRoleContextualization(out: ReadiumSpeechUtterance[], sources: SourceTrace, node: GuidedNavigationObject, ctx: WalkContext, role: string, phase: "before" | "after", variantKey?: string, params?: Record<string, string>): void;
|
|
9
10
|
export declare function resolvePluralPart(ctx: WalkContext, role: string, name: string, count: number): string;
|
|
10
11
|
type ContextualizationParams = {
|
|
11
12
|
variantKey?: string;
|
|
12
13
|
params?: Record<string, string>;
|
|
13
14
|
};
|
|
14
|
-
export declare function contextualizationParamsFor(role: string, node:
|
|
15
|
+
export declare function contextualizationParamsFor(role: string, node: GuidedNavigationObject, ctx: WalkContext): ContextualizationParams;
|
|
15
16
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
2
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
3
3
|
import { ExtractUtterancesOptions } from './types.js';
|
|
4
4
|
import { SourceTrace } from './walkContext.js';
|
|
@@ -8,15 +8,15 @@ export type { SourceTrace } from './walkContext.js';
|
|
|
8
8
|
* Navigation node tree, following the patterns documented at
|
|
9
9
|
* https://github.com/readium/guided-navigation/tree/main/examples/read-aloud.
|
|
10
10
|
*
|
|
11
|
-
* Accepts `
|
|
11
|
+
* Accepts `GuidedNavigationObject[]` (as returned by `parseMarkup()`, or `GuidedNavigationDocument.guided`)
|
|
12
12
|
* rather than a wrapped document.
|
|
13
13
|
*/
|
|
14
|
-
export declare function extractUtterances(nodes:
|
|
14
|
+
export declare function extractUtterances(nodes: GuidedNavigationObject[], options?: ExtractUtterancesOptions): Promise<ReadiumSpeechUtterance[]>;
|
|
15
15
|
/**
|
|
16
16
|
* Same as `extractUtterances()`, plus `sources[i]`: the node that produced `utterances[i]`,
|
|
17
17
|
* and `blockStarts[i]`: whether `utterances[i]` begins a new block-level element.
|
|
18
18
|
*/
|
|
19
|
-
export declare function extractUtterancesWithSources(nodes:
|
|
19
|
+
export declare function extractUtterancesWithSources(nodes: GuidedNavigationObject[], options?: ExtractUtterancesOptions): Promise<{
|
|
20
20
|
utterances: ReadiumSpeechUtterance[];
|
|
21
21
|
sources: SourceTrace;
|
|
22
22
|
blockStarts: boolean[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DecodedTextref } from '
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
|
+
import { DecodedTextref } from '@readium/guided-navigation';
|
|
3
3
|
import { LocatorOptions } from '../decorator/createLocator.js';
|
|
4
4
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
5
5
|
import { SourceTrace, WalkContext } from './walkContext.js';
|
|
6
6
|
export declare function subLocateFor(nodeRef: DecodedTextref, quoteText: string): LocatorOptions;
|
|
7
|
-
export declare function resolveNodeLocate(node:
|
|
7
|
+
export declare function resolveNodeLocate(node: GuidedNavigationObject, ancestorChains: Map<GuidedNavigationObject, GuidedNavigationObject[]>): {
|
|
8
8
|
own: boolean;
|
|
9
9
|
ref: DecodedTextref;
|
|
10
10
|
} | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
2
|
import { LocatorOptions } from '../decorator/createLocator.js';
|
|
3
3
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
4
4
|
import { ResolvedNodeText } from './text.js';
|
|
@@ -11,7 +11,7 @@ export declare function joinPieceTexts(parts: string[]): {
|
|
|
11
11
|
end: number;
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
14
|
-
export declare function substitutedBareLocate(node:
|
|
14
|
+
export declare function substitutedBareLocate(node: GuidedNavigationObject, ctx: WalkContext): LocatorOptions | undefined;
|
|
15
15
|
export declare function mergeUtterances(pieces: ReadiumSpeechUtterance[], pieceSources: SourceTrace, ctx: WalkContext): ReadiumSpeechUtterance | undefined;
|
|
16
16
|
export declare function applyFormat(resolved: ResolvedNodeText, format: ExtractionFormat, language: LanguageMode | undefined, ctx: WalkContext): ReadiumSpeechUtterance[];
|
|
17
17
|
export declare function plainOf(text: string, format: ExtractionFormat): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GuidedNavigationObject, GuidedNavigationText } from '@readium/shared';
|
|
2
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
3
|
+
export declare function nodeRoles(node: GuidedNavigationObject): GndRole[];
|
|
4
|
+
export declare function spokenText(node: GuidedNavigationObject): GuidedNavigationText | undefined;
|
|
5
|
+
export declare function descriptionOf(node: GuidedNavigationObject): string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function plainTextOf(node:
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
|
+
export declare function plainTextOf(node: GuidedNavigationObject): string;
|
|
3
3
|
export interface TableStructure {
|
|
4
4
|
lines: number;
|
|
5
5
|
columns: number;
|
|
6
|
-
rowNumbers: Map<
|
|
7
|
-
cellHeaders: Map<
|
|
6
|
+
rowNumbers: Map<GuidedNavigationObject, number>;
|
|
7
|
+
cellHeaders: Map<GuidedNavigationObject, string>;
|
|
8
8
|
}
|
|
9
|
-
export declare function computeTableStructure(rows:
|
|
9
|
+
export declare function computeTableStructure(rows: GuidedNavigationObject[]): TableStructure;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
2
|
import { SubstitutionTable } from './types.js';
|
|
3
3
|
export interface ResolvedNodeText {
|
|
4
4
|
plain?: string;
|
|
@@ -6,7 +6,7 @@ export interface ResolvedNodeText {
|
|
|
6
6
|
language?: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Resolves a `
|
|
9
|
+
* Resolves a `GuidedNavigationObject.text` value (a `GuidedNavigationText`
|
|
10
10
|
* carrying separate plain/SSML variants) into the shape an utterance needs.
|
|
11
11
|
*
|
|
12
12
|
* Mirrors the Readium text object as-is: `plain` and `ssml` are independent
|
|
@@ -24,7 +24,7 @@ export interface ResolvedNodeText {
|
|
|
24
24
|
* text node under it, so this is the only place that document-declared
|
|
25
25
|
* language would otherwise be lost.
|
|
26
26
|
*/
|
|
27
|
-
export declare function resolveNodeText(text:
|
|
27
|
+
export declare function resolveNodeText(text: GuidedNavigationObject["text"]): ResolvedNodeText | undefined;
|
|
28
28
|
export declare function stripSsmlTags(ssml: string): string;
|
|
29
29
|
export declare function stripSsmlTagsWithMap(ssml: string): {
|
|
30
30
|
plain: string;
|
|
@@ -77,7 +77,7 @@ export declare function hasPlaceholder(ssml: string): boolean;
|
|
|
77
77
|
/**
|
|
78
78
|
* Splits a raw (pre-`stripPlaceholders`) SSML string on its embedded
|
|
79
79
|
* `<readium:TAG id="...">` placeholders, for `inlineContextualization`: each
|
|
80
|
-
* placeholder becomes its own segment (resolved via the `
|
|
80
|
+
* placeholder becomes its own segment (resolved via the `GuidedNavigationObject` sharing
|
|
81
81
|
* its `id`) instead of being spoken after the whole enclosing text.
|
|
82
82
|
*/
|
|
83
83
|
export declare function splitOnPlaceholders(ssml: string): SsmlSegment[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
2
3
|
import { SentenceSegmenter } from './sentenceSegmenter.js';
|
|
3
4
|
export type ExtractionFormat = "plain" | "ssml";
|
|
4
5
|
export type LanguageMode = "none" | "block-level" | "always";
|
|
@@ -10,7 +11,7 @@ export type Contextualizations = Record<GndRole, ContextualizationEntry>;
|
|
|
10
11
|
export interface ContextualizationOptions {
|
|
11
12
|
contextualizations?: Contextualizations;
|
|
12
13
|
shapes?: Partial<Record<GndRole, "inline" | "block">>;
|
|
13
|
-
params?: (role: GndRole, node:
|
|
14
|
+
params?: (role: GndRole, node: GuidedNavigationObject) => Record<string, string> | undefined;
|
|
14
15
|
}
|
|
15
16
|
export type SubstitutionRule = string | {
|
|
16
17
|
pattern: RegExp;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
2
|
-
import {
|
|
2
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
3
3
|
import { SourceTrace, WalkContext } from './walkContext.js';
|
|
4
4
|
export declare function formatPlain(text: string, ctx: WalkContext): ReadiumSpeechUtterance;
|
|
5
5
|
export declare function push(out: ReadiumSpeechUtterance[], sources: SourceTrace, node: SourceTrace[number], items: ReadiumSpeechUtterance[]): void;
|
|
6
|
-
export declare function pushPiecesOrMerged(out: ReadiumSpeechUtterance[], sources: SourceTrace, ctx: WalkContext, node:
|
|
6
|
+
export declare function pushPiecesOrMerged(out: ReadiumSpeechUtterance[], sources: SourceTrace, ctx: WalkContext, node: GuidedNavigationObject, pieces: ReadiumSpeechUtterance[], pieceSources: SourceTrace, merged: ReadiumSpeechUtterance | undefined): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
2
2
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
3
3
|
import { SourceTrace, WalkContext } from './walkContext.js';
|
|
4
|
-
export declare function walk(nodes:
|
|
4
|
+
export declare function walk(nodes: GuidedNavigationObject[], out: ReadiumSpeechUtterance[], sources: SourceTrace, ctx: WalkContext, suppress: boolean): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { i18n } from 'i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { GuidedNavigationObject } from '@readium/shared';
|
|
3
|
+
import { GndRole } from '@readium/guided-navigation';
|
|
3
4
|
import { LocatorOptions } from '../decorator/createLocator.js';
|
|
4
5
|
import { ReadiumSpeechUtterance } from '../utterance.js';
|
|
5
6
|
import { SentenceSegmenter } from './sentenceSegmenter.js';
|
|
@@ -9,7 +10,7 @@ export interface WalkContext {
|
|
|
9
10
|
skip: ReadonlySet<GndRole>;
|
|
10
11
|
contextualize: ReadonlySet<GndRole>;
|
|
11
12
|
contextualizationShapes: Partial<Record<GndRole, "inline" | "block">>;
|
|
12
|
-
contextualizationParams?: (role: GndRole, node:
|
|
13
|
+
contextualizationParams?: (role: GndRole, node: GuidedNavigationObject) => Record<string, string> | undefined;
|
|
13
14
|
format: ExtractionFormat;
|
|
14
15
|
inlineContextualization: boolean;
|
|
15
16
|
language?: LanguageMode;
|
|
@@ -18,10 +19,10 @@ export interface WalkContext {
|
|
|
18
19
|
segmenter: SentenceSegmenter;
|
|
19
20
|
substitutions: SubstitutionTable;
|
|
20
21
|
blockStarts: Set<ReadiumSpeechUtterance>;
|
|
21
|
-
tableRowNumbers: Map<
|
|
22
|
-
tableCellHeaders: Map<
|
|
22
|
+
tableRowNumbers: Map<GuidedNavigationObject, number>;
|
|
23
|
+
tableCellHeaders: Map<GuidedNavigationObject, string>;
|
|
23
24
|
synthetic: Set<ReadiumSpeechUtterance>;
|
|
24
|
-
ancestorChains: Map<
|
|
25
|
+
ancestorChains: Map<GuidedNavigationObject, GuidedNavigationObject[]>;
|
|
25
26
|
pendingRange: Map<ReadiumSpeechUtterance, {
|
|
26
27
|
start: number;
|
|
27
28
|
end: number;
|
|
@@ -31,10 +32,10 @@ export interface WalkContext {
|
|
|
31
32
|
trailing?: LocatorOptions;
|
|
32
33
|
}>;
|
|
33
34
|
}
|
|
34
|
-
export type SourceTrace = (
|
|
35
|
+
export type SourceTrace = (GuidedNavigationObject | [GuidedNavigationObject, GuidedNavigationObject] | undefined)[];
|
|
35
36
|
export declare const blockLevelRoleSet: ReadonlySet<GndRole>;
|
|
36
37
|
export declare const deferrablePlaceholderRoleSet: ReadonlySet<GndRole>;
|
|
37
38
|
export declare const descriptionFoldingRoleSet: ReadonlySet<GndRole>;
|
|
38
39
|
export declare const valueFoldingRoleSet: ReadonlySet<GndRole>;
|
|
39
40
|
export declare const contentlessRoleSet: ReadonlySet<GndRole>;
|
|
40
|
-
export declare function makeWalkContext(nodes:
|
|
41
|
+
export declare function makeWalkContext(nodes: GuidedNavigationObject[], options: ExtractUtterancesOptions): Promise<WalkContext>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadiumSpeechVoice, TQuality } from './types';
|
|
1
|
+
import { ReadiumSpeechVoice, TQuality } from './types.js';
|
|
2
2
|
export declare const isNoveltyVoice: (voiceName: string, voiceId?: string) => boolean;
|
|
3
3
|
export declare const isVeryLowQualityVoice: (voiceName: string, quality?: TQuality) => boolean;
|
|
4
4
|
export declare const filterOutNoveltyVoices: (voices: ReadiumSpeechVoice[]) => ReadiumSpeechVoice[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadiumSpeechJSONVoice } from './types';
|
|
1
|
+
import { ReadiumSpeechJSONVoice } from './types.js';
|
|
2
2
|
export interface LanguageWithRegions {
|
|
3
3
|
baseLang: string;
|
|
4
4
|
regions: string[];
|
|
@@ -47,4 +47,4 @@ export declare const getDefaultRegion: (lang: string) => string;
|
|
|
47
47
|
* @returns Array of LanguageWithRegions objects with language and region information
|
|
48
48
|
*/
|
|
49
49
|
export declare const processLanguages: (languages: string[]) => LanguageWithRegions[];
|
|
50
|
-
export * from './types';
|
|
50
|
+
export * from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TQuality } from './types';
|
|
1
|
+
import { TQuality } from './types.js';
|
|
2
2
|
export declare const getInferredQualityFromPackageName: (voiceName: string) => TQuality | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReadiumSpeechVoice } from './types';
|
|
2
|
-
import { LanguageWithRegions } from './languages';
|
|
1
|
+
import { ReadiumSpeechVoice } from './types.js';
|
|
2
|
+
import { LanguageWithRegions } from './languages.js';
|
|
3
3
|
/**
|
|
4
4
|
* Create a map of language codes to their respective voice order maps
|
|
5
5
|
* @param voices Array of voices to analyze
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readium/speech",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
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": [
|
|
@@ -21,50 +21,50 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "BSD-3-Clause",
|
|
23
23
|
"type": "module",
|
|
24
|
-
"main": "./build/index.
|
|
25
|
-
"module": "./build/index.js",
|
|
24
|
+
"main": "./build/index.js",
|
|
26
25
|
"types": "./build/index.d.ts",
|
|
27
26
|
"sideEffects": false,
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=24"
|
|
29
|
+
},
|
|
28
30
|
"files": [
|
|
29
31
|
"build"
|
|
30
32
|
],
|
|
31
33
|
"exports": {
|
|
32
34
|
".": {
|
|
33
35
|
"types": "./build/index.d.ts",
|
|
34
|
-
"
|
|
35
|
-
"require": "./build/index.cjs"
|
|
36
|
+
"default": "./build/index.js"
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"test": "npm run build && NODE_NO_WARNINGS=1 ava test/**/*.test.ts",
|
|
40
41
|
"test:voices": "npm run build && NODE_NO_WARNINGS=1 ava test/WebSpeechVoiceManager/*.test.ts",
|
|
41
|
-
"test:gnd": "NODE_NO_WARNINGS=1 ava test/gnd/*.test.ts",
|
|
42
42
|
"test:utterances": "NODE_NO_WARNINGS=1 ava test/utterances/*.test.ts",
|
|
43
43
|
"generate-metadata": "node scripts/generate-metadata.js",
|
|
44
|
-
"generate-fixtures-manifest": "node scripts/build-fixtures-manifest.js",
|
|
45
44
|
"generate-utterances": "npm run build && node scripts/generate-utterances.js",
|
|
46
|
-
"clean": "rimraf ./build",
|
|
45
|
+
"clean": "rimraf ./build ./build-demo",
|
|
47
46
|
"build": "vite build",
|
|
48
|
-
"
|
|
47
|
+
"build:demo": "vite build --mode demo",
|
|
48
|
+
"prepublishOnly": "npm run build",
|
|
49
|
+
"start": "vite",
|
|
49
50
|
"watch": "tsc -w"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@ava/typescript": "^6.0.0",
|
|
53
54
|
"@types/jsdom": "^30.0.0",
|
|
54
55
|
"ava": "^6.4.0",
|
|
55
|
-
"http-server": "^14.1.1",
|
|
56
56
|
"jsdom": "^30.0.1",
|
|
57
57
|
"rimraf": "^6.0.1",
|
|
58
|
-
"
|
|
58
|
+
"tsx": "^4.23.15",
|
|
59
59
|
"typescript": "^5.8.3",
|
|
60
60
|
"vite": "^7.1.9",
|
|
61
61
|
"vite-plugin-dts": "^4.5.4"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@readium/decorator": "1.2.
|
|
65
|
-
"@readium/
|
|
66
|
-
"@readium/
|
|
67
|
-
"
|
|
64
|
+
"@readium/decorator": "^1.2.5",
|
|
65
|
+
"@readium/guided-navigation": "^1.1.0",
|
|
66
|
+
"@readium/helpers": "^1.2.0",
|
|
67
|
+
"@readium/shared": "^2.7.0",
|
|
68
68
|
"i18next": "^26.4.0"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/build/ar-DuqkW85r.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a="ar",e="ar-SA",r="مرحبًا، اسمي {name} وأنا صوت عربي.",l=[{label:"Amina",name:"Microsoft Amina Online (Natural) - Arabic (Algeria)",language:"ar-DZ",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Ismael",name:"Microsoft Ismael Online (Natural) - Arabic (Algeria)",language:"ar-DZ",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Laila",name:"Microsoft Laila Online (Natural) - Arabic (Bahrain)",language:"ar-BH",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Ali",name:"Microsoft Ali Online (Natural) - Arabic (Bahrain)",language:"ar-BH",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Salma",name:"Microsoft Salma Online (Natural) - Arabic (Egypt)",language:"ar-EG",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Shakir",name:"Microsoft Shakir Online (Natural) - Arabic (Egypt)",language:"ar-EG",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Rana",name:"Microsoft Rana Online (Natural) - Arabic (Iraq)",language:"ar-IQ",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Bassel",name:"Microsoft Bassel Online (Natural) - Arabic (Iraq)",language:"ar-IQ",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Sana",name:"Microsoft Sana Online (Natural) - Arabic (Jordan)",language:"ar-JO",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Taim",name:"Microsoft Taim Online (Natural) - Arabic (Jordan)",language:"ar-JO",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Noura",name:"Microsoft Noura Online (Natural) - Arabic (Kuwait)",language:"ar-KW",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Fahed",name:"Microsoft Fahed Online (Natural) - Arabic (Kuwait)",language:"ar-KW",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Layla",name:"Microsoft Layla Online (Natural) - Arabic (Lebanon)",language:"ar-LB",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Rami",name:"Microsoft Rami Online (Natural) - Arabic (Lebanon)",language:"ar-LB",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Iman",name:"Microsoft Iman Online (Natural) - Arabic (Libya)",language:"ar-LY",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Omar",name:"Microsoft Omar Online (Natural) - Arabic (Libya)",language:"ar-LY",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Mouna",name:"Microsoft Mouna Online (Natural) - Arabic (Morocco)",language:"ar-MA",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Jamal",name:"Microsoft Jamal Online (Natural) - Arabic (Morocco)",language:"ar-MA",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Aysha",name:"Microsoft Aysha Online (Natural) - Arabic (Oman)",language:"ar-OM",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Abdullah",name:"Microsoft Abdullah Online (Natural) - Arabic (Oman)",language:"ar-OM",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Amal",name:"Microsoft Amal Online (Natural) - Arabic (Qatar)",language:"ar-QA",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Moaz",name:"Microsoft Moaz Online (Natural) - Arabic (Qatar)",language:"ar-QA",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Zariyah",name:"Microsoft Zariyah Online (Natural) - Arabic (Saudi Arabia)",language:"ar-SA",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Hamed",name:"Microsoft Hamed Online (Natural) - Arabic (Saudi Arabia)",language:"ar-SA",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Amany",name:"Microsoft Amany Online (Natural) - Arabic (Syria)",language:"ar-SY",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Laith",name:"Microsoft Laith Online (Natural) - Arabic (Syria)",language:"ar-SY",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Reem",name:"Microsoft Reem Online (Natural) - Arabic (Tunisia)",language:"ar-TN",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Hedi",name:"Microsoft Hedi Online (Natural) - Arabic (Tunisia)",language:"ar-TN",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Fatima",name:"Microsoft Fatima Online (Natural) - Arabic (United Arab Emirates)",language:"ar-AE",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Hamdan",name:"Microsoft Hamdan Online (Natural) - Arabic (United Arab Emirates)",language:"ar-AE",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Maryam",name:"Microsoft Maryam Online (Natural) - Arabic (Yemen)",language:"ar-YE",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Saleh",name:"Microsoft Saleh Online (Natural) - Arabic (Yemen)",language:"ar-YE",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Mariam",name:"Mariam",localizedName:"apple",language:"ar-001",gender:"female",quality:["low","normal"],rate:1,pitch:1,os:["macOS","iOS","iPadOS"]},{label:"Apple Laila",name:"Laila",localizedName:"apple",language:"ar-001",gender:"female",quality:["low","normal"],rate:1,pitch:1,os:["macOS","iOS","iPadOS"]},{label:"Tarik",name:"Tarik",localizedName:"apple",language:"ar-001",gender:"male",quality:["low","normal"],rate:1,pitch:1,os:["macOS","iOS","iPadOS"]},{label:"Majed",name:"Majed",localizedName:"apple",language:"ar-001",gender:"male",quality:["low","normal","high"],rate:1,pitch:1,os:["macOS","iOS","iPadOS"],preloaded:!0},{label:"Hoda",name:"Microsoft Hoda - Arabic (Arabic )",language:"ar-EG",gender:"female",quality:["normal"],rate:1,pitch:1,os:["Windows"],preloaded:!0},{label:"Naayf",name:"Microsoft Naayf - Arabic (Saudi Arabia)",language:"ar-AS",gender:"male",quality:["normal"],rate:1,pitch:1,os:["Windows"],preloaded:!0},{label:"صوت انثوي 1",name:"Android Speech Recognition and Synthesis from Google ar-xa-x-arc-network",altNames:["Android Speech Recognition and Synthesis from Google ar-xa-x-arc-local","Android Speech Recognition and Synthesis from Google ar-language"],nativeID:["ar-xa-x-arc-network","ar-xa-x-arc-local"],language:"ar",gender:"female",quality:["high"],rate:1,pitch:1,os:["Android","ChromeOS"],preloaded:!0,controls:{boundary:!1}},{label:"صوت انثوي 2",name:"Android Speech Recognition and Synthesis from Google ar-xa-x-arz-network",altNames:["Android Speech Recognition and Synthesis from Google ar-xa-x-arz-local"],nativeID:["ar-xa-x-arz-network","ar-xa-x-arz-local"],language:"ar",gender:"female",quality:["high"],rate:1,pitch:1,os:["Android","ChromeOS"],preloaded:!0,controls:{boundary:!1}},{label:"صوت ذكر 1",name:"Android Speech Recognition and Synthesis from Google ar-xa-x-ard-network",altNames:["Android Speech Recognition and Synthesis from Google ar-xa-x-ard-local"],nativeID:["ar-xa-x-ard-network","ar-xa-x-ard-local"],language:"ar",gender:"male",quality:["high"],rate:1,pitch:1,os:["Android","ChromeOS"],preloaded:!0,controls:{boundary:!1}},{label:"صوت ذكر 2",name:"Android Speech Recognition and Synthesis from Google ar-xa-x-are-network",altNames:["Android Speech Recognition and Synthesis from Google ar-xa-x-are-local"],nativeID:["ar-xa-x-are-network","ar-xa-x-are-local"],language:"ar",gender:"male",quality:["high"],rate:1,pitch:1,os:["Android","ChromeOS"],preloaded:!0,controls:{boundary:!1}}],o={language:a,defaultRegion:e,testUtterance:r,voices:l};exports.default=o;exports.defaultRegion=e;exports.language=a;exports.testUtterance=r;exports.voices=l;
|
package/build/bg-DQ8Or9ln.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="bg",a="bg-BG",l="Здравейте, казвам се {name} и съм български глас.",n=[{label:"Kalina",name:"Microsoft Kalina Online (Natural) - Bulgarian (Bulgaria)",language:"bg-BG",gender:"female",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Borislav",name:"Microsoft Borislav Online (Natural) - Bulgarian (Bulgaria)",language:"bg-BG",gender:"male",quality:["veryHigh"],rate:1,browser:["Edge"],preloaded:!0,controls:{pitch:!1,boundary:!1}},{label:"Daria",name:"Daria",localizedName:"apple",language:"bg-BG",gender:"female",quality:["low","normal"],rate:1,pitch:1,os:["macOS","iOS","iPadOS"],preloaded:!0},{label:"Ivan",name:"Microsoft Ivan - Bulgarian (Bulgaria)",language:"bg-BG",gender:"male",quality:["normal"],rate:1,pitch:1,os:["Windows"],preloaded:!0},{label:"Женски глас",name:"Android Speech Recognition and Synthesis from Google bg-bg-x-ifk-network",altNames:["Android Speech Recognition and Synthesis from Google bg-bg-x-ifk-local","Android Speech Recognition and Synthesis from Google bg-bg-language"],nativeID:["bg-bg-x-ifk-network","bg-bg-x-ifk-local"],language:"bg-BG",gender:"female",quality:["high"],rate:1,pitch:1,os:["Android","ChromeOS"],preloaded:!0,controls:{boundary:!1}}],o={language:e,defaultRegion:a,testUtterance:l,voices:n};exports.default=o;exports.defaultRegion=a;exports.language=e;exports.testUtterance=l;exports.voices=n;
|
package/build/bho-UB6aO8oz.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="bho",a="bho-IN",t="नमस्कार, हमार नाम {name} ह आ हम भोजपुरी आवाज हईं",o=[{label:"Jaya",name:"Jaya",localizedName:"apple",language:"bho-IN",gender:"female",quality:["low","normal"],rate:1,pitch:1,os:["macOS","iOS","iPadOS"],preloaded:!0}],l={language:e,defaultRegion:a,testUtterance:t,voices:o};exports.default=l;exports.defaultRegion=a;exports.language=e;exports.testUtterance=t;exports.voices=o;
|