feat: Add emotion handling to audiobook segments with emo_text and emo_alpha attributes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
from sqlalchemy import Column, Integer, String, Boolean, DateTime, ForeignKey, Text, Index, JSON
|
||||
from sqlalchemy import Column, Integer, String, Boolean, DateTime, Float, ForeignKey, Text, Index, JSON
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from db.database import Base
|
||||
@@ -189,6 +189,8 @@ 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_alpha = Column(Float, nullable=True)
|
||||
audio_path = Column(String(500), nullable=True)
|
||||
status = Column(String(20), default="pending", nullable=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user