在生成对话文字时,同时在后台生成tts音频,增加朗读音色选择,增加博物馆的概况接口

This commit is contained in:
qcloud
2025-02-23 09:52:30 +08:00
parent c88312a914
commit a5e83f4d3b
7 changed files with 653 additions and 224 deletions

View File

@@ -988,7 +988,44 @@ class CanvasTemplate(DataBaseModel):
class Meta:
db_table = "canvas_template"
# ------------added by cyx for mesum overview
class MesumOverview(DataBaseModel):
name = CharField(
max_length=128,
null=False,
help_text="mesum name",
primary_key=False)
longitude = CharField(
max_length=40,
null=True,
help_text="Longitude",
index=False)
latitude = CharField(
max_length=40,
null=True,
help_text="latitude",
index=False)
antique=CharField(
max_length=1024,
null=True,
help_text="antique",
index=False)
brief = CharField(
max_length=1024,
null=True,
help_text="brief",
index=False)
def __str__(self):
return self.name
class Meta:
db_table = "mesum_overview"
#-------------------------------------------
def migrate_db():
with DB.transaction():
migrator = DatabaseMigrator[settings.DATABASE_TYPE.upper()].value(DB)