ssml-builder-js 2.3.0 → 2.5.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/dist/elements.mjs CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  registerSsmlCompletionProvider,
34
34
  resolveExpressAsStyles,
35
35
  updateEditableText
36
- } from "./chunk-NPZ44CHU.mjs";
36
+ } from "./chunk-ALFYHSCR.mjs";
37
37
  import "./chunk-6S5ODO6A.mjs";
38
38
 
39
39
  // packages/ssml-editor-react/src/ssmlInsertions.ts
package/dist/index.d.mts CHANGED
@@ -1,16 +1,27 @@
1
- export { AudioElement, BookmarkElement, BreakElement, BuildPartialSsmlOptions, CustomElement, EmphasisElement, ExpressAsElement, LangElement, LexiconElement, MarkElement, MsttsSilenceElement, MsttsVisemeElement, NamedElement, ParagraphElement, PhonemeElement, ProsodyElement, SayAsElement, SentenceElement, SsmlAttributeValue, SsmlAttributes, SsmlBreakElement, SsmlDocument, SsmlElement, SsmlElementBase, SsmlExpressAsElement, SsmlNode, SsmlPartialContext, SsmlPartialProsody, SsmlPartialVoice, SsmlPhonemeElement, SsmlProsodyElement, SsmlSayAsElement, SsmlText, SsmlValidationError, SsmlVoiceElement, SubElement, VoiceElement, WordElement, buildPartialSsml, buildSsml, parseSsml, validateSsml } from './core.mjs';
1
+ export { AudioElement, AzureSsmlValidationOptions, AzureValidationOptions, BookmarkElement, BreakElement, BuildPartialSsmlOptions, CustomElement, EmphasisElement, ExpressAsElement, LangElement, LexiconElement, MapSsmlTextNodesOptions, MarkElement, MsttsSilenceElement, MsttsVisemeElement, NamedElement, ParagraphElement, PhonemeElement, ProsodyElement, SayAsElement, SentenceElement, SsmlAttributeValue, SsmlAttributes, SsmlBreakElement, SsmlDiagnostic, SsmlDiagnosticSeverity, SsmlDocument, SsmlElement, SsmlElementBase, SsmlExpressAsElement, SsmlNode, SsmlPartialContext, SsmlPartialProsody, SsmlPartialVoice, SsmlPhonemeElement, SsmlProsodyElement, SsmlSayAsElement, SsmlText, SsmlTextNodeContext, SsmlValidationError, SsmlVoiceElement, SubElement, VoiceElement, WordElement, buildPartialSsml, buildSsml, extractSsmlText, mapSsmlTextNodes, parseSsml, validateAzureSsml, validateSsml } from './core.mjs';
2
2
 
3
3
  interface TtsConfig {
4
- endpoint: string;
4
+ signal?: AbortSignal;
5
+ timeoutMs?: number;
6
+ endpoint?: string;
5
7
  subscriptionKey: string;
6
8
  region: string;
7
9
  outputFormat?: string;
8
10
  }
11
+ interface AzureTtsLogger {
12
+ debug?: (...args: unknown[]) => void;
13
+ info?: (...args: unknown[]) => void;
14
+ warn?: (...args: unknown[]) => void;
15
+ error?: (...args: unknown[]) => void;
16
+ }
9
17
  interface AzureTtsClientOptions {
18
+ signal?: AbortSignal;
19
+ timeoutMs?: number;
10
20
  subscriptionKey: string;
11
21
  region: string;
12
22
  endpoint?: string;
13
23
  outputFormat?: string;
24
+ logger?: AzureTtsLogger;
14
25
  }
15
26
 
