电子书馆增加听书功能

This commit is contained in:
mtvpls
2026-05-04 14:50:28 +08:00
parent 038abff091
commit da7b01bc35
11 changed files with 1290 additions and 54 deletions
+28
View File
@@ -128,6 +128,34 @@ export interface BookReadRecord {
saveTime: number;
}
export interface BookTtsVoice {
name: string;
shortName: string;
locale: string;
gender?: string;
displayName: string;
}
export interface BookTtsBoundary {
offset: number;
duration: number;
text: string;
}
export interface BookTtsProgress {
sourceId: string;
bookId: string;
chapterHref: string;
chapterTitle?: string;
chunkIndex: number;
charOffset: number;
voice: string;
rate: string;
pitch: string;
volume: string;
saveTime: number;
}
export interface BookReadManifest {
book: BookDetail;
format: 'epub' | 'pdf';