@capgo/capacitor-speech-synthesis 7.0.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/CapgoCapacitorSpeechSynthesis.podspec +17 -0
- package/LICENSE +21 -0
- package/Package.swift +28 -0
- package/README.md +507 -0
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/ee/forgr/plugin/speechsynthesis/SpeechSynthesisPlugin.java +438 -0
- package/dist/docs.json +1089 -0
- package/dist/esm/definitions.d.ts +519 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +35 -0
- package/dist/esm/web.js +153 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +167 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +170 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/SpeechSynthesisPlugin/SpeechSynthesisPlugin.swift +338 -0
- package/ios/Tests/SpeechSynthesisPluginTests/SpeechSynthesisPluginTests.swift +10 -0
- package/package.json +86 -0
package/dist/docs.json
ADDED
|
@@ -0,0 +1,1089 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "SpeechSynthesisPlugin",
|
|
4
|
+
"slug": "speechsynthesisplugin",
|
|
5
|
+
"docs": "Speech Synthesis Plugin for synthesizing speech from text.",
|
|
6
|
+
"tags": [
|
|
7
|
+
{
|
|
8
|
+
"text": "1.0.0",
|
|
9
|
+
"name": "since"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"methods": [
|
|
13
|
+
{
|
|
14
|
+
"name": "speak",
|
|
15
|
+
"signature": "(options: SpeakOptions) => Promise<SpeakResult>",
|
|
16
|
+
"parameters": [
|
|
17
|
+
{
|
|
18
|
+
"name": "options",
|
|
19
|
+
"docs": "- The speech options including text and voice settings",
|
|
20
|
+
"type": "SpeakOptions"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"returns": "Promise<SpeakResult>",
|
|
24
|
+
"tags": [
|
|
25
|
+
{
|
|
26
|
+
"name": "param",
|
|
27
|
+
"text": "options - The speech options including text and voice settings"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "returns",
|
|
31
|
+
"text": "Promise resolving with the utterance ID"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "since",
|
|
35
|
+
"text": "1.0.0"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "example",
|
|
39
|
+
"text": "```typescript\nconst result = await SpeechSynthesis.speak({\n text: 'Hello, world!',\n language: 'en-US',\n rate: 1.0,\n pitch: 1.0,\n volume: 1.0,\n queueStrategy: 'Add'\n});\nconsole.log('Utterance ID:', result.utteranceId);\n```"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"docs": "Speaks the given text with specified options.\nThe utterance is added to the speech queue.",
|
|
43
|
+
"complexTypes": [
|
|
44
|
+
"SpeakResult",
|
|
45
|
+
"SpeakOptions"
|
|
46
|
+
],
|
|
47
|
+
"slug": "speak"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "synthesizeToFile",
|
|
51
|
+
"signature": "(options: SpeakOptions) => Promise<SynthesizeToFileResult>",
|
|
52
|
+
"parameters": [
|
|
53
|
+
{
|
|
54
|
+
"name": "options",
|
|
55
|
+
"docs": "- The speech options including text and voice settings",
|
|
56
|
+
"type": "SpeakOptions"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"returns": "Promise<SynthesizeToFileResult>",
|
|
60
|
+
"tags": [
|
|
61
|
+
{
|
|
62
|
+
"name": "param",
|
|
63
|
+
"text": "options - The speech options including text and voice settings"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "returns",
|
|
67
|
+
"text": "Promise resolving with the file path and utterance ID"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "since",
|
|
71
|
+
"text": "1.0.0"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "example",
|
|
75
|
+
"text": "```typescript\nconst result = await SpeechSynthesis.synthesizeToFile({\n text: 'Hello, world!',\n language: 'en-US'\n});\nconsole.log('Audio file saved at:', result.filePath);\n```"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"docs": "Synthesizes speech to an audio file (Android/iOS only).\nReturns the file path where the audio was saved.",
|
|
79
|
+
"complexTypes": [
|
|
80
|
+
"SynthesizeToFileResult",
|
|
81
|
+
"SpeakOptions"
|
|
82
|
+
],
|
|
83
|
+
"slug": "synthesizetofile"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "cancel",
|
|
87
|
+
"signature": "() => Promise<void>",
|
|
88
|
+
"parameters": [],
|
|
89
|
+
"returns": "Promise<void>",
|
|
90
|
+
"tags": [
|
|
91
|
+
{
|
|
92
|
+
"name": "returns",
|
|
93
|
+
"text": "Promise that resolves when speech is cancelled"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "since",
|
|
97
|
+
"text": "1.0.0"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "example",
|
|
101
|
+
"text": "```typescript\nawait SpeechSynthesis.cancel();\n```"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"docs": "Cancels all queued utterances and stops current speech.",
|
|
105
|
+
"complexTypes": [],
|
|
106
|
+
"slug": "cancel"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "pause",
|
|
110
|
+
"signature": "() => Promise<void>",
|
|
111
|
+
"parameters": [],
|
|
112
|
+
"returns": "Promise<void>",
|
|
113
|
+
"tags": [
|
|
114
|
+
{
|
|
115
|
+
"name": "returns",
|
|
116
|
+
"text": "Promise that resolves when speech is paused"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "since",
|
|
120
|
+
"text": "1.0.0"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "example",
|
|
124
|
+
"text": "```typescript\nawait SpeechSynthesis.pause();\n```"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"docs": "Pauses speech immediately.",
|
|
128
|
+
"complexTypes": [],
|
|
129
|
+
"slug": "pause"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "resume",
|
|
133
|
+
"signature": "() => Promise<void>",
|
|
134
|
+
"parameters": [],
|
|
135
|
+
"returns": "Promise<void>",
|
|
136
|
+
"tags": [
|
|
137
|
+
{
|
|
138
|
+
"name": "returns",
|
|
139
|
+
"text": "Promise that resolves when speech is resumed"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "since",
|
|
143
|
+
"text": "1.0.0"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "example",
|
|
147
|
+
"text": "```typescript\nawait SpeechSynthesis.resume();\n```"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"docs": "Resumes paused speech.",
|
|
151
|
+
"complexTypes": [],
|
|
152
|
+
"slug": "resume"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "isSpeaking",
|
|
156
|
+
"signature": "() => Promise<{ isSpeaking: boolean; }>",
|
|
157
|
+
"parameters": [],
|
|
158
|
+
"returns": "Promise<{ isSpeaking: boolean; }>",
|
|
159
|
+
"tags": [
|
|
160
|
+
{
|
|
161
|
+
"name": "returns",
|
|
162
|
+
"text": "Promise resolving with the speaking state"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "since",
|
|
166
|
+
"text": "1.0.0"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "example",
|
|
170
|
+
"text": "```typescript\nconst { isSpeaking } = await SpeechSynthesis.isSpeaking();\nconsole.log('Is speaking:', isSpeaking);\n```"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"docs": "Checks if speech synthesis is currently speaking.",
|
|
174
|
+
"complexTypes": [],
|
|
175
|
+
"slug": "isspeaking"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "isAvailable",
|
|
179
|
+
"signature": "() => Promise<{ isAvailable: boolean; }>",
|
|
180
|
+
"parameters": [],
|
|
181
|
+
"returns": "Promise<{ isAvailable: boolean; }>",
|
|
182
|
+
"tags": [
|
|
183
|
+
{
|
|
184
|
+
"name": "returns",
|
|
185
|
+
"text": "Promise resolving with the availability status"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "since",
|
|
189
|
+
"text": "1.0.0"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "example",
|
|
193
|
+
"text": "```typescript\nconst { isAvailable } = await SpeechSynthesis.isAvailable();\nif (isAvailable) {\n console.log('Speech synthesis is available');\n}\n```"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"docs": "Checks if speech synthesis is available on the device.",
|
|
197
|
+
"complexTypes": [],
|
|
198
|
+
"slug": "isavailable"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "getVoices",
|
|
202
|
+
"signature": "() => Promise<{ voices: VoiceInfo[]; }>",
|
|
203
|
+
"parameters": [],
|
|
204
|
+
"returns": "Promise<{ voices: VoiceInfo[]; }>",
|
|
205
|
+
"tags": [
|
|
206
|
+
{
|
|
207
|
+
"name": "returns",
|
|
208
|
+
"text": "Promise resolving with the list of available voices"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "since",
|
|
212
|
+
"text": "1.0.0"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "example",
|
|
216
|
+
"text": "```typescript\nconst { voices } = await SpeechSynthesis.getVoices();\nvoices.forEach(voice => {\n console.log(`${voice.name} (${voice.language})`);\n});\n```"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"docs": "Gets all available voices.",
|
|
220
|
+
"complexTypes": [
|
|
221
|
+
"VoiceInfo"
|
|
222
|
+
],
|
|
223
|
+
"slug": "getvoices"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "getLanguages",
|
|
227
|
+
"signature": "() => Promise<{ languages: string[]; }>",
|
|
228
|
+
"parameters": [],
|
|
229
|
+
"returns": "Promise<{ languages: string[]; }>",
|
|
230
|
+
"tags": [
|
|
231
|
+
{
|
|
232
|
+
"name": "returns",
|
|
233
|
+
"text": "Promise resolving with the list of available language codes"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "since",
|
|
237
|
+
"text": "1.0.0"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "example",
|
|
241
|
+
"text": "```typescript\nconst { languages } = await SpeechSynthesis.getLanguages();\nconsole.log('Available languages:', languages);\n```"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"docs": "Gets all available languages.",
|
|
245
|
+
"complexTypes": [],
|
|
246
|
+
"slug": "getlanguages"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "isLanguageAvailable",
|
|
250
|
+
"signature": "(options: IsLanguageAvailableOptions) => Promise<{ isAvailable: boolean; }>",
|
|
251
|
+
"parameters": [
|
|
252
|
+
{
|
|
253
|
+
"name": "options",
|
|
254
|
+
"docs": "- The language to check",
|
|
255
|
+
"type": "IsLanguageAvailableOptions"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"returns": "Promise<{ isAvailable: boolean; }>",
|
|
259
|
+
"tags": [
|
|
260
|
+
{
|
|
261
|
+
"name": "param",
|
|
262
|
+
"text": "options - The language to check"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "returns",
|
|
266
|
+
"text": "Promise resolving with the availability status"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "since",
|
|
270
|
+
"text": "1.0.0"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "example",
|
|
274
|
+
"text": "```typescript\nconst { isAvailable } = await SpeechSynthesis.isLanguageAvailable({\n language: 'es-ES'\n});\nconsole.log('Spanish available:', isAvailable);\n```"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"docs": "Checks if a specific language is available.",
|
|
278
|
+
"complexTypes": [
|
|
279
|
+
"IsLanguageAvailableOptions"
|
|
280
|
+
],
|
|
281
|
+
"slug": "islanguageavailable"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "isVoiceAvailable",
|
|
285
|
+
"signature": "(options: IsVoiceAvailableOptions) => Promise<{ isAvailable: boolean; }>",
|
|
286
|
+
"parameters": [
|
|
287
|
+
{
|
|
288
|
+
"name": "options",
|
|
289
|
+
"docs": "- The voice ID to check",
|
|
290
|
+
"type": "IsVoiceAvailableOptions"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"returns": "Promise<{ isAvailable: boolean; }>",
|
|
294
|
+
"tags": [
|
|
295
|
+
{
|
|
296
|
+
"name": "param",
|
|
297
|
+
"text": "options - The voice ID to check"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "returns",
|
|
301
|
+
"text": "Promise resolving with the availability status"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "since",
|
|
305
|
+
"text": "1.0.0"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "example",
|
|
309
|
+
"text": "```typescript\nconst { isAvailable } = await SpeechSynthesis.isVoiceAvailable({\n voiceId: 'com.apple.ttsbundle.Samantha-compact'\n});\nconsole.log('Voice available:', isAvailable);\n```"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"docs": "Checks if a specific voice is available.",
|
|
313
|
+
"complexTypes": [
|
|
314
|
+
"IsVoiceAvailableOptions"
|
|
315
|
+
],
|
|
316
|
+
"slug": "isvoiceavailable"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "initialize",
|
|
320
|
+
"signature": "() => Promise<void>",
|
|
321
|
+
"parameters": [],
|
|
322
|
+
"returns": "Promise<void>",
|
|
323
|
+
"tags": [
|
|
324
|
+
{
|
|
325
|
+
"name": "returns",
|
|
326
|
+
"text": "Promise that resolves when initialized"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "since",
|
|
330
|
+
"text": "1.0.0"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "example",
|
|
334
|
+
"text": "```typescript\nawait SpeechSynthesis.initialize();\n```"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"docs": "Initializes the speech synthesis engine (iOS optimization).\nThis can reduce latency for the first speech request.",
|
|
338
|
+
"complexTypes": [],
|
|
339
|
+
"slug": "initialize"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "activateAudioSession",
|
|
343
|
+
"signature": "(options: ActivateAudioSessionOptions) => Promise<void>",
|
|
344
|
+
"parameters": [
|
|
345
|
+
{
|
|
346
|
+
"name": "options",
|
|
347
|
+
"docs": "- The audio session category",
|
|
348
|
+
"type": "ActivateAudioSessionOptions"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"returns": "Promise<void>",
|
|
352
|
+
"tags": [
|
|
353
|
+
{
|
|
354
|
+
"name": "param",
|
|
355
|
+
"text": "options - The audio session category"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "returns",
|
|
359
|
+
"text": "Promise that resolves when activated"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "since",
|
|
363
|
+
"text": "1.0.0"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "example",
|
|
367
|
+
"text": "```typescript\nawait SpeechSynthesis.activateAudioSession({\n category: 'Playback'\n});\n```"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"docs": "Activates the audio session with a specific category (iOS only).",
|
|
371
|
+
"complexTypes": [
|
|
372
|
+
"ActivateAudioSessionOptions"
|
|
373
|
+
],
|
|
374
|
+
"slug": "activateaudiosession"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "deactivateAudioSession",
|
|
378
|
+
"signature": "() => Promise<void>",
|
|
379
|
+
"parameters": [],
|
|
380
|
+
"returns": "Promise<void>",
|
|
381
|
+
"tags": [
|
|
382
|
+
{
|
|
383
|
+
"name": "returns",
|
|
384
|
+
"text": "Promise that resolves when deactivated"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "since",
|
|
388
|
+
"text": "1.0.0"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "example",
|
|
392
|
+
"text": "```typescript\nawait SpeechSynthesis.deactivateAudioSession();\n```"
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"docs": "Deactivates the audio session (iOS only).",
|
|
396
|
+
"complexTypes": [],
|
|
397
|
+
"slug": "deactivateaudiosession"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "getPluginVersion",
|
|
401
|
+
"signature": "() => Promise<{ version: string; }>",
|
|
402
|
+
"parameters": [],
|
|
403
|
+
"returns": "Promise<{ version: string; }>",
|
|
404
|
+
"tags": [
|
|
405
|
+
{
|
|
406
|
+
"name": "returns",
|
|
407
|
+
"text": "Promise resolving with the plugin version"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "since",
|
|
411
|
+
"text": "1.0.0"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "example",
|
|
415
|
+
"text": "```typescript\nconst { version } = await SpeechSynthesis.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"docs": "Gets the native plugin version.",
|
|
419
|
+
"complexTypes": [],
|
|
420
|
+
"slug": "getpluginversion"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "addListener",
|
|
424
|
+
"signature": "(eventName: 'start', listenerFunc: (event: UtteranceEvent) => void) => Promise<PluginListenerHandle>",
|
|
425
|
+
"parameters": [
|
|
426
|
+
{
|
|
427
|
+
"name": "eventName",
|
|
428
|
+
"docs": "- The event name ('start')",
|
|
429
|
+
"type": "'start'"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "listenerFunc",
|
|
433
|
+
"docs": "- The callback function",
|
|
434
|
+
"type": "(event: UtteranceEvent) => void"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
438
|
+
"tags": [
|
|
439
|
+
{
|
|
440
|
+
"name": "param",
|
|
441
|
+
"text": "eventName - The event name ('start')"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "param",
|
|
445
|
+
"text": "listenerFunc - The callback function"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "returns",
|
|
449
|
+
"text": "A handle to remove the listener"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "since",
|
|
453
|
+
"text": "1.0.0"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "example",
|
|
457
|
+
"text": "```typescript\nconst listener = await SpeechSynthesis.addListener('start', (event) => {\n console.log('Started speaking:', event.utteranceId);\n});\n// Later: listener.remove();\n```"
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"docs": "Listens for when an utterance starts speaking.",
|
|
461
|
+
"complexTypes": [
|
|
462
|
+
"PluginListenerHandle",
|
|
463
|
+
"UtteranceEvent"
|
|
464
|
+
],
|
|
465
|
+
"slug": "addlistenerstart-"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "addListener",
|
|
469
|
+
"signature": "(eventName: 'end', listenerFunc: (event: UtteranceEvent) => void) => Promise<PluginListenerHandle>",
|
|
470
|
+
"parameters": [
|
|
471
|
+
{
|
|
472
|
+
"name": "eventName",
|
|
473
|
+
"docs": "- The event name ('end')",
|
|
474
|
+
"type": "'end'"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "listenerFunc",
|
|
478
|
+
"docs": "- The callback function",
|
|
479
|
+
"type": "(event: UtteranceEvent) => void"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
483
|
+
"tags": [
|
|
484
|
+
{
|
|
485
|
+
"name": "param",
|
|
486
|
+
"text": "eventName - The event name ('end')"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "param",
|
|
490
|
+
"text": "listenerFunc - The callback function"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "returns",
|
|
494
|
+
"text": "A handle to remove the listener"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "since",
|
|
498
|
+
"text": "1.0.0"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "example",
|
|
502
|
+
"text": "```typescript\nconst listener = await SpeechSynthesis.addListener('end', (event) => {\n console.log('Finished speaking:', event.utteranceId);\n});\n```"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"docs": "Listens for when an utterance finishes speaking.",
|
|
506
|
+
"complexTypes": [
|
|
507
|
+
"PluginListenerHandle",
|
|
508
|
+
"UtteranceEvent"
|
|
509
|
+
],
|
|
510
|
+
"slug": "addlistenerend-"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "addListener",
|
|
514
|
+
"signature": "(eventName: 'boundary', listenerFunc: (event: BoundaryEvent) => void) => Promise<PluginListenerHandle>",
|
|
515
|
+
"parameters": [
|
|
516
|
+
{
|
|
517
|
+
"name": "eventName",
|
|
518
|
+
"docs": "- The event name ('boundary')",
|
|
519
|
+
"type": "'boundary'"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "listenerFunc",
|
|
523
|
+
"docs": "- The callback function",
|
|
524
|
+
"type": "(event: BoundaryEvent) => void"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
528
|
+
"tags": [
|
|
529
|
+
{
|
|
530
|
+
"name": "param",
|
|
531
|
+
"text": "eventName - The event name ('boundary')"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "param",
|
|
535
|
+
"text": "listenerFunc - The callback function"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "returns",
|
|
539
|
+
"text": "A handle to remove the listener"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "since",
|
|
543
|
+
"text": "1.0.0"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "example",
|
|
547
|
+
"text": "```typescript\nconst listener = await SpeechSynthesis.addListener('boundary', (event) => {\n console.log('Word boundary at:', event.charIndex);\n});\n```"
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"docs": "Listens for word boundaries during speech.",
|
|
551
|
+
"complexTypes": [
|
|
552
|
+
"PluginListenerHandle",
|
|
553
|
+
"BoundaryEvent"
|
|
554
|
+
],
|
|
555
|
+
"slug": "addlistenerboundary-"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "addListener",
|
|
559
|
+
"signature": "(eventName: 'error', listenerFunc: (event: ErrorEvent) => void) => Promise<PluginListenerHandle>",
|
|
560
|
+
"parameters": [
|
|
561
|
+
{
|
|
562
|
+
"name": "eventName",
|
|
563
|
+
"docs": "- The event name ('error')",
|
|
564
|
+
"type": "'error'"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "listenerFunc",
|
|
568
|
+
"docs": "- The callback function",
|
|
569
|
+
"type": "(event: ErrorEvent) => void"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
573
|
+
"tags": [
|
|
574
|
+
{
|
|
575
|
+
"name": "param",
|
|
576
|
+
"text": "eventName - The event name ('error')"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "param",
|
|
580
|
+
"text": "listenerFunc - The callback function"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "returns",
|
|
584
|
+
"text": "A handle to remove the listener"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "since",
|
|
588
|
+
"text": "1.0.0"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "example",
|
|
592
|
+
"text": "```typescript\nconst listener = await SpeechSynthesis.addListener('error', (event) => {\n console.error('Speech error:', event.error);\n});\n```"
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"docs": "Listens for synthesis errors.",
|
|
596
|
+
"complexTypes": [
|
|
597
|
+
"PluginListenerHandle",
|
|
598
|
+
"ErrorEvent"
|
|
599
|
+
],
|
|
600
|
+
"slug": "addlistenererror-"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "removeAllListeners",
|
|
604
|
+
"signature": "() => Promise<void>",
|
|
605
|
+
"parameters": [],
|
|
606
|
+
"returns": "Promise<void>",
|
|
607
|
+
"tags": [
|
|
608
|
+
{
|
|
609
|
+
"name": "returns",
|
|
610
|
+
"text": "Promise that resolves when listeners are removed"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "since",
|
|
614
|
+
"text": "1.0.0"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "example",
|
|
618
|
+
"text": "```typescript\nawait SpeechSynthesis.removeAllListeners();\n```"
|
|
619
|
+
}
|
|
620
|
+
],
|
|
621
|
+
"docs": "Removes all event listeners.",
|
|
622
|
+
"complexTypes": [],
|
|
623
|
+
"slug": "removealllisteners"
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"properties": []
|
|
627
|
+
},
|
|
628
|
+
"interfaces": [
|
|
629
|
+
{
|
|
630
|
+
"name": "SpeakResult",
|
|
631
|
+
"slug": "speakresult",
|
|
632
|
+
"docs": "Result from speaking text.",
|
|
633
|
+
"tags": [
|
|
634
|
+
{
|
|
635
|
+
"text": "1.0.0",
|
|
636
|
+
"name": "since"
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
"methods": [],
|
|
640
|
+
"properties": [
|
|
641
|
+
{
|
|
642
|
+
"name": "utteranceId",
|
|
643
|
+
"tags": [
|
|
644
|
+
{
|
|
645
|
+
"text": "1.0.0",
|
|
646
|
+
"name": "since"
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"docs": "Unique identifier for this utterance.",
|
|
650
|
+
"complexTypes": [],
|
|
651
|
+
"type": "string"
|
|
652
|
+
}
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "SpeakOptions",
|
|
657
|
+
"slug": "speakoptions",
|
|
658
|
+
"docs": "Options for speaking text.",
|
|
659
|
+
"tags": [
|
|
660
|
+
{
|
|
661
|
+
"text": "1.0.0",
|
|
662
|
+
"name": "since"
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"methods": [],
|
|
666
|
+
"properties": [
|
|
667
|
+
{
|
|
668
|
+
"name": "text",
|
|
669
|
+
"tags": [
|
|
670
|
+
{
|
|
671
|
+
"text": "1.0.0",
|
|
672
|
+
"name": "since"
|
|
673
|
+
}
|
|
674
|
+
],
|
|
675
|
+
"docs": "The text to speak.",
|
|
676
|
+
"complexTypes": [],
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"name": "language",
|
|
681
|
+
"tags": [
|
|
682
|
+
{
|
|
683
|
+
"text": "1.0.0",
|
|
684
|
+
"name": "since"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"docs": "The BCP-47 language tag (e.g., 'en-US', 'es-ES').",
|
|
688
|
+
"complexTypes": [],
|
|
689
|
+
"type": "string | undefined"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "voiceId",
|
|
693
|
+
"tags": [
|
|
694
|
+
{
|
|
695
|
+
"text": "1.0.0",
|
|
696
|
+
"name": "since"
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"docs": "The voice identifier to use.",
|
|
700
|
+
"complexTypes": [],
|
|
701
|
+
"type": "string | undefined"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "pitch",
|
|
705
|
+
"tags": [
|
|
706
|
+
{
|
|
707
|
+
"text": "1.0.0",
|
|
708
|
+
"name": "since"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"docs": "The pitch of the voice (0.5 to 2.0, default: 1.0).",
|
|
712
|
+
"complexTypes": [],
|
|
713
|
+
"type": "number | undefined"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "rate",
|
|
717
|
+
"tags": [
|
|
718
|
+
{
|
|
719
|
+
"text": "1.0.0",
|
|
720
|
+
"name": "since"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
"docs": "The speaking rate (0.1 to 10.0, default: 1.0).",
|
|
724
|
+
"complexTypes": [],
|
|
725
|
+
"type": "number | undefined"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"name": "volume",
|
|
729
|
+
"tags": [
|
|
730
|
+
{
|
|
731
|
+
"text": "1.0.0",
|
|
732
|
+
"name": "since"
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"docs": "The volume (0.0 to 1.0, default: 1.0).",
|
|
736
|
+
"complexTypes": [],
|
|
737
|
+
"type": "number | undefined"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "queueStrategy",
|
|
741
|
+
"tags": [
|
|
742
|
+
{
|
|
743
|
+
"text": "1.0.0",
|
|
744
|
+
"name": "since"
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
"docs": "The queue strategy: 'Add' to append or 'Flush' to replace queue.\nDefault: 'Add'",
|
|
748
|
+
"complexTypes": [],
|
|
749
|
+
"type": "'Add' | 'Flush' | undefined"
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "SynthesizeToFileResult",
|
|
755
|
+
"slug": "synthesizetofileresult",
|
|
756
|
+
"docs": "Result from synthesizing to file.",
|
|
757
|
+
"tags": [
|
|
758
|
+
{
|
|
759
|
+
"text": "1.0.0",
|
|
760
|
+
"name": "since"
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"methods": [],
|
|
764
|
+
"properties": [
|
|
765
|
+
{
|
|
766
|
+
"name": "filePath",
|
|
767
|
+
"tags": [
|
|
768
|
+
{
|
|
769
|
+
"text": "1.0.0",
|
|
770
|
+
"name": "since"
|
|
771
|
+
}
|
|
772
|
+
],
|
|
773
|
+
"docs": "The file path where audio was saved.",
|
|
774
|
+
"complexTypes": [],
|
|
775
|
+
"type": "string"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "utteranceId",
|
|
779
|
+
"tags": [
|
|
780
|
+
{
|
|
781
|
+
"text": "1.0.0",
|
|
782
|
+
"name": "since"
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
"docs": "Unique identifier for this utterance.",
|
|
786
|
+
"complexTypes": [],
|
|
787
|
+
"type": "string"
|
|
788
|
+
}
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "VoiceInfo",
|
|
793
|
+
"slug": "voiceinfo",
|
|
794
|
+
"docs": "Information about a voice.",
|
|
795
|
+
"tags": [
|
|
796
|
+
{
|
|
797
|
+
"text": "1.0.0",
|
|
798
|
+
"name": "since"
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
"methods": [],
|
|
802
|
+
"properties": [
|
|
803
|
+
{
|
|
804
|
+
"name": "id",
|
|
805
|
+
"tags": [
|
|
806
|
+
{
|
|
807
|
+
"text": "1.0.0",
|
|
808
|
+
"name": "since"
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
"docs": "Unique voice identifier.",
|
|
812
|
+
"complexTypes": [],
|
|
813
|
+
"type": "string"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "name",
|
|
817
|
+
"tags": [
|
|
818
|
+
{
|
|
819
|
+
"text": "1.0.0",
|
|
820
|
+
"name": "since"
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"docs": "Display name of the voice.",
|
|
824
|
+
"complexTypes": [],
|
|
825
|
+
"type": "string"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "language",
|
|
829
|
+
"tags": [
|
|
830
|
+
{
|
|
831
|
+
"text": "1.0.0",
|
|
832
|
+
"name": "since"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"docs": "BCP-47 language code.",
|
|
836
|
+
"complexTypes": [],
|
|
837
|
+
"type": "string"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "gender",
|
|
841
|
+
"tags": [
|
|
842
|
+
{
|
|
843
|
+
"text": "1.0.0",
|
|
844
|
+
"name": "since"
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
"docs": "Gender of the voice (iOS only).",
|
|
848
|
+
"complexTypes": [],
|
|
849
|
+
"type": "'male' | 'female' | 'neutral' | undefined"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "isNetworkConnectionRequired",
|
|
853
|
+
"tags": [
|
|
854
|
+
{
|
|
855
|
+
"text": "1.0.0",
|
|
856
|
+
"name": "since"
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"docs": "Whether this voice requires a network connection.",
|
|
860
|
+
"complexTypes": [],
|
|
861
|
+
"type": "boolean | undefined"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "default",
|
|
865
|
+
"tags": [
|
|
866
|
+
{
|
|
867
|
+
"text": "1.0.0",
|
|
868
|
+
"name": "since"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
"docs": "Whether this is the default voice (Web only).",
|
|
872
|
+
"complexTypes": [],
|
|
873
|
+
"type": "boolean | undefined"
|
|
874
|
+
}
|
|
875
|
+
]
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"name": "IsLanguageAvailableOptions",
|
|
879
|
+
"slug": "islanguageavailableoptions",
|
|
880
|
+
"docs": "Options for checking language availability.",
|
|
881
|
+
"tags": [
|
|
882
|
+
{
|
|
883
|
+
"text": "1.0.0",
|
|
884
|
+
"name": "since"
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
"methods": [],
|
|
888
|
+
"properties": [
|
|
889
|
+
{
|
|
890
|
+
"name": "language",
|
|
891
|
+
"tags": [
|
|
892
|
+
{
|
|
893
|
+
"text": "1.0.0",
|
|
894
|
+
"name": "since"
|
|
895
|
+
}
|
|
896
|
+
],
|
|
897
|
+
"docs": "The BCP-47 language code to check.",
|
|
898
|
+
"complexTypes": [],
|
|
899
|
+
"type": "string"
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"name": "IsVoiceAvailableOptions",
|
|
905
|
+
"slug": "isvoiceavailableoptions",
|
|
906
|
+
"docs": "Options for checking voice availability.",
|
|
907
|
+
"tags": [
|
|
908
|
+
{
|
|
909
|
+
"text": "1.0.0",
|
|
910
|
+
"name": "since"
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"methods": [],
|
|
914
|
+
"properties": [
|
|
915
|
+
{
|
|
916
|
+
"name": "voiceId",
|
|
917
|
+
"tags": [
|
|
918
|
+
{
|
|
919
|
+
"text": "1.0.0",
|
|
920
|
+
"name": "since"
|
|
921
|
+
}
|
|
922
|
+
],
|
|
923
|
+
"docs": "The voice ID to check.",
|
|
924
|
+
"complexTypes": [],
|
|
925
|
+
"type": "string"
|
|
926
|
+
}
|
|
927
|
+
]
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "ActivateAudioSessionOptions",
|
|
931
|
+
"slug": "activateaudiosessionoptions",
|
|
932
|
+
"docs": "Options for activating the audio session (iOS only).",
|
|
933
|
+
"tags": [
|
|
934
|
+
{
|
|
935
|
+
"text": "1.0.0",
|
|
936
|
+
"name": "since"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"methods": [],
|
|
940
|
+
"properties": [
|
|
941
|
+
{
|
|
942
|
+
"name": "category",
|
|
943
|
+
"tags": [
|
|
944
|
+
{
|
|
945
|
+
"text": "1.0.0",
|
|
946
|
+
"name": "since"
|
|
947
|
+
}
|
|
948
|
+
],
|
|
949
|
+
"docs": "The audio session category.\n- 'Ambient': Mixes with other audio\n- 'Playback': Stops other audio",
|
|
950
|
+
"complexTypes": [],
|
|
951
|
+
"type": "'Ambient' | 'Playback'"
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "PluginListenerHandle",
|
|
957
|
+
"slug": "pluginlistenerhandle",
|
|
958
|
+
"docs": "",
|
|
959
|
+
"tags": [],
|
|
960
|
+
"methods": [],
|
|
961
|
+
"properties": [
|
|
962
|
+
{
|
|
963
|
+
"name": "remove",
|
|
964
|
+
"tags": [],
|
|
965
|
+
"docs": "",
|
|
966
|
+
"complexTypes": [],
|
|
967
|
+
"type": "() => Promise<void>"
|
|
968
|
+
}
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "UtteranceEvent",
|
|
973
|
+
"slug": "utteranceevent",
|
|
974
|
+
"docs": "Event emitted when utterance starts or ends.",
|
|
975
|
+
"tags": [
|
|
976
|
+
{
|
|
977
|
+
"text": "1.0.0",
|
|
978
|
+
"name": "since"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"methods": [],
|
|
982
|
+
"properties": [
|
|
983
|
+
{
|
|
984
|
+
"name": "utteranceId",
|
|
985
|
+
"tags": [
|
|
986
|
+
{
|
|
987
|
+
"text": "1.0.0",
|
|
988
|
+
"name": "since"
|
|
989
|
+
}
|
|
990
|
+
],
|
|
991
|
+
"docs": "The utterance identifier.",
|
|
992
|
+
"complexTypes": [],
|
|
993
|
+
"type": "string"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "BoundaryEvent",
|
|
999
|
+
"slug": "boundaryevent",
|
|
1000
|
+
"docs": "Event emitted at word boundaries.",
|
|
1001
|
+
"tags": [
|
|
1002
|
+
{
|
|
1003
|
+
"text": "1.0.0",
|
|
1004
|
+
"name": "since"
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
"methods": [],
|
|
1008
|
+
"properties": [
|
|
1009
|
+
{
|
|
1010
|
+
"name": "utteranceId",
|
|
1011
|
+
"tags": [
|
|
1012
|
+
{
|
|
1013
|
+
"text": "1.0.0",
|
|
1014
|
+
"name": "since"
|
|
1015
|
+
}
|
|
1016
|
+
],
|
|
1017
|
+
"docs": "The utterance identifier.",
|
|
1018
|
+
"complexTypes": [],
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "charIndex",
|
|
1023
|
+
"tags": [
|
|
1024
|
+
{
|
|
1025
|
+
"text": "1.0.0",
|
|
1026
|
+
"name": "since"
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"docs": "The character index in the text.",
|
|
1030
|
+
"complexTypes": [],
|
|
1031
|
+
"type": "number"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "charLength",
|
|
1035
|
+
"tags": [
|
|
1036
|
+
{
|
|
1037
|
+
"text": "1.0.0",
|
|
1038
|
+
"name": "since"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"docs": "The character length of the current word.",
|
|
1042
|
+
"complexTypes": [],
|
|
1043
|
+
"type": "number | undefined"
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "ErrorEvent",
|
|
1049
|
+
"slug": "errorevent",
|
|
1050
|
+
"docs": "Event emitted on synthesis error.",
|
|
1051
|
+
"tags": [
|
|
1052
|
+
{
|
|
1053
|
+
"text": "1.0.0",
|
|
1054
|
+
"name": "since"
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
1057
|
+
"methods": [],
|
|
1058
|
+
"properties": [
|
|
1059
|
+
{
|
|
1060
|
+
"name": "utteranceId",
|
|
1061
|
+
"tags": [
|
|
1062
|
+
{
|
|
1063
|
+
"text": "1.0.0",
|
|
1064
|
+
"name": "since"
|
|
1065
|
+
}
|
|
1066
|
+
],
|
|
1067
|
+
"docs": "The utterance identifier.",
|
|
1068
|
+
"complexTypes": [],
|
|
1069
|
+
"type": "string"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "error",
|
|
1073
|
+
"tags": [
|
|
1074
|
+
{
|
|
1075
|
+
"text": "1.0.0",
|
|
1076
|
+
"name": "since"
|
|
1077
|
+
}
|
|
1078
|
+
],
|
|
1079
|
+
"docs": "The error message.",
|
|
1080
|
+
"complexTypes": [],
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
}
|
|
1083
|
+
]
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
"enums": [],
|
|
1087
|
+
"typeAliases": [],
|
|
1088
|
+
"pluginConfigs": []
|
|
1089
|
+
}
|