16
27
  declare class AzureTtsError extends Error {
@@ -33,4 +44,4 @@ declare class AzureTtsClient {
33
44
 
34
45
  declare function synthesizeSpeech(ssml: string, config: TtsConfig): Promise<ArrayBuffer>;
35
46
 
36
- export { AzureTtsClient, type AzureTtsClientOptions, AzureTtsError, AzureTtsSdkError, type TtsConfig, synthesizeSpeech };
47
+ export { AzureTtsClient, type AzureTtsClientOptions, AzureTtsError, type AzureTtsLogger, AzureTtsSdkError, type TtsConfig, synthesizeSpeech };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,27 @@
1
- export { AudioElement, BookmarkElement, BreakElement, BuildPartialSsmlOptions, CustomElement, EmphasisElement, ExpressAsElement, LangElement, LexiconElement, MarkElement, MsttsSilenceElement, MsttsVisemeElement, NamedElement, ParagraphElement, PhonemeElement, ProsodyElement, SayAsElement, SentenceElement, SsmlAttributeValue, SsmlAttributes, SsmlBreakElement, SsmlDocument, SsmlElement, SsmlElementBase, SsmlExpressAsElement, SsmlNode, SsmlPartialContext, SsmlPartialProsody, SsmlPartialVoice, SsmlPhonemeElement, SsmlProsodyElement, SsmlSayAsElement, SsmlText, SsmlValidationError, SsmlVoiceElement, SubElement, VoiceElement, WordElement, buildPartialSsml, buildSsml, parseSsml, validateSsml } from './core.js';
1
+ export { AudioElement, AzureSsmlValidationOptions, AzureValidationOptions, BookmarkElement, BreakElement, BuildPartialSsmlOptions, CustomElement, EmphasisElement, ExpressAsElement, LangElement, LexiconElement, MapSsmlTextNodesOptions, MarkElement, MsttsSilenceElement, MsttsVisemeElement, NamedElement, ParagraphElement, PhonemeElement, ProsodyElement, SayAsElement, SentenceElement, SsmlAttributeValue, SsmlAttributes, SsmlBreakElement, SsmlDiagnostic, SsmlDiagnosticSeverity, SsmlDocument, SsmlElement, SsmlElementBase, SsmlExpressAsElement, SsmlNode, SsmlPartialContext, SsmlPartialProsody, SsmlPartialVoice, SsmlPhonemeElement, SsmlProsodyElement, SsmlSayAsElement, SsmlText, SsmlTextNodeContext, SsmlValidationError, SsmlVoiceElement, SubElement, VoiceElement, WordElement, buildPartialSsml, buildSsml, extractSsmlText, mapSsmlTextNodes, parseSsml, validateAzureSsml, validateSsml } from './core.js';
2
2
 
3
3
  interface TtsConfig {
4
- endpoint: string;
4
+ signal?: AbortSignal;
5
+ timeoutMs?: number;
6
+ endpoint?: string;
5
7
  subscriptionKey: string;
6
8
  region: string;
7
9
  outputFormat?: string;
8
10
  }
11
+ interface AzureTtsLogger {
12
+ debug?: (...args: unknown[]) => void;
13
+ info?: (...args: unknown[]) => void;
14
+ warn?: (...args: unknown[]) => void;
15
+ error?: (...args: unknown[]) => void;
16
+ }
9
17
  interface AzureTtsClientOptions {
18
+ signal?: AbortSignal;
19
+ timeoutMs?: number;
10
20
  subscriptionKey: string;
11
21
  region: string;
12
22
  endpoint?: string;
13
23
  outputFormat?: string;
24
+ logger?: AzureTtsLogger;
14
25
  }
15
26
 
16
27
  declare class AzureTtsError extends Error {
@@ -33,4 +44,4 @@ declare class AzureTtsClient {
33
44
 
34
45
  declare function synthesizeSpeech(ssml: string, config: TtsConfig): Promise<ArrayBuffer>;
35
46
 
36
- export { AzureTtsClient, type AzureTtsClientOptions, AzureTtsError, AzureTtsSdkError, type TtsConfig, synthesizeSpeech };
47
+ export { AzureTtsClient, type AzureTtsClientOptions, AzureTtsError, type AzureTtsLogger, AzureTtsSdkError, type TtsConfig, synthesizeSpeech };