file_format and minor changes
Browse files
App/Generate/database/ElevenLab.py
CHANGED
@@ -763,7 +763,7 @@ class ElevenLab:
|
|
763 |
return audio_url, temp
|
764 |
|
765 |
async def download_file(self, url):
|
766 |
-
filename = str(uuid.uuid4()) + ".
|
767 |
os.makedirs(self.dir, exist_ok=True)
|
768 |
save_path = os.path.join(self.dir, filename)
|
769 |
async with aiohttp.ClientSession() as session:
|
|
|
763 |
return audio_url, temp
|
764 |
|
765 |
async def download_file(self, url):
|
766 |
+
filename = str(uuid.uuid4()) + ".mp3"
|
767 |
os.makedirs(self.dir, exist_ok=True)
|
768 |
save_path = os.path.join(self.dir, filename)
|
769 |
async with aiohttp.ClientSession() as session:
|
App/Generate/database/Model.py
CHANGED
@@ -128,19 +128,19 @@ class Project(orm.Model):
|
|
128 |
self.start = self.start + scene.image_duration
|
129 |
|
130 |
## transitions between images
|
131 |
-
video_assets.append(
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
)
|
144 |
|
145 |
self.assets.append({"type": "audio", "sequence": audio_assets})
|
146 |
## add the images to assets
|
|
|
128 |
self.start = self.start + scene.image_duration
|
129 |
|
130 |
## transitions between images
|
131 |
+
# video_assets.append(
|
132 |
+
# {
|
133 |
+
# "type": "video",
|
134 |
+
# "name": "Effects/" + random.choice(transitions),
|
135 |
+
# "start": self.start - 1,
|
136 |
+
# "end": self.start + 2,
|
137 |
+
# "props": {
|
138 |
+
# "startFrom": 1 * 30,
|
139 |
+
# "endAt": 3 * 30,
|
140 |
+
# "volume": 0,
|
141 |
+
# },
|
142 |
+
# }
|
143 |
+
# )
|
144 |
|
145 |
self.assets.append({"type": "audio", "sequence": audio_assets})
|
146 |
## add the images to assets
|