feat: 添加音频

This commit is contained in:
zyronon
2025-05-20 03:34:39 +08:00
parent 6772cb7dac
commit 4146a6e5eb
199 changed files with 2097 additions and 746 deletions

View File

@@ -109,13 +109,10 @@ export interface Article {
title: string,
titleTranslate: string,
text: string,
textCustomTranslate: string,
textCustomTranslateIsFormat: boolean,//翻译是否格式化
textNetworkTranslate: string,
textTranslate: string,
newWords: Word[],
textAllWords: string[],
sections: Sentence[][],
useTranslateType: TranslateType,
audioSrc: string,
lrcPosition: number[][],
}
@@ -126,13 +123,10 @@ export const DefaultArticle: Article = {
title: '',
titleTranslate: '',
text: '',
textCustomTranslate: '',
textNetworkTranslate: '',
textCustomTranslateIsFormat: false,
textTranslate: '',
newWords: [],
textAllWords: [],
sections: [],
useTranslateType: TranslateType.custom,
audioSrc: '',
lrcPosition: [],
}
@@ -175,6 +169,7 @@ export enum ShortcutKey {
ShowWord = 'ShowWord',
EditArticle = 'EditArticle',
Next = 'Next',
Replay = 'Replay',
Previous = 'Previous',
ToggleSimple = 'ToggleSimple',
ToggleCollect = 'ToggleCollect',
@@ -199,6 +194,7 @@ export const DefaultShortcutKeyMap = {
[ShortcutKey.ShowWord]: 'Escape',
[ShortcutKey.Previous]: 'Alt+⬅',
[ShortcutKey.Next]: 'Tab',
[ShortcutKey.Replay]: 'Tab',
[ShortcutKey.ToggleSimple]: '`',
[ShortcutKey.ToggleCollect]: 'Enter',
[ShortcutKey.PreviousChapter]: 'Ctrl+⬅',