added blanks
Browse files
App/Generate/database/Model.py
CHANGED
|
@@ -150,14 +150,6 @@ class Project(orm.Model):
|
|
| 150 |
"width": 1080,
|
| 151 |
}
|
| 152 |
self.assets.append({"type": "text", "sequence": text_stream})
|
| 153 |
-
# try:
|
| 154 |
-
# text_stream = await self.generate_transcript()
|
| 155 |
-
# print(text_stream)
|
| 156 |
-
# self.assets.append({"type": "text", "sequence": text_stream})
|
| 157 |
-
|
| 158 |
-
# except Exception as e:
|
| 159 |
-
# print(f"Text sequence failed, {e}")
|
| 160 |
-
# pass
|
| 161 |
|
| 162 |
await self.update(**self.__dict__)
|
| 163 |
return {"links": self.links, "assets": self.assets, "constants": self.constants}
|
|
@@ -218,7 +210,9 @@ class Scene(orm.Model):
|
|
| 218 |
retry_count = 0
|
| 219 |
while retry_count < 3:
|
| 220 |
try:
|
| 221 |
-
return await self.tts.say(
|
|
|
|
|
|
|
| 222 |
except Exception as e:
|
| 223 |
print(f"Failed to generate narration: {e}")
|
| 224 |
retry_count += 1
|
|
|
|
| 150 |
"width": 1080,
|
| 151 |
}
|
| 152 |
self.assets.append({"type": "text", "sequence": text_stream})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
await self.update(**self.__dict__)
|
| 155 |
return {"links": self.links, "assets": self.assets, "constants": self.constants}
|
|
|
|
| 210 |
retry_count = 0
|
| 211 |
while retry_count < 3:
|
| 212 |
try:
|
| 213 |
+
return await self.tts.say(
|
| 214 |
+
text=self.narration + ", , ,"
|
| 215 |
+
) ### The blanks help to even stuff up.
|
| 216 |
except Exception as e:
|
| 217 |
print(f"Failed to generate narration: {e}")
|
| 218 |
retry_count += 1
|