feat: Add emotion handling to audiobook segments with emo_text and emo_alpha attributes
This commit is contained in:
@@ -45,6 +45,8 @@ export interface AudiobookSegment {
|
||||
character_id: number
|
||||
character_name?: string
|
||||
text: string
|
||||
emo_text?: string
|
||||
emo_alpha?: number
|
||||
audio_path?: string
|
||||
status: string
|
||||
}
|
||||
|
||||
@@ -1082,6 +1082,11 @@ function ProjectCard({ project, onRefresh }: { project: AudiobookProject; onRefr
|
||||
<Badge variant="outline" className="text-xs shrink-0">
|
||||
{seg.character_name || t('projectCard.segments.unknownCharacter')}
|
||||
</Badge>
|
||||
{seg.emo_text && (
|
||||
<Badge variant="secondary" className="text-xs shrink-0">
|
||||
{seg.emo_text}
|
||||
</Badge>
|
||||
)}
|
||||
{seg.status === 'generating' && <Loader2 className="h-3 w-3 animate-spin text-muted-foreground" />}
|
||||
{seg.status === 'error' && <Badge variant="destructive" className="text-xs">{t('projectCard.segments.errorBadge')}</Badge>}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user