feat: enhance emotion handling in audiobook segments and UI for multi-emotion selection

This commit is contained in:
2026-03-13 14:39:51 +08:00
parent 16947d6b8b
commit 161e7fa76d
4 changed files with 37 additions and 23 deletions

View File

@@ -192,7 +192,7 @@ class AudiobookSegment(Base):
segment_index = Column(Integer, nullable=False)
character_id = Column(Integer, ForeignKey("audiobook_characters.id"), nullable=False)
text = Column(Text, nullable=False)
emo_text = Column(String(20), nullable=True)
emo_text = Column(String(100), nullable=True)
emo_alpha = Column(Float, nullable=True)
audio_path = Column(String(500), nullable=True)
status = Column(String(20), default="pending", nullable=False)