@storyteller-platform/audiobook 0.1.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 ADDED
@@ -0,0 +1,2217 @@
1
+ # @storyteller-platform/audiobook
2
+
3
+ A Node.js library for inspecting, modifying, and creating audiobooks.
4
+
5
+ <!-- toc -->
6
+
7
+ - [Installation](#installation)
8
+ - [About](#about)
9
+ - [Audiobook Basics](#audiobook-basics)
10
+ - [What this library does](#what-this-library-does)
11
+ - [Usage](#usage)
12
+ - [Reading from a single file](#reading-from-a-single-file)
13
+ - [Reading from a set of files](#reading-from-a-set-of-files)
14
+ - [Reading from an array](#reading-from-an-array)
15
+ - [Writing to disk](#writing-to-disk)
16
+ - [Writing to a byte array](#writing-to-a-byte-array)
17
+ - [Development](#development)
18
+ - [API Docs](#api-docs)
19
+
20
+ <!-- tocstop -->
21
+
22
+ ## Installation
23
+
24
+ npm:
25
+
26
+ ```sh
27
+ npm install @storyteller-platform/audiobook
28
+ ```
29
+
30
+ yarn:
31
+
32
+ ```sh
33
+ yarn add @storyteller-platform/audiobook
34
+ ```
35
+
36
+ deno:
37
+
38
+ ```sh
39
+ deno install npm:@storyteller-platform/audiobook
40
+ ```
41
+
42
+ ## About
43
+
44
+ This is a library for working with audiobooks. Audiobooks may be distributed as
45
+ single audio files, folders of audio files, or ZIP archives of audio files.
46
+ Publishers use audio tags inconsistently and sometimes confusingly to store
47
+ metadata within audiobook files — this library provides a consistent interface
48
+ for reading and writing metadata to audiobook files.
49
+
50
+ ### Audiobook Basics
51
+
52
+ An audiobook may be distributed as single audio files, folders of audio files,
53
+ or ZIP archives of audio files. Chapter/track information, cover art, and
54
+ metadata about the audiobook is often provided as metadata within the audio
55
+ files. Different publishers may use different tags to represent the same piece
56
+ of metadata, and may format metadata differently (e.g. using `/` instead of `;`
57
+ to separate lists of entities).
58
+
59
+ ### What this library does
60
+
61
+ `@storyteller-platform/audiobook` provides an API to interact with the metadata,
62
+ of an audiobook publication. It provides a consistent interface that attempts to
63
+ abstract away differences in metadata representations across audio formats and
64
+ publishers.
65
+
66
+ ## Usage
67
+
68
+ The entrypoint to the library is through the [`Audiobook`](#audiobook) class. An
69
+ `Audiobook` can be constructed from existing audio data, either read from disk
70
+ or already in memory as a typed array.
71
+
72
+ ### Reading from a single file
73
+
74
+ ```ts
75
+ import { Audiobook } from "@storyteller-platform/audiobook/node"
76
+
77
+ const audiobook = await Audiobook.from("path/to/book.m4b")
78
+ console.log(await audiobook.getTitle())
79
+ ```
80
+
81
+ ### Reading from a set of files
82
+
83
+ ```ts
84
+ import { Audiobook } from "@storyteller-platform/audiobook/node"
85
+
86
+ const audiobook = await Audiobook.from([
87
+ "path/to/track1.mp3",
88
+ "path/to/track2.mp3",
89
+ "path/to/track3.mp3",
90
+ "path/to/track4.mp3",
91
+ ])
92
+ console.log(await audiobook.getTitle())
93
+ ```
94
+
95
+ ### Reading from an array
96
+
97
+ ```ts
98
+ import { Audiobook } from "@storyteller-platform/audiobook"
99
+
100
+ const audioData: Uint8Array = await requestAudioData()
101
+
102
+ const audiobook = await Audiobook.from({
103
+ filename: "audiobook.m4b",
104
+ data: audioData,
105
+ })
106
+
107
+ console.log(await audiobook.getTitle())
108
+ ```
109
+
110
+ ### Writing to disk
111
+
112
+ ```ts
113
+ import { Audiobook } from "@storyteller-platform/audiobook/node"
114
+
115
+ const audiobook = await Audiobook.from("path/to/audiobook.m4b")
116
+ await audiobook.setTitle("S'mores for Everyone")
117
+
118
+ await audiobook.save()
119
+ audiobook.close()
120
+ ```
121
+
122
+ ### Writing to a byte array
123
+
124
+ ```ts
125
+ import { Audiobook } from "@storyteller-platform/audiobook"
126
+
127
+ const audioData: Uint8Array = await requestAudioData()
128
+
129
+ const audiobook = await Audiobook.from({
130
+ filename: "audiobook.m4b",
131
+ data: audioData,
132
+ })
133
+
134
+ await audiobook.setTitle("S'mores for Everyone")
135
+
136
+ const updated = await audiobook.save()
137
+ ```
138
+
139
+ For more details about using the API, see the [API documentation](#audiobook).
140
+
141
+ ## Development
142
+
143
+ This package lives in the
144
+ [Storyteller monorepo](https://gitlab.com/storyteller-platform/storyteller), and
145
+ is developed alongside the
146
+ [Storyteller platform](https://storyteller-platform.gitlab.io/storyteller).
147
+
148
+ To get started with developing in the Storyteller monorepo, check out the
149
+ [development guides in the docs](https://storyteller-platform.gitlab.io/storyteller/docs/category/development).
150
+
151
+ # node
152
+
153
+ ## Audiobook
154
+
155
+ Defined in:
156
+ [node/index.ts:20](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L20)
157
+
158
+ ### Extends
159
+
160
+ - [`BaseAudiobook`](#baseaudiobook)
161
+
162
+ ### Constructors
163
+
164
+ #### Constructor
165
+
166
+ > `protected` **new Audiobook**(`entries`, `zipPath?`):
167
+ > [`Audiobook`](#audiobook)
168
+
169
+ Defined in:
170
+ [node/index.ts:21](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L21)
171
+
172
+ ##### Parameters
173
+
174
+ | Parameter | Type |
175
+ | ---------- | ------------------------------------- |
176
+ | `entries` | [`AudiobookEntry`](#audiobookentry)[] |
177
+ | `zipPath?` | `string` |
178
+
179
+ ##### Returns
180
+
181
+ [`Audiobook`](#audiobook)
182
+
183
+ ##### Overrides
184
+
185
+ [`BaseAudiobook`](#baseaudiobook).[`constructor`](#baseaudiobook#constructor)
186
+
187
+ ### Properties
188
+
189
+ #### entries
190
+
191
+ > `protected` **entries**: [`AudiobookEntry`](#audiobookentry)[]
192
+
193
+ Defined in:
194
+ [node/index.ts:22](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L22)
195
+
196
+ ##### Inherited from
197
+
198
+ [`BaseAudiobook`](#baseaudiobook).[`entries`](#baseaudiobook#entries)
199
+
200
+ #### metadata
201
+
202
+ > `protected` **metadata**: [`AudiobookMetadata`](#audiobookmetadata) = `{}`
203
+
204
+ Defined in:
205
+ [base.ts:175](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L175)
206
+
207
+ ##### Inherited from
208
+
209
+ [`BaseAudiobook`](#baseaudiobook).[`metadata`](#baseaudiobook#metadata)
210
+
211
+ #### zipPath?
212
+
213
+ > `protected` `optional` **zipPath**: `string`
214
+
215
+ Defined in:
216
+ [node/index.ts:23](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L23)
217
+
218
+ ### Methods
219
+
220
+ #### close()
221
+
222
+ > **close**(): `void`
223
+
224
+ Defined in:
225
+ [node/index.ts:104](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L104)
226
+
227
+ ##### Returns
228
+
229
+ `void`
230
+
231
+ #### getAuthors()
232
+
233
+ > **getAuthors**(): `Promise`\<`string`[]\>
234
+
235
+ Defined in:
236
+ [base.ts:247](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L247)
237
+
238
+ ##### Returns
239
+
240
+ `Promise`\<`string`[]\>
241
+
242
+ ##### Inherited from
243
+
244
+ [`BaseAudiobook`](#baseaudiobook).[`getAuthors`](#baseaudiobook#getauthors)
245
+
246
+ #### getCoverArt()
247
+
248
+ > **getCoverArt**(): `Promise`\<`null` \| `IPicture`\>
249
+
250
+ Defined in:
251
+ [base.ts:277](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L277)
252
+
253
+ ##### Returns
254
+
255
+ `Promise`\<`null` \| `IPicture`\>
256
+
257
+ ##### Inherited from
258
+
259
+ [`BaseAudiobook`](#baseaudiobook).[`getCoverArt`](#baseaudiobook#getcoverart)
260
+
261
+ #### getDescription()
262
+
263
+ > **getDescription**(): `Promise`\<`null` \| `string`\>
264
+
265
+ Defined in:
266
+ [base.ts:230](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L230)
267
+
268
+ ##### Returns
269
+
270
+ `Promise`\<`null` \| `string`\>
271
+
272
+ ##### Inherited from
273
+
274
+ [`BaseAudiobook`](#baseaudiobook).[`getDescription`](#baseaudiobook#getdescription)
275
+
276
+ #### getFirstValue()
277
+
278
+ > `protected` **getFirstValue**\<`T`\>(`getter`): `Promise`\<`null` \| `T`\>
279
+
280
+ Defined in:
281
+ [base.ts:178](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L178)
282
+
283
+ ##### Type Parameters
284
+
285
+ | Type Parameter |
286
+ | -------------- |
287
+ | `T` |
288
+
289
+ ##### Parameters
290
+
291
+ | Parameter | Type |
292
+ | --------- | ----------------------------- |
293
+ | `getter` | (`entry`) => `Promise`\<`T`\> |
294
+
295
+ ##### Returns
296
+
297
+ `Promise`\<`null` \| `T`\>
298
+
299
+ ##### Inherited from
300
+
301
+ [`BaseAudiobook`](#baseaudiobook).[`getFirstValue`](#baseaudiobook#getfirstvalue)
302
+
303
+ #### getNarrators()
304
+
305
+ > **getNarrators**(): `Promise`\<`string`[]\>
306
+
307
+ Defined in:
308
+ [base.ts:262](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L262)
309
+
310
+ ##### Returns
311
+
312
+ `Promise`\<`string`[]\>
313
+
314
+ ##### Inherited from
315
+
316
+ [`BaseAudiobook`](#baseaudiobook).[`getNarrators`](#baseaudiobook#getnarrators)
317
+
318
+ #### getPublisher()
319
+
320
+ > **getPublisher**(): `Promise`\<`null` \| `string`\>
321
+
322
+ Defined in:
323
+ [base.ts:293](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L293)
324
+
325
+ ##### Returns
326
+
327
+ `Promise`\<`null` \| `string`\>
328
+
329
+ ##### Inherited from
330
+
331
+ [`BaseAudiobook`](#baseaudiobook).[`getPublisher`](#baseaudiobook#getpublisher)
332
+
333
+ #### getReleased()
334
+
335
+ > **getReleased**(): `Promise`\<`null` \| `string`\>
336
+
337
+ Defined in:
338
+ [base.ts:308](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L308)
339
+
340
+ ##### Returns
341
+
342
+ `Promise`\<`null` \| `string`\>
343
+
344
+ ##### Inherited from
345
+
346
+ [`BaseAudiobook`](#baseaudiobook).[`getReleased`](#baseaudiobook#getreleased)
347
+
348
+ #### getSubtitle()
349
+
350
+ > **getSubtitle**(): `Promise`\<`null` \| `string`\>
351
+
352
+ Defined in:
353
+ [base.ts:214](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L214)
354
+
355
+ ##### Returns
356
+
357
+ `Promise`\<`null` \| `string`\>
358
+
359
+ ##### Inherited from
360
+
361
+ [`BaseAudiobook`](#baseaudiobook).[`getSubtitle`](#baseaudiobook#getsubtitle)
362
+
363
+ #### getTitle()
364
+
365
+ > **getTitle**(): `Promise`\<`null` \| `string`\>
366
+
367
+ Defined in:
368
+ [base.ts:198](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L198)
369
+
370
+ ##### Returns
371
+
372
+ `Promise`\<`null` \| `string`\>
373
+
374
+ ##### Inherited from
375
+
376
+ [`BaseAudiobook`](#baseaudiobook).[`getTitle`](#baseaudiobook#gettitle)
377
+
378
+ #### save()
379
+
380
+ > **save**(): `Promise`\<`undefined` \| >
381
+ > [`Uint8ArrayEntry`](#uint8arrayentry)[]\>
382
+
383
+ Defined in:
384
+ [node/index.ts:57](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L57)
385
+
386
+ ##### Returns
387
+
388
+ `Promise`\<`undefined` \| [`Uint8ArrayEntry`](#uint8arrayentry)[]\>
389
+
390
+ #### setAuthors()
391
+
392
+ > **setAuthors**(`authors`): `Promise`\<`void`\>
393
+
394
+ Defined in:
395
+ [base.ts:256](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L256)
396
+
397
+ ##### Parameters
398
+
399
+ | Parameter | Type |
400
+ | --------- | ---------- |
401
+ | `authors` | `string`[] |
402
+
403
+ ##### Returns
404
+
405
+ `Promise`\<`void`\>
406
+
407
+ ##### Inherited from
408
+
409
+ [`BaseAudiobook`](#baseaudiobook).[`setAuthors`](#baseaudiobook#setauthors)
410
+
411
+ #### setCoverArt()
412
+
413
+ > **setCoverArt**(`picture`): `Promise`\<`void`\>
414
+
415
+ Defined in:
416
+ [node/index.ts:95](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L95)
417
+
418
+ ##### Parameters
419
+
420
+ | Parameter | Type |
421
+ | --------- | ---------------------- |
422
+ | `picture` | `string` \| `IPicture` |
423
+
424
+ ##### Returns
425
+
426
+ `Promise`\<`void`\>
427
+
428
+ ##### Overrides
429
+
430
+ [`BaseAudiobook`](#baseaudiobook).[`setCoverArt`](#baseaudiobook#setcoverart)
431
+
432
+ #### setDescription()
433
+
434
+ > **setDescription**(`description`): `Promise`\<`void`\>
435
+
436
+ Defined in:
437
+ [base.ts:241](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L241)
438
+
439
+ ##### Parameters
440
+
441
+ | Parameter | Type |
442
+ | ------------- | -------- |
443
+ | `description` | `string` |
444
+
445
+ ##### Returns
446
+
447
+ `Promise`\<`void`\>
448
+
449
+ ##### Inherited from
450
+
451
+ [`BaseAudiobook`](#baseaudiobook).[`setDescription`](#baseaudiobook#setdescription)
452
+
453
+ #### setNarrators()
454
+
455
+ > **setNarrators**(`narrators`): `Promise`\<`void`\>
456
+
457
+ Defined in:
458
+ [base.ts:271](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L271)
459
+
460
+ ##### Parameters
461
+
462
+ | Parameter | Type |
463
+ | ----------- | ---------- |
464
+ | `narrators` | `string`[] |
465
+
466
+ ##### Returns
467
+
468
+ `Promise`\<`void`\>
469
+
470
+ ##### Inherited from
471
+
472
+ [`BaseAudiobook`](#baseaudiobook).[`setNarrators`](#baseaudiobook#setnarrators)
473
+
474
+ #### setPublisher()
475
+
476
+ > **setPublisher**(`publisher`): `Promise`\<`void`\>
477
+
478
+ Defined in:
479
+ [base.ts:302](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L302)
480
+
481
+ ##### Parameters
482
+
483
+ | Parameter | Type |
484
+ | ----------- | -------- |
485
+ | `publisher` | `string` |
486
+
487
+ ##### Returns
488
+
489
+ `Promise`\<`void`\>
490
+
491
+ ##### Inherited from
492
+
493
+ [`BaseAudiobook`](#baseaudiobook).[`setPublisher`](#baseaudiobook#setpublisher)
494
+
495
+ #### setReleased()
496
+
497
+ > **setReleased**(`released`): `Promise`\<`void`\>
498
+
499
+ Defined in:
500
+ [base.ts:317](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L317)
501
+
502
+ ##### Parameters
503
+
504
+ | Parameter | Type |
505
+ | ---------- | -------- |
506
+ | `released` | `string` |
507
+
508
+ ##### Returns
509
+
510
+ `Promise`\<`void`\>
511
+
512
+ ##### Inherited from
513
+
514
+ [`BaseAudiobook`](#baseaudiobook).[`setReleased`](#baseaudiobook#setreleased)
515
+
516
+ #### setSubtitle()
517
+
518
+ > **setSubtitle**(`subtitle`): `Promise`\<`void`\>
519
+
520
+ Defined in:
521
+ [base.ts:224](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L224)
522
+
523
+ ##### Parameters
524
+
525
+ | Parameter | Type |
526
+ | ---------- | -------- |
527
+ | `subtitle` | `string` |
528
+
529
+ ##### Returns
530
+
531
+ `Promise`\<`void`\>
532
+
533
+ ##### Inherited from
534
+
535
+ [`BaseAudiobook`](#baseaudiobook).[`setSubtitle`](#baseaudiobook#setsubtitle)
536
+
537
+ #### setTitle()
538
+
539
+ > **setTitle**(`title`): `Promise`\<`void`\>
540
+
541
+ Defined in:
542
+ [base.ts:208](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L208)
543
+
544
+ ##### Parameters
545
+
546
+ | Parameter | Type |
547
+ | --------- | -------- |
548
+ | `title` | `string` |
549
+
550
+ ##### Returns
551
+
552
+ `Promise`\<`void`\>
553
+
554
+ ##### Inherited from
555
+
556
+ [`BaseAudiobook`](#baseaudiobook).[`setTitle`](#baseaudiobook#settitle)
557
+
558
+ #### setValue()
559
+
560
+ > `protected` **setValue**(`setter`): `Promise`\<`void`\>
561
+
562
+ Defined in:
563
+ [base.ts:190](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L190)
564
+
565
+ ##### Parameters
566
+
567
+ | Parameter | Type |
568
+ | --------- | -------------------------------- |
569
+ | `setter` | (`entry`) => `Promise`\<`void`\> |
570
+
571
+ ##### Returns
572
+
573
+ `Promise`\<`void`\>
574
+
575
+ ##### Inherited from
576
+
577
+ [`BaseAudiobook`](#baseaudiobook).[`setValue`](#baseaudiobook#setvalue)
578
+
579
+ #### from()
580
+
581
+ > `static` **from**(`pathOrPathsOrData`): `Promise`\<[`Audiobook`](#audiobook)\>
582
+
583
+ Defined in:
584
+ [node/index.ts:28](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/index.ts#L28)
585
+
586
+ ##### Parameters
587
+
588
+ | Parameter | Type |
589
+ | ------------------- | ---------------------------------------------------------------------------------------------------------- |
590
+ | `pathOrPathsOrData` | `string` \| `string`[] \| [`Uint8ArrayEntry`](#uint8arrayentry) \| [`Uint8ArrayEntry`](#uint8arrayentry)[] |
591
+
592
+ ##### Returns
593
+
594
+ `Promise`\<[`Audiobook`](#audiobook)\>
595
+
596
+ # entry
597
+
598
+ ## API Docs
599
+
600
+ ## AudiobookEntry
601
+
602
+ Defined in:
603
+ [entry.ts:12](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L12)
604
+
605
+ ### Extends
606
+
607
+ - [`BaseAudiobookEntry`](#baseaudiobookentry)
608
+
609
+ ### Constructors
610
+
611
+ #### Constructor
612
+
613
+ > **new AudiobookEntry**(`entry`): [`AudiobookEntry`](#audiobookentry)
614
+
615
+ Defined in:
616
+ [entry.ts:41](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L41)
617
+
618
+ ##### Parameters
619
+
620
+ | Parameter | Type |
621
+ | --------- | ------------------------------------------------ |
622
+ | `entry` | [`Uint8ArrayEntry`](#uint8arrayentry) \| `Entry` |
623
+
624
+ ##### Returns
625
+
626
+ [`AudiobookEntry`](#audiobookentry)
627
+
628
+ ##### Overrides
629
+
630
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`constructor`](#baseaudiobookentry#constructor-1)
631
+
632
+ ### Properties
633
+
634
+ #### entry
635
+
636
+ > `protected` **entry**: [`Uint8ArrayEntry`](#uint8arrayentry) \| `Entry`
637
+
638
+ Defined in:
639
+ [entry.ts:41](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L41)
640
+
641
+ #### file
642
+
643
+ > `protected` **file**: `null` \| `File` = `null`
644
+
645
+ Defined in:
646
+ [entry.ts:15](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L15)
647
+
648
+ ##### Overrides
649
+
650
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`file`](#baseaudiobookentry#file)
651
+
652
+ #### filename
653
+
654
+ > **filename**: `string`
655
+
656
+ Defined in:
657
+ [entry.ts:13](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L13)
658
+
659
+ ##### Overrides
660
+
661
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`filename`](#baseaudiobookentry#filename)
662
+
663
+ ### Methods
664
+
665
+ #### createFile()
666
+
667
+ > **createFile**(): `Promise`\<`File`\>
668
+
669
+ Defined in:
670
+ [entry.ts:34](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L34)
671
+
672
+ ##### Returns
673
+
674
+ `Promise`\<`File`\>
675
+
676
+ ##### Overrides
677
+
678
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`createFile`](#baseaudiobookentry#createfile)
679
+
680
+ #### getAuthors()
681
+
682
+ > **getAuthors**(): `Promise`\<`string`[]\>
683
+
684
+ Defined in:
685
+ [base.ts:57](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L57)
686
+
687
+ ##### Returns
688
+
689
+ `Promise`\<`string`[]\>
690
+
691
+ ##### Inherited from
692
+
693
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getAuthors`](#baseaudiobookentry#getauthors-2)
694
+
695
+ #### getCoverArt()
696
+
697
+ > **getCoverArt**(): `Promise`\<`null` \| `IPicture`\>
698
+
699
+ Defined in:
700
+ [base.ts:106](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L106)
701
+
702
+ ##### Returns
703
+
704
+ `Promise`\<`null` \| `IPicture`\>
705
+
706
+ ##### Inherited from
707
+
708
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getCoverArt`](#baseaudiobookentry#getcoverart-2)
709
+
710
+ #### getData()
711
+
712
+ > **getData**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
713
+
714
+ Defined in:
715
+ [entry.ts:29](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L29)
716
+
717
+ ##### Returns
718
+
719
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
720
+
721
+ ##### Overrides
722
+
723
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getData`](#baseaudiobookentry#getdata)
724
+
725
+ #### getDescription()
726
+
727
+ > **getDescription**(): `Promise`\<`null` \| `string`\>
728
+
729
+ Defined in:
730
+ [base.ts:45](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L45)
731
+
732
+ ##### Returns
733
+
734
+ `Promise`\<`null` \| `string`\>
735
+
736
+ ##### Inherited from
737
+
738
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getDescription`](#baseaudiobookentry#getdescription-2)
739
+
740
+ #### getFile()
741
+
742
+ > **getFile**(): `Promise`\<`File`\>
743
+
744
+ Defined in:
745
+ [base.ts:17](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L17)
746
+
747
+ ##### Returns
748
+
749
+ `Promise`\<`File`\>
750
+
751
+ ##### Inherited from
752
+
753
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getFile`](#baseaudiobookentry#getfile)
754
+
755
+ #### getNarrators()
756
+
757
+ > **getNarrators**(): `Promise`\<`string`[]\>
758
+
759
+ Defined in:
760
+ [base.ts:84](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L84)
761
+
762
+ ##### Returns
763
+
764
+ `Promise`\<`string`[]\>
765
+
766
+ ##### Inherited from
767
+
768
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getNarrators`](#baseaudiobookentry#getnarrators-2)
769
+
770
+ #### getPublisher()
771
+
772
+ > **getPublisher**(): `Promise`\<`null` \| `string`\>
773
+
774
+ Defined in:
775
+ [base.ts:130](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L130)
776
+
777
+ ##### Returns
778
+
779
+ `Promise`\<`null` \| `string`\>
780
+
781
+ ##### Inherited from
782
+
783
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getPublisher`](#baseaudiobookentry#getpublisher-2)
784
+
785
+ #### getReleased()
786
+
787
+ > **getReleased**(): `Promise`\<`null` \| `string`\>
788
+
789
+ Defined in:
790
+ [base.ts:140](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L140)
791
+
792
+ ##### Returns
793
+
794
+ `Promise`\<`null` \| `string`\>
795
+
796
+ ##### Inherited from
797
+
798
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getReleased`](#baseaudiobookentry#getreleased-2)
799
+
800
+ #### getSubtitle()
801
+
802
+ > **getSubtitle**(): `Promise`\<`null` \| `string`\>
803
+
804
+ Defined in:
805
+ [base.ts:35](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L35)
806
+
807
+ ##### Returns
808
+
809
+ `Promise`\<`null` \| `string`\>
810
+
811
+ ##### Inherited from
812
+
813
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getSubtitle`](#baseaudiobookentry#getsubtitle-2)
814
+
815
+ #### getTitle()
816
+
817
+ > **getTitle**(): `Promise`\<`null` \| `string`\>
818
+
819
+ Defined in:
820
+ [base.ts:25](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L25)
821
+
822
+ ##### Returns
823
+
824
+ `Promise`\<`null` \| `string`\>
825
+
826
+ ##### Inherited from
827
+
828
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`getTitle`](#baseaudiobookentry#gettitle-2)
829
+
830
+ #### readData()
831
+
832
+ > `protected` **readData**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
833
+
834
+ Defined in:
835
+ [entry.ts:17](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L17)
836
+
837
+ ##### Returns
838
+
839
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
840
+
841
+ #### save()
842
+
843
+ > **save**(): `void`
844
+
845
+ Defined in:
846
+ [base.ts:150](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L150)
847
+
848
+ ##### Returns
849
+
850
+ `void`
851
+
852
+ ##### Inherited from
853
+
854
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`save`](#baseaudiobookentry#save)
855
+
856
+ #### setAuthors()
857
+
858
+ > **setAuthors**(`authors`): `Promise`\<`void`\>
859
+
860
+ Defined in:
861
+ [base.ts:75](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L75)
862
+
863
+ ##### Parameters
864
+
865
+ | Parameter | Type |
866
+ | --------- | ---------- |
867
+ | `authors` | `string`[] |
868
+
869
+ ##### Returns
870
+
871
+ `Promise`\<`void`\>
872
+
873
+ ##### Inherited from
874
+
875
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setAuthors`](#baseaudiobookentry#setauthors-2)
876
+
877
+ #### setCoverArt()
878
+
879
+ > **setCoverArt**(`picture`): `Promise`\<`void`\>
880
+
881
+ Defined in:
882
+ [base.ts:116](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L116)
883
+
884
+ ##### Parameters
885
+
886
+ | Parameter | Type |
887
+ | --------- | ---------- |
888
+ | `picture` | `IPicture` |
889
+
890
+ ##### Returns
891
+
892
+ `Promise`\<`void`\>
893
+
894
+ ##### Inherited from
895
+
896
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setCoverArt`](#baseaudiobookentry#setcoverart-2)
897
+
898
+ #### setDescription()
899
+
900
+ > **setDescription**(`description`): `Promise`\<`void`\>
901
+
902
+ Defined in:
903
+ [base.ts:52](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L52)
904
+
905
+ ##### Parameters
906
+
907
+ | Parameter | Type |
908
+ | ------------- | -------- |
909
+ | `description` | `string` |
910
+
911
+ ##### Returns
912
+
913
+ `Promise`\<`void`\>
914
+
915
+ ##### Inherited from
916
+
917
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setDescription`](#baseaudiobookentry#setdescription-2)
918
+
919
+ #### setNarrators()
920
+
921
+ > **setNarrators**(`narrators`): `Promise`\<`void`\>
922
+
923
+ Defined in:
924
+ [base.ts:100](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L100)
925
+
926
+ ##### Parameters
927
+
928
+ | Parameter | Type |
929
+ | ----------- | ---------- |
930
+ | `narrators` | `string`[] |
931
+
932
+ ##### Returns
933
+
934
+ `Promise`\<`void`\>
935
+
936
+ ##### Inherited from
937
+
938
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setNarrators`](#baseaudiobookentry#setnarrators-2)
939
+
940
+ #### setPublisher()
941
+
942
+ > **setPublisher**(`publisher`): `Promise`\<`void`\>
943
+
944
+ Defined in:
945
+ [base.ts:135](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L135)
946
+
947
+ ##### Parameters
948
+
949
+ | Parameter | Type |
950
+ | ----------- | -------- |
951
+ | `publisher` | `string` |
952
+
953
+ ##### Returns
954
+
955
+ `Promise`\<`void`\>
956
+
957
+ ##### Inherited from
958
+
959
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setPublisher`](#baseaudiobookentry#setpublisher-2)
960
+
961
+ #### setReleased()
962
+
963
+ > **setReleased**(`released`): `Promise`\<`void`\>
964
+
965
+ Defined in:
966
+ [base.ts:145](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L145)
967
+
968
+ ##### Parameters
969
+
970
+ | Parameter | Type |
971
+ | ---------- | -------- |
972
+ | `released` | `string` |
973
+
974
+ ##### Returns
975
+
976
+ `Promise`\<`void`\>
977
+
978
+ ##### Inherited from
979
+
980
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setReleased`](#baseaudiobookentry#setreleased-2)
981
+
982
+ #### setSubtitle()
983
+
984
+ > **setSubtitle**(`subtitle`): `Promise`\<`void`\>
985
+
986
+ Defined in:
987
+ [base.ts:40](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L40)
988
+
989
+ ##### Parameters
990
+
991
+ | Parameter | Type |
992
+ | ---------- | -------- |
993
+ | `subtitle` | `string` |
994
+
995
+ ##### Returns
996
+
997
+ `Promise`\<`void`\>
998
+
999
+ ##### Inherited from
1000
+
1001
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setSubtitle`](#baseaudiobookentry#setsubtitle-2)
1002
+
1003
+ #### setTitle()
1004
+
1005
+ > **setTitle**(`title`): `Promise`\<`void`\>
1006
+
1007
+ Defined in:
1008
+ [base.ts:30](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L30)
1009
+
1010
+ ##### Parameters
1011
+
1012
+ | Parameter | Type |
1013
+ | --------- | -------- |
1014
+ | `title` | `string` |
1015
+
1016
+ ##### Returns
1017
+
1018
+ `Promise`\<`void`\>
1019
+
1020
+ ##### Inherited from
1021
+
1022
+ [`BaseAudiobookEntry`](#baseaudiobookentry).[`setTitle`](#baseaudiobookentry#settitle-2)
1023
+
1024
+ ---
1025
+
1026
+ ## Uint8ArrayEntry
1027
+
1028
+ Defined in:
1029
+ [entry.ts:7](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L7)
1030
+
1031
+ ### Properties
1032
+
1033
+ #### data
1034
+
1035
+ > **data**: `Uint8Array`
1036
+
1037
+ Defined in:
1038
+ [entry.ts:9](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L9)
1039
+
1040
+ #### filename
1041
+
1042
+ > **filename**: `string`
1043
+
1044
+ Defined in:
1045
+ [entry.ts:8](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/entry.ts#L8)
1046
+
1047
+ # base
1048
+
1049
+ ## API Docs
1050
+
1051
+ ## `abstract` BaseAudiobook
1052
+
1053
+ Defined in:
1054
+ [base.ts:174](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L174)
1055
+
1056
+ ### Extended by
1057
+
1058
+ - [`Audiobook`](#audiobook)
1059
+
1060
+ ### Constructors
1061
+
1062
+ #### Constructor
1063
+
1064
+ > **new BaseAudiobook**(): [`BaseAudiobook`](#baseaudiobook)
1065
+
1066
+ ##### Returns
1067
+
1068
+ [`BaseAudiobook`](#baseaudiobook)
1069
+
1070
+ ### Properties
1071
+
1072
+ #### entries
1073
+
1074
+ > `abstract` `protected` **entries**:
1075
+ > [`BaseAudiobookEntry`](#baseaudiobookentry)[]
1076
+
1077
+ Defined in:
1078
+ [base.ts:176](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L176)
1079
+
1080
+ #### metadata
1081
+
1082
+ > `protected` **metadata**: [`AudiobookMetadata`](#audiobookmetadata) = `{}`
1083
+
1084
+ Defined in:
1085
+ [base.ts:175](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L175)
1086
+
1087
+ ### Methods
1088
+
1089
+ #### getAuthors()
1090
+
1091
+ > **getAuthors**(): `Promise`\<`string`[]\>
1092
+
1093
+ Defined in:
1094
+ [base.ts:247](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L247)
1095
+
1096
+ ##### Returns
1097
+
1098
+ `Promise`\<`string`[]\>
1099
+
1100
+ #### getCoverArt()
1101
+
1102
+ > **getCoverArt**(): `Promise`\<`null` \| `IPicture`\>
1103
+
1104
+ Defined in:
1105
+ [base.ts:277](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L277)
1106
+
1107
+ ##### Returns
1108
+
1109
+ `Promise`\<`null` \| `IPicture`\>
1110
+
1111
+ #### getDescription()
1112
+
1113
+ > **getDescription**(): `Promise`\<`null` \| `string`\>
1114
+
1115
+ Defined in:
1116
+ [base.ts:230](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L230)
1117
+
1118
+ ##### Returns
1119
+
1120
+ `Promise`\<`null` \| `string`\>
1121
+
1122
+ #### getFirstValue()
1123
+
1124
+ > `protected` **getFirstValue**\<`T`\>(`getter`): `Promise`\<`null` \| `T`\>
1125
+
1126
+ Defined in:
1127
+ [base.ts:178](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L178)
1128
+
1129
+ ##### Type Parameters
1130
+
1131
+ | Type Parameter |
1132
+ | -------------- |
1133
+ | `T` |
1134
+
1135
+ ##### Parameters
1136
+
1137
+ | Parameter | Type |
1138
+ | --------- | ----------------------------- |
1139
+ | `getter` | (`entry`) => `Promise`\<`T`\> |
1140
+
1141
+ ##### Returns
1142
+
1143
+ `Promise`\<`null` \| `T`\>
1144
+
1145
+ #### getNarrators()
1146
+
1147
+ > **getNarrators**(): `Promise`\<`string`[]\>
1148
+
1149
+ Defined in:
1150
+ [base.ts:262](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L262)
1151
+
1152
+ ##### Returns
1153
+
1154
+ `Promise`\<`string`[]\>
1155
+
1156
+ #### getPublisher()
1157
+
1158
+ > **getPublisher**(): `Promise`\<`null` \| `string`\>
1159
+
1160
+ Defined in:
1161
+ [base.ts:293](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L293)
1162
+
1163
+ ##### Returns
1164
+
1165
+ `Promise`\<`null` \| `string`\>
1166
+
1167
+ #### getReleased()
1168
+
1169
+ > **getReleased**(): `Promise`\<`null` \| `string`\>
1170
+
1171
+ Defined in:
1172
+ [base.ts:308](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L308)
1173
+
1174
+ ##### Returns
1175
+
1176
+ `Promise`\<`null` \| `string`\>
1177
+
1178
+ #### getSubtitle()
1179
+
1180
+ > **getSubtitle**(): `Promise`\<`null` \| `string`\>
1181
+
1182
+ Defined in:
1183
+ [base.ts:214](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L214)
1184
+
1185
+ ##### Returns
1186
+
1187
+ `Promise`\<`null` \| `string`\>
1188
+
1189
+ #### getTitle()
1190
+
1191
+ > **getTitle**(): `Promise`\<`null` \| `string`\>
1192
+
1193
+ Defined in:
1194
+ [base.ts:198](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L198)
1195
+
1196
+ ##### Returns
1197
+
1198
+ `Promise`\<`null` \| `string`\>
1199
+
1200
+ #### setAuthors()
1201
+
1202
+ > **setAuthors**(`authors`): `Promise`\<`void`\>
1203
+
1204
+ Defined in:
1205
+ [base.ts:256](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L256)
1206
+
1207
+ ##### Parameters
1208
+
1209
+ | Parameter | Type |
1210
+ | --------- | ---------- |
1211
+ | `authors` | `string`[] |
1212
+
1213
+ ##### Returns
1214
+
1215
+ `Promise`\<`void`\>
1216
+
1217
+ #### setCoverArt()
1218
+
1219
+ > **setCoverArt**(`picture`): `Promise`\<`void`\>
1220
+
1221
+ Defined in:
1222
+ [base.ts:287](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L287)
1223
+
1224
+ ##### Parameters
1225
+
1226
+ | Parameter | Type |
1227
+ | --------- | ---------- |
1228
+ | `picture` | `IPicture` |
1229
+
1230
+ ##### Returns
1231
+
1232
+ `Promise`\<`void`\>
1233
+
1234
+ #### setDescription()
1235
+
1236
+ > **setDescription**(`description`): `Promise`\<`void`\>
1237
+
1238
+ Defined in:
1239
+ [base.ts:241](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L241)
1240
+
1241
+ ##### Parameters
1242
+
1243
+ | Parameter | Type |
1244
+ | ------------- | -------- |
1245
+ | `description` | `string` |
1246
+
1247
+ ##### Returns
1248
+
1249
+ `Promise`\<`void`\>
1250
+
1251
+ #### setNarrators()
1252
+
1253
+ > **setNarrators**(`narrators`): `Promise`\<`void`\>
1254
+
1255
+ Defined in:
1256
+ [base.ts:271](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L271)
1257
+
1258
+ ##### Parameters
1259
+
1260
+ | Parameter | Type |
1261
+ | ----------- | ---------- |
1262
+ | `narrators` | `string`[] |
1263
+
1264
+ ##### Returns
1265
+
1266
+ `Promise`\<`void`\>
1267
+
1268
+ #### setPublisher()
1269
+
1270
+ > **setPublisher**(`publisher`): `Promise`\<`void`\>
1271
+
1272
+ Defined in:
1273
+ [base.ts:302](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L302)
1274
+
1275
+ ##### Parameters
1276
+
1277
+ | Parameter | Type |
1278
+ | ----------- | -------- |
1279
+ | `publisher` | `string` |
1280
+
1281
+ ##### Returns
1282
+
1283
+ `Promise`\<`void`\>
1284
+
1285
+ #### setReleased()
1286
+
1287
+ > **setReleased**(`released`): `Promise`\<`void`\>
1288
+
1289
+ Defined in:
1290
+ [base.ts:317](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L317)
1291
+
1292
+ ##### Parameters
1293
+
1294
+ | Parameter | Type |
1295
+ | ---------- | -------- |
1296
+ | `released` | `string` |
1297
+
1298
+ ##### Returns
1299
+
1300
+ `Promise`\<`void`\>
1301
+
1302
+ #### setSubtitle()
1303
+
1304
+ > **setSubtitle**(`subtitle`): `Promise`\<`void`\>
1305
+
1306
+ Defined in:
1307
+ [base.ts:224](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L224)
1308
+
1309
+ ##### Parameters
1310
+
1311
+ | Parameter | Type |
1312
+ | ---------- | -------- |
1313
+ | `subtitle` | `string` |
1314
+
1315
+ ##### Returns
1316
+
1317
+ `Promise`\<`void`\>
1318
+
1319
+ #### setTitle()
1320
+
1321
+ > **setTitle**(`title`): `Promise`\<`void`\>
1322
+
1323
+ Defined in:
1324
+ [base.ts:208](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L208)
1325
+
1326
+ ##### Parameters
1327
+
1328
+ | Parameter | Type |
1329
+ | --------- | -------- |
1330
+ | `title` | `string` |
1331
+
1332
+ ##### Returns
1333
+
1334
+ `Promise`\<`void`\>
1335
+
1336
+ #### setValue()
1337
+
1338
+ > `protected` **setValue**(`setter`): `Promise`\<`void`\>
1339
+
1340
+ Defined in:
1341
+ [base.ts:190](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L190)
1342
+
1343
+ ##### Parameters
1344
+
1345
+ | Parameter | Type |
1346
+ | --------- | -------------------------------- |
1347
+ | `setter` | (`entry`) => `Promise`\<`void`\> |
1348
+
1349
+ ##### Returns
1350
+
1351
+ `Promise`\<`void`\>
1352
+
1353
+ ---
1354
+
1355
+ ## `abstract` BaseAudiobookEntry
1356
+
1357
+ Defined in:
1358
+ [base.ts:9](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L9)
1359
+
1360
+ ### Extended by
1361
+
1362
+ - [`AudiobookEntry`](#audiobookentry)
1363
+ - [`AudiobookEntry`](#audiobookentry)
1364
+
1365
+ ### Constructors
1366
+
1367
+ #### Constructor
1368
+
1369
+ > **new BaseAudiobookEntry**(): [`BaseAudiobookEntry`](#baseaudiobookentry)
1370
+
1371
+ ##### Returns
1372
+
1373
+ [`BaseAudiobookEntry`](#baseaudiobookentry)
1374
+
1375
+ ### Properties
1376
+
1377
+ #### file
1378
+
1379
+ > `abstract` `protected` **file**: `null` \| `File`
1380
+
1381
+ Defined in:
1382
+ [base.ts:11](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L11)
1383
+
1384
+ #### filename
1385
+
1386
+ > `abstract` **filename**: `string`
1387
+
1388
+ Defined in:
1389
+ [base.ts:10](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L10)
1390
+
1391
+ ### Methods
1392
+
1393
+ #### createFile()
1394
+
1395
+ > `abstract` **createFile**(): `Promise`\<`File`\>
1396
+
1397
+ Defined in:
1398
+ [base.ts:15](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L15)
1399
+
1400
+ ##### Returns
1401
+
1402
+ `Promise`\<`File`\>
1403
+
1404
+ #### getAuthors()
1405
+
1406
+ > **getAuthors**(): `Promise`\<`string`[]\>
1407
+
1408
+ Defined in:
1409
+ [base.ts:57](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L57)
1410
+
1411
+ ##### Returns
1412
+
1413
+ `Promise`\<`string`[]\>
1414
+
1415
+ #### getCoverArt()
1416
+
1417
+ > **getCoverArt**(): `Promise`\<`null` \| `IPicture`\>
1418
+
1419
+ Defined in:
1420
+ [base.ts:106](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L106)
1421
+
1422
+ ##### Returns
1423
+
1424
+ `Promise`\<`null` \| `IPicture`\>
1425
+
1426
+ #### getData()
1427
+
1428
+ > `abstract` **getData**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
1429
+
1430
+ Defined in:
1431
+ [base.ts:13](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L13)
1432
+
1433
+ ##### Returns
1434
+
1435
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
1436
+
1437
+ #### getDescription()
1438
+
1439
+ > **getDescription**(): `Promise`\<`null` \| `string`\>
1440
+
1441
+ Defined in:
1442
+ [base.ts:45](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L45)
1443
+
1444
+ ##### Returns
1445
+
1446
+ `Promise`\<`null` \| `string`\>
1447
+
1448
+ #### getFile()
1449
+
1450
+ > **getFile**(): `Promise`\<`File`\>
1451
+
1452
+ Defined in:
1453
+ [base.ts:17](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L17)
1454
+
1455
+ ##### Returns
1456
+
1457
+ `Promise`\<`File`\>
1458
+
1459
+ #### getNarrators()
1460
+
1461
+ > **getNarrators**(): `Promise`\<`string`[]\>
1462
+
1463
+ Defined in:
1464
+ [base.ts:84](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L84)
1465
+
1466
+ ##### Returns
1467
+
1468
+ `Promise`\<`string`[]\>
1469
+
1470
+ #### getPublisher()
1471
+
1472
+ > **getPublisher**(): `Promise`\<`null` \| `string`\>
1473
+
1474
+ Defined in:
1475
+ [base.ts:130](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L130)
1476
+
1477
+ ##### Returns
1478
+
1479
+ `Promise`\<`null` \| `string`\>
1480
+
1481
+ #### getReleased()
1482
+
1483
+ > **getReleased**(): `Promise`\<`null` \| `string`\>
1484
+
1485
+ Defined in:
1486
+ [base.ts:140](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L140)
1487
+
1488
+ ##### Returns
1489
+
1490
+ `Promise`\<`null` \| `string`\>
1491
+
1492
+ #### getSubtitle()
1493
+
1494
+ > **getSubtitle**(): `Promise`\<`null` \| `string`\>
1495
+
1496
+ Defined in:
1497
+ [base.ts:35](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L35)
1498
+
1499
+ ##### Returns
1500
+
1501
+ `Promise`\<`null` \| `string`\>
1502
+
1503
+ #### getTitle()
1504
+
1505
+ > **getTitle**(): `Promise`\<`null` \| `string`\>
1506
+
1507
+ Defined in:
1508
+ [base.ts:25](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L25)
1509
+
1510
+ ##### Returns
1511
+
1512
+ `Promise`\<`null` \| `string`\>
1513
+
1514
+ #### save()
1515
+
1516
+ > **save**(): `void`
1517
+
1518
+ Defined in:
1519
+ [base.ts:150](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L150)
1520
+
1521
+ ##### Returns
1522
+
1523
+ `void`
1524
+
1525
+ #### setAuthors()
1526
+
1527
+ > **setAuthors**(`authors`): `Promise`\<`void`\>
1528
+
1529
+ Defined in:
1530
+ [base.ts:75](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L75)
1531
+
1532
+ ##### Parameters
1533
+
1534
+ | Parameter | Type |
1535
+ | --------- | ---------- |
1536
+ | `authors` | `string`[] |
1537
+
1538
+ ##### Returns
1539
+
1540
+ `Promise`\<`void`\>
1541
+
1542
+ #### setCoverArt()
1543
+
1544
+ > **setCoverArt**(`picture`): `Promise`\<`void`\>
1545
+
1546
+ Defined in:
1547
+ [base.ts:116](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L116)
1548
+
1549
+ ##### Parameters
1550
+
1551
+ | Parameter | Type |
1552
+ | --------- | ---------- |
1553
+ | `picture` | `IPicture` |
1554
+
1555
+ ##### Returns
1556
+
1557
+ `Promise`\<`void`\>
1558
+
1559
+ #### setDescription()
1560
+
1561
+ > **setDescription**(`description`): `Promise`\<`void`\>
1562
+
1563
+ Defined in:
1564
+ [base.ts:52](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L52)
1565
+
1566
+ ##### Parameters
1567
+
1568
+ | Parameter | Type |
1569
+ | ------------- | -------- |
1570
+ | `description` | `string` |
1571
+
1572
+ ##### Returns
1573
+
1574
+ `Promise`\<`void`\>
1575
+
1576
+ #### setNarrators()
1577
+
1578
+ > **setNarrators**(`narrators`): `Promise`\<`void`\>
1579
+
1580
+ Defined in:
1581
+ [base.ts:100](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L100)
1582
+
1583
+ ##### Parameters
1584
+
1585
+ | Parameter | Type |
1586
+ | ----------- | ---------- |
1587
+ | `narrators` | `string`[] |
1588
+
1589
+ ##### Returns
1590
+
1591
+ `Promise`\<`void`\>
1592
+
1593
+ #### setPublisher()
1594
+
1595
+ > **setPublisher**(`publisher`): `Promise`\<`void`\>
1596
+
1597
+ Defined in:
1598
+ [base.ts:135](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L135)
1599
+
1600
+ ##### Parameters
1601
+
1602
+ | Parameter | Type |
1603
+ | ----------- | -------- |
1604
+ | `publisher` | `string` |
1605
+
1606
+ ##### Returns
1607
+
1608
+ `Promise`\<`void`\>
1609
+
1610
+ #### setReleased()
1611
+
1612
+ > **setReleased**(`released`): `Promise`\<`void`\>
1613
+
1614
+ Defined in:
1615
+ [base.ts:145](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L145)
1616
+
1617
+ ##### Parameters
1618
+
1619
+ | Parameter | Type |
1620
+ | ---------- | -------- |
1621
+ | `released` | `string` |
1622
+
1623
+ ##### Returns
1624
+
1625
+ `Promise`\<`void`\>
1626
+
1627
+ #### setSubtitle()
1628
+
1629
+ > **setSubtitle**(`subtitle`): `Promise`\<`void`\>
1630
+
1631
+ Defined in:
1632
+ [base.ts:40](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L40)
1633
+
1634
+ ##### Parameters
1635
+
1636
+ | Parameter | Type |
1637
+ | ---------- | -------- |
1638
+ | `subtitle` | `string` |
1639
+
1640
+ ##### Returns
1641
+
1642
+ `Promise`\<`void`\>
1643
+
1644
+ #### setTitle()
1645
+
1646
+ > **setTitle**(`title`): `Promise`\<`void`\>
1647
+
1648
+ Defined in:
1649
+ [base.ts:30](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L30)
1650
+
1651
+ ##### Parameters
1652
+
1653
+ | Parameter | Type |
1654
+ | --------- | -------- |
1655
+ | `title` | `string` |
1656
+
1657
+ ##### Returns
1658
+
1659
+ `Promise`\<`void`\>
1660
+
1661
+ ---
1662
+
1663
+ ## AudiobookChapter
1664
+
1665
+ Defined in:
1666
+ [base.ts:155](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L155)
1667
+
1668
+ ### Properties
1669
+
1670
+ #### filename
1671
+
1672
+ > **filename**: `string`
1673
+
1674
+ Defined in:
1675
+ [base.ts:156](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L156)
1676
+
1677
+ #### start
1678
+
1679
+ > **start**: `number`
1680
+
1681
+ Defined in:
1682
+ [base.ts:157](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L157)
1683
+
1684
+ #### stop
1685
+
1686
+ > **stop**: `number`
1687
+
1688
+ Defined in:
1689
+ [base.ts:158](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L158)
1690
+
1691
+ #### title
1692
+
1693
+ > **title**: `string`
1694
+
1695
+ Defined in:
1696
+ [base.ts:159](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L159)
1697
+
1698
+ ---
1699
+
1700
+ ## AudiobookMetadata
1701
+
1702
+ Defined in:
1703
+ [base.ts:162](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L162)
1704
+
1705
+ ### Properties
1706
+
1707
+ #### authors?
1708
+
1709
+ > `optional` **authors**: `string`[]
1710
+
1711
+ Defined in:
1712
+ [base.ts:168](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L168)
1713
+
1714
+ #### chapters?
1715
+
1716
+ > `optional` **chapters**: [`AudiobookChapter`](#audiobookchapter)[]
1717
+
1718
+ Defined in:
1719
+ [base.ts:167](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L167)
1720
+
1721
+ #### coverArt?
1722
+
1723
+ > `optional` **coverArt**: `IPicture`
1724
+
1725
+ Defined in:
1726
+ [base.ts:166](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L166)
1727
+
1728
+ #### description?
1729
+
1730
+ > `optional` **description**: `string`
1731
+
1732
+ Defined in:
1733
+ [base.ts:165](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L165)
1734
+
1735
+ #### narrators?
1736
+
1737
+ > `optional` **narrators**: `string`[]
1738
+
1739
+ Defined in:
1740
+ [base.ts:169](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L169)
1741
+
1742
+ #### publisher?
1743
+
1744
+ > `optional` **publisher**: `string`
1745
+
1746
+ Defined in:
1747
+ [base.ts:170](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L170)
1748
+
1749
+ #### released?
1750
+
1751
+ > `optional` **released**: `string`
1752
+
1753
+ Defined in:
1754
+ [base.ts:171](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L171)
1755
+
1756
+ #### subtitle?
1757
+
1758
+ > `optional` **subtitle**: `string`
1759
+
1760
+ Defined in:
1761
+ [base.ts:164](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L164)
1762
+
1763
+ #### title?
1764
+
1765
+ > `optional` **title**: `string`
1766
+
1767
+ Defined in:
1768
+ [base.ts:163](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L163)
1769
+
1770
+ # node/entry
1771
+
1772
+ ## AudiobookEntry
1773
+
1774
+ Defined in:
1775
+ [node/entry.ts:12](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L12)
1776
+
1777
+ ### Extends
1778
+
1779
+ - [`BaseAudiobookEntry`](../#baseaudiobookentry)
1780
+
1781
+ ### Constructors
1782
+
1783
+ #### Constructor
1784
+
1785
+ > **new AudiobookEntry**(`entry`): [`AudiobookEntry`](#audiobookentry)
1786
+
1787
+ Defined in:
1788
+ [node/entry.ts:17](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L17)
1789
+
1790
+ ##### Parameters
1791
+
1792
+ | Parameter | Type |
1793
+ | --------- | --------------------------------------------------------------- |
1794
+ | `entry` | `string` \| [`Uint8ArrayEntry`](../#uint8arrayentry) \| `Entry` |
1795
+
1796
+ ##### Returns
1797
+
1798
+ [`AudiobookEntry`](#audiobookentry)
1799
+
1800
+ ##### Overrides
1801
+
1802
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`constructor`](../#baseaudiobookentry#constructor-1)
1803
+
1804
+ ### Properties
1805
+
1806
+ #### entry
1807
+
1808
+ > `protected` **entry**: `string` \| >
1809
+ > [`Uint8ArrayEntry`](../#uint8arrayentry) > \| `Entry`
1810
+
1811
+ Defined in:
1812
+ [node/entry.ts:17](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L17)
1813
+
1814
+ #### file
1815
+
1816
+ > `protected` **file**: `null` \| `File` = `null`
1817
+
1818
+ Defined in:
1819
+ [node/entry.ts:15](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L15)
1820
+
1821
+ ##### Overrides
1822
+
1823
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`file`](../#baseaudiobookentry#file)
1824
+
1825
+ #### filename
1826
+
1827
+ > **filename**: `string`
1828
+
1829
+ Defined in:
1830
+ [node/entry.ts:13](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L13)
1831
+
1832
+ ##### Overrides
1833
+
1834
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`filename`](../#baseaudiobookentry#filename)
1835
+
1836
+ ### Methods
1837
+
1838
+ #### close()
1839
+
1840
+ > **close**(): `void`
1841
+
1842
+ Defined in:
1843
+ [node/entry.ts:64](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L64)
1844
+
1845
+ ##### Returns
1846
+
1847
+ `void`
1848
+
1849
+ #### createFile()
1850
+
1851
+ > **createFile**(): `Promise`\<`File`\>
1852
+
1853
+ Defined in:
1854
+ [node/entry.ts:22](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L22)
1855
+
1856
+ ##### Returns
1857
+
1858
+ `Promise`\<`File`\>
1859
+
1860
+ ##### Overrides
1861
+
1862
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`createFile`](../#baseaudiobookentry#createfile)
1863
+
1864
+ #### getAuthors()
1865
+
1866
+ > **getAuthors**(): `Promise`\<`string`[]\>
1867
+
1868
+ Defined in:
1869
+ [base.ts:57](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L57)
1870
+
1871
+ ##### Returns
1872
+
1873
+ `Promise`\<`string`[]\>
1874
+
1875
+ ##### Inherited from
1876
+
1877
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getAuthors`](../#baseaudiobookentry#getauthors-2)
1878
+
1879
+ #### getCoverArt()
1880
+
1881
+ > **getCoverArt**(): `Promise`\<`null` \| `IPicture`\>
1882
+
1883
+ Defined in:
1884
+ [base.ts:106](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L106)
1885
+
1886
+ ##### Returns
1887
+
1888
+ `Promise`\<`null` \| `IPicture`\>
1889
+
1890
+ ##### Inherited from
1891
+
1892
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getCoverArt`](../#baseaudiobookentry#getcoverart-2)
1893
+
1894
+ #### getData()
1895
+
1896
+ > **getData**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
1897
+
1898
+ Defined in:
1899
+ [node/entry.ts:35](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L35)
1900
+
1901
+ ##### Returns
1902
+
1903
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
1904
+
1905
+ ##### Overrides
1906
+
1907
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getData`](../#baseaudiobookentry#getdata)
1908
+
1909
+ #### getDescription()
1910
+
1911
+ > **getDescription**(): `Promise`\<`null` \| `string`\>
1912
+
1913
+ Defined in:
1914
+ [base.ts:45](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L45)
1915
+
1916
+ ##### Returns
1917
+
1918
+ `Promise`\<`null` \| `string`\>
1919
+
1920
+ ##### Inherited from
1921
+
1922
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getDescription`](../#baseaudiobookentry#getdescription-2)
1923
+
1924
+ #### getFile()
1925
+
1926
+ > **getFile**(): `Promise`\<`File`\>
1927
+
1928
+ Defined in:
1929
+ [base.ts:17](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L17)
1930
+
1931
+ ##### Returns
1932
+
1933
+ `Promise`\<`File`\>
1934
+
1935
+ ##### Inherited from
1936
+
1937
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getFile`](../#baseaudiobookentry#getfile)
1938
+
1939
+ #### getNarrators()
1940
+
1941
+ > **getNarrators**(): `Promise`\<`string`[]\>
1942
+
1943
+ Defined in:
1944
+ [base.ts:84](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L84)
1945
+
1946
+ ##### Returns
1947
+
1948
+ `Promise`\<`string`[]\>
1949
+
1950
+ ##### Inherited from
1951
+
1952
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getNarrators`](../#baseaudiobookentry#getnarrators-2)
1953
+
1954
+ #### getPublisher()
1955
+
1956
+ > **getPublisher**(): `Promise`\<`null` \| `string`\>
1957
+
1958
+ Defined in:
1959
+ [base.ts:130](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L130)
1960
+
1961
+ ##### Returns
1962
+
1963
+ `Promise`\<`null` \| `string`\>
1964
+
1965
+ ##### Inherited from
1966
+
1967
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getPublisher`](../#baseaudiobookentry#getpublisher-2)
1968
+
1969
+ #### getReleased()
1970
+
1971
+ > **getReleased**(): `Promise`\<`null` \| `string`\>
1972
+
1973
+ Defined in:
1974
+ [base.ts:140](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L140)
1975
+
1976
+ ##### Returns
1977
+
1978
+ `Promise`\<`null` \| `string`\>
1979
+
1980
+ ##### Inherited from
1981
+
1982
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getReleased`](../#baseaudiobookentry#getreleased-2)
1983
+
1984
+ #### getSubtitle()
1985
+
1986
+ > **getSubtitle**(): `Promise`\<`null` \| `string`\>
1987
+
1988
+ Defined in:
1989
+ [base.ts:35](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L35)
1990
+
1991
+ ##### Returns
1992
+
1993
+ `Promise`\<`null` \| `string`\>
1994
+
1995
+ ##### Inherited from
1996
+
1997
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getSubtitle`](../#baseaudiobookentry#getsubtitle-2)
1998
+
1999
+ #### getTitle()
2000
+
2001
+ > **getTitle**(): `Promise`\<`null` \| `string`\>
2002
+
2003
+ Defined in:
2004
+ [base.ts:25](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L25)
2005
+
2006
+ ##### Returns
2007
+
2008
+ `Promise`\<`null` \| `string`\>
2009
+
2010
+ ##### Inherited from
2011
+
2012
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`getTitle`](../#baseaudiobookentry#gettitle-2)
2013
+
2014
+ #### persisted()
2015
+
2016
+ > **persisted**(): `boolean`
2017
+
2018
+ Defined in:
2019
+ [node/entry.ts:60](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L60)
2020
+
2021
+ ##### Returns
2022
+
2023
+ `boolean`
2024
+
2025
+ #### readData()
2026
+
2027
+ > `protected` **readData**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
2028
+
2029
+ Defined in:
2030
+ [node/entry.ts:44](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/node/entry.ts#L44)
2031
+
2032
+ ##### Returns
2033
+
2034
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
2035
+
2036
+ #### save()
2037
+
2038
+ > **save**(): `void`
2039
+
2040
+ Defined in:
2041
+ [base.ts:150](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L150)
2042
+
2043
+ ##### Returns
2044
+
2045
+ `void`
2046
+
2047
+ ##### Inherited from
2048
+
2049
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`save`](../#baseaudiobookentry#save)
2050
+
2051
+ #### setAuthors()
2052
+
2053
+ > **setAuthors**(`authors`): `Promise`\<`void`\>
2054
+
2055
+ Defined in:
2056
+ [base.ts:75](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L75)
2057
+
2058
+ ##### Parameters
2059
+
2060
+ | Parameter | Type |
2061
+ | --------- | ---------- |
2062
+ | `authors` | `string`[] |
2063
+
2064
+ ##### Returns
2065
+
2066
+ `Promise`\<`void`\>
2067
+
2068
+ ##### Inherited from
2069
+
2070
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setAuthors`](../#baseaudiobookentry#setauthors-2)
2071
+
2072
+ #### setCoverArt()
2073
+
2074
+ > **setCoverArt**(`picture`): `Promise`\<`void`\>
2075
+
2076
+ Defined in:
2077
+ [base.ts:116](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L116)
2078
+
2079
+ ##### Parameters
2080
+
2081
+ | Parameter | Type |
2082
+ | --------- | ---------- |
2083
+ | `picture` | `IPicture` |
2084
+
2085
+ ##### Returns
2086
+
2087
+ `Promise`\<`void`\>
2088
+
2089
+ ##### Inherited from
2090
+
2091
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setCoverArt`](../#baseaudiobookentry#setcoverart-2)
2092
+
2093
+ #### setDescription()
2094
+
2095
+ > **setDescription**(`description`): `Promise`\<`void`\>
2096
+
2097
+ Defined in:
2098
+ [base.ts:52](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L52)
2099
+
2100
+ ##### Parameters
2101
+
2102
+ | Parameter | Type |
2103
+ | ------------- | -------- |
2104
+ | `description` | `string` |
2105
+
2106
+ ##### Returns
2107
+
2108
+ `Promise`\<`void`\>
2109
+
2110
+ ##### Inherited from
2111
+
2112
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setDescription`](../#baseaudiobookentry#setdescription-2)
2113
+
2114
+ #### setNarrators()
2115
+
2116
+ > **setNarrators**(`narrators`): `Promise`\<`void`\>
2117
+
2118
+ Defined in:
2119
+ [base.ts:100](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L100)
2120
+
2121
+ ##### Parameters
2122
+
2123
+ | Parameter | Type |
2124
+ | ----------- | ---------- |
2125
+ | `narrators` | `string`[] |
2126
+
2127
+ ##### Returns
2128
+
2129
+ `Promise`\<`void`\>
2130
+
2131
+ ##### Inherited from
2132
+
2133
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setNarrators`](../#baseaudiobookentry#setnarrators-2)
2134
+
2135
+ #### setPublisher()
2136
+
2137
+ > **setPublisher**(`publisher`): `Promise`\<`void`\>
2138
+
2139
+ Defined in:
2140
+ [base.ts:135](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L135)
2141
+
2142
+ ##### Parameters
2143
+
2144
+ | Parameter | Type |
2145
+ | ----------- | -------- |
2146
+ | `publisher` | `string` |
2147
+
2148
+ ##### Returns
2149
+
2150
+ `Promise`\<`void`\>
2151
+
2152
+ ##### Inherited from
2153
+
2154
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setPublisher`](../#baseaudiobookentry#setpublisher-2)
2155
+
2156
+ #### setReleased()
2157
+
2158
+ > **setReleased**(`released`): `Promise`\<`void`\>
2159
+
2160
+ Defined in:
2161
+ [base.ts:145](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L145)
2162
+
2163
+ ##### Parameters
2164
+
2165
+ | Parameter | Type |
2166
+ | ---------- | -------- |
2167
+ | `released` | `string` |
2168
+
2169
+ ##### Returns
2170
+
2171
+ `Promise`\<`void`\>
2172
+
2173
+ ##### Inherited from
2174
+
2175
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setReleased`](../#baseaudiobookentry#setreleased-2)
2176
+
2177
+ #### setSubtitle()
2178
+
2179
+ > **setSubtitle**(`subtitle`): `Promise`\<`void`\>
2180
+
2181
+ Defined in:
2182
+ [base.ts:40](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L40)
2183
+
2184
+ ##### Parameters
2185
+
2186
+ | Parameter | Type |
2187
+ | ---------- | -------- |
2188
+ | `subtitle` | `string` |
2189
+
2190
+ ##### Returns
2191
+
2192
+ `Promise`\<`void`\>
2193
+
2194
+ ##### Inherited from
2195
+
2196
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setSubtitle`](../#baseaudiobookentry#setsubtitle-2)
2197
+
2198
+ #### setTitle()
2199
+
2200
+ > **setTitle**(`title`): `Promise`\<`void`\>
2201
+
2202
+ Defined in:
2203
+ [base.ts:30](https://gitlab.com/storyteller-platform/storyteller/-/blob/main/audiobook/src/base.ts#L30)
2204
+
2205
+ ##### Parameters
2206
+
2207
+ | Parameter | Type |
2208
+ | --------- | -------- |
2209
+ | `title` | `string` |
2210
+
2211
+ ##### Returns
2212
+
2213
+ `Promise`\<`void`\>
2214
+
2215
+ ##### Inherited from
2216
+
2217
+ [`BaseAudiobookEntry`](../#baseaudiobookentry).[`setTitle`](../#baseaudiobookentry#settitle-2)