Fix: handle echogarden align error (#620)

* may re-generate when "no matching voice found"

* may regenerate if the original text has not-matching voice

* specify language to avoid "no matching voice found"
This commit is contained in:
an-lee
2024-05-20 10:30:28 +08:00
committed by GitHub
parent e0b2f59a23
commit cdbaf89005
10 changed files with 997 additions and 464 deletions

View File

@@ -66,7 +66,10 @@ type MediaPlayerContextType = {
pitchChart: Chart;
// Transcription
transcription: TranscriptionType;
generateTranscription: (text?: string) => void;
generateTranscription: (params?: {
originalText?: string;
language?: string;
}) => void;
transcribing: boolean;
transcribingProgress: number;
transcriptionDraft: TranscriptionType["result"];