feat: Add emotion handling to audiobook segments with emo_text and emo_alpha attributes
This commit is contained in:
@@ -40,3 +40,12 @@ def init_db():
|
||||
conn.commit()
|
||||
except Exception:
|
||||
pass
|
||||
for col_def in [
|
||||
"ALTER TABLE audiobook_segments ADD COLUMN emo_text VARCHAR(20)",
|
||||
"ALTER TABLE audiobook_segments ADD COLUMN emo_alpha REAL",
|
||||
]:
|
||||
try:
|
||||
conn.execute(__import__("sqlalchemy").text(col_def))
|
||||
conn.commit()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user