Mbonea commited on
Commit
d007318
1 Parent(s): 7ea89c2

Improvements, removed transtitions

Browse files
App/Generate/database/ElevenLab.py ADDED
@@ -0,0 +1,789 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import aiohttp
2
+ import asyncio
3
+ import os
4
+ import uuid
5
+ import tempfile
6
+
7
+
8
+ class ElevenLab:
9
+ def __init__(self):
10
+ self.api_url = "https://4336zvnmaw.us-east-1.awsapprunner.com"
11
+ self.dir = str(tempfile.mkdtemp())
12
+ self.headers = {"Connection": "keep-alive", "Content-Type": "application/json"}
13
+ self.voices = [
14
+ {
15
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Aaron [North America, Male, Adult].mp3",
16
+ "category": "generated",
17
+ "name": "Aaron [North America, Male, Adult]",
18
+ "voice_id": "YGD8MPCMMCEtmc5C1e4n",
19
+ "description": "american, young, male",
20
+ },
21
+ {
22
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Abigail.mp3",
23
+ "category": "generated",
24
+ "name": "Abigail",
25
+ "voice_id": "C3Iez0cLQu2nhWdeIdRL",
26
+ "description": "american, confident, young, female, social_media",
27
+ },
28
+ {
29
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Adam.mp3",
30
+ "category": "premade",
31
+ "name": "Adam",
32
+ "voice_id": "pNInz6obpgDQGcFmaJgB",
33
+ "description": "american, middle aged, male, narration",
34
+ },
35
+ {
36
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Alex.mp3",
37
+ "category": "generated",
38
+ "name": "Alex",
39
+ "voice_id": "LP5FiPNIUj4ZKhZ6uw7g",
40
+ "description": "american, intense, young, male, narrative_story",
41
+ },
42
+ {
43
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Amritanshu.mp3",
44
+ "category": "professional",
45
+ "name": "Amritanshu",
46
+ "voice_id": "1qZOLVpd1TVic43MSkFY",
47
+ "description": "indian, crisp, male, informative_educational",
48
+ },
49
+ {
50
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Amy.mp3",
51
+ "category": "generated",
52
+ "name": "Amy",
53
+ "voice_id": "kDuavY9iblawTM7XXfko",
54
+ "description": "american, crisp, young, female, advertisement",
55
+ },
56
+ {
57
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Andre [North America, Male, Adult].mp3",
58
+ "category": "generated",
59
+ "name": "Andre [North America, Male, Adult]",
60
+ "voice_id": "U7J5NnlayshHr7Z71Wso",
61
+ "description": "american, young, male",
62
+ },
63
+ {
64
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Andrew.mp3",
65
+ "category": "generated",
66
+ "name": "Andrew",
67
+ "voice_id": "EMI6TU8unLVMVRwAS4D1",
68
+ "description": "american, casual, young, male, social_media",
69
+ },
70
+ {
71
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Antoni.mp3",
72
+ "category": "premade",
73
+ "name": "Antoni",
74
+ "voice_id": "ErXwobaYiN019PkySvjV",
75
+ "description": "american, young, male, narration",
76
+ },
77
+ {
78
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Arjun.mp3",
79
+ "category": "generated",
80
+ "name": "Arjun",
81
+ "voice_id": "43MnyipNiFU4WSf74Xr7",
82
+ "description": "indian, deep, young, male, informative_educational",
83
+ },
84
+ {
85
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Arnold.mp3",
86
+ "category": "premade",
87
+ "name": "Arnold",
88
+ "voice_id": "VR6AewLTigWG4xSOukaG",
89
+ "description": "american, middle aged, male, narration",
90
+ },
91
+ {
92
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Bill.mp3",
93
+ "category": "premade",
94
+ "name": "Bill",
95
+ "voice_id": "pqHfZKP75CvOlQylNhV4",
96
+ "description": "american, middle aged, male, documentary",
97
+ },
98
+ {
99
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Bob [North America, Male, Old].mp3",
100
+ "category": "generated",
101
+ "name": "Bob [North America, Male, Old]",
102
+ "voice_id": "q0WcWS65WZ2a6Z30XyKU",
103
+ "description": "american, old, male",
104
+ },
105
+ {
106
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Bosco [North America, Male, Adult].mp3",
107
+ "category": "generated",
108
+ "name": "Bosco [North America, Male, Adult]",
109
+ "voice_id": "NSJUUCbctHs2xlXnpUGC",
110
+ "description": "african, young, male",
111
+ },
112
+ {
113
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Brad [North America, Male, Adult].mp3",
114
+ "category": "generated",
115
+ "name": "Brad [North America, Male, Adult]",
116
+ "voice_id": "S456qluv8mEX39UfR9jm",
117
+ "description": "american, middle_aged, male",
118
+ },
119
+ {
120
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Brandon [North America, Male, Old].mp3",
121
+ "category": "generated",
122
+ "name": "Brandon [North America, Male, Old]",
123
+ "voice_id": "Jb2ZETbcvvfQ0yT8AfQm",
124
+ "description": "american, old, male",
125
+ },
126
+ {
127
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Brian [North America, Male, Old].mp3",
128
+ "category": "generated",
129
+ "name": "Brian [North America, Male, Old]",
130
+ "voice_id": "ZPAZxV13vwBPd4zQNxt1",
131
+ "description": "american, old, male",
132
+ },
133
+ {
134
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Bruce [North America, Male, Adult] [Deep].mp3",
135
+ "category": "generated",
136
+ "name": "Bruce [North America, Male, Adult] [Deep]",
137
+ "voice_id": "l8QWgIvZBvDFhRXCNlJb",
138
+ "description": "american, middle_aged, male",
139
+ },
140
+ {
141
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Callum.mp3",
142
+ "category": "premade",
143
+ "name": "Callum",
144
+ "voice_id": "N2lVS1w4EtoT3dr4eOWO",
145
+ "description": "american, middle aged, male, video games",
146
+ },
147
+ {
148
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Carl.mp3",
149
+ "category": "generated",
150
+ "name": "Carl",
151
+ "voice_id": "cxnObTdeUVB31HmS6G4p",
152
+ "description": "british, deep, old, male, conversational",
153
+ },
154
+ {
155
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Caroline [UK, Female, Adult].mp3",
156
+ "category": "generated",
157
+ "name": "Caroline [UK, Female, Adult]",
158
+ "voice_id": "8HZKfomDkVF1FtMOTNJ6",
159
+ "description": "british, young, female",
160
+ },
161
+ {
162
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Charlie.mp3",
163
+ "category": "premade",
164
+ "name": "Charlie",
165
+ "voice_id": "IKne3meq5aSn9XLyUdCD",
166
+ "description": "australian, middle aged, male, conversational",
167
+ },
168
+ {
169
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Charlotte.mp3",
170
+ "category": "premade",
171
+ "name": "Charlotte",
172
+ "voice_id": "XB0fDUnXU5powFXDhCwa",
173
+ "description": "english-swedish, middle aged, female, video games",
174
+ },
175
+ {
176
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Clyde.mp3",
177
+ "category": "premade",
178
+ "name": "Clyde",
179
+ "voice_id": "2EiwWnXFnvU5JabPnv8n",
180
+ "description": "american, middle aged, male, video games",
181
+ },
182
+ {
183
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Daniel.mp3",
184
+ "category": "premade",
185
+ "name": "Daniel",
186
+ "voice_id": "onwK4e9ZLuTAKqWW03F9",
187
+ "description": "british, middle aged, male, news presenter",
188
+ },
189
+ {
190
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Dave.mp3",
191
+ "category": "premade",
192
+ "name": "Dave",
193
+ "voice_id": "CYw3kZ02Hs0563khs1Fj",
194
+ "description": "british-essex, young, male, video games",
195
+ },
196
+ {
197
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Diva.mp3",
198
+ "category": "generated",
199
+ "name": "Diva",
200
+ "voice_id": "vZSVcdpJoUZLAAyZYfAz",
201
+ "description": "indian, formal, young, female, narrative_story",
202
+ },
203
+ {
204
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Domi.mp3",
205
+ "category": "premade",
206
+ "name": "Domi",
207
+ "voice_id": "AZnzlk1XvdvUeBnXmlld",
208
+ "description": "american, young, female, narration",
209
+ },
210
+ {
211
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Dorothy.mp3",
212
+ "category": "premade",
213
+ "name": "Dorothy",
214
+ "voice_id": "ThT5KcBeYPX3keUQqHPh",
215
+ "description": "british, young, female, children's stories",
216
+ },
217
+ {
218
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Drew.mp3",
219
+ "category": "premade",
220
+ "name": "Drew",
221
+ "voice_id": "29vD33N1CtxCmqQRPOHJ",
222
+ "description": "american, middle aged, male, news",
223
+ },
224
+ {
225
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Erika [UK, Female, Young].mp3",
226
+ "category": "generated",
227
+ "name": "Erika [UK, Female, Young]",
228
+ "voice_id": "jdL71PLBSnnAYbmq8EwJ",
229
+ "description": "indian, young, female",
230
+ },
231
+ {
232
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Ethan.mp3",
233
+ "category": "premade",
234
+ "name": "Ethan",
235
+ "voice_id": "g5CIjZEefAph4nQFvHAz",
236
+ "description": "american, young, male, ASMR",
237
+ },
238
+ {
239
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Ezreal.mp3",
240
+ "category": "generated",
241
+ "name": "Ezreal",
242
+ "voice_id": "2W8QxcEi69qc1wh8xhuk",
243
+ "description": "american, confident, young, male, characters_animation",
244
+ },
245
+ {
246
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Fin.mp3",
247
+ "category": "premade",
248
+ "name": "Fin",
249
+ "voice_id": "D38z5RcWu1voky8WS1ja",
250
+ "description": "irish, old, male, video games",
251
+ },
252
+ {
253
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Freya.mp3",
254
+ "category": "premade",
255
+ "name": "Freya",
256
+ "voice_id": "jsCqWAovK2LkecY7zXl4",
257
+ "description": "american, young, female, video games",
258
+ },
259
+ {
260
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Gabby.mp3",
261
+ "category": "generated",
262
+ "name": "Gabby",
263
+ "voice_id": "ZdnuY2mr2iEYUH8OlDmk",
264
+ "description": "african, husky, young, female, narrative_story",
265
+ },
266
+ {
267
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Gabriella.mp3",
268
+ "category": "generated",
269
+ "name": "Gabriella",
270
+ "voice_id": "GpOuURs45N7gHfIxH2j3",
271
+ "description": "american, sassy, middle_aged, female, characters_animation",
272
+ },
273
+ {
274
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Gerald [UK, Male, Adult].mp3",
275
+ "category": "generated",
276
+ "name": "Gerald [UK, Male, Adult]",
277
+ "voice_id": "rn36nUPcGjSHnlNRtl2X",
278
+ "description": "african, old, male",
279
+ },
280
+ {
281
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Gillian [North America, Female, Adult].mp3",
282
+ "category": "generated",
283
+ "name": "Gillian [North America, Female, Adult]",
284
+ "voice_id": "WTKq0GrBaTs4d5xqZoA7",
285
+ "description": "american, young, female",
286
+ },
287
+ {
288
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Giovanni.mp3",
289
+ "category": "premade",
290
+ "name": "Giovanni",
291
+ "voice_id": "zcAOhNBS3c14rBihAFp1",
292
+ "description": "english-italian, young, male, audiobook",
293
+ },
294
+ {
295
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Glinda.mp3",
296
+ "category": "premade",
297
+ "name": "Glinda",
298
+ "voice_id": "z9fAnlkpzviPz146aGWa",
299
+ "description": "american, middle aged, female, video games",
300
+ },
301
+ {
302
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Grace.mp3",
303
+ "category": "premade",
304
+ "name": "Grace",
305
+ "voice_id": "oWAxZDx7w5VEj9dCyTzz",
306
+ "description": "american-southern, young, female, audiobook ",
307
+ },
308
+ {
309
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Hank [North America, Male, Old].mp3",
310
+ "category": "generated",
311
+ "name": "Hank [North America, Male, Old]",
312
+ "voice_id": "zpfB1puKk5dflnrZ4HGz",
313
+ "description": "american, old, male",
314
+ },
315
+ {
316
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Hannah.mp3",
317
+ "category": "generated",
318
+ "name": "Hannah",
319
+ "voice_id": "p328nLsZIvWPC8EWiUCn",
320
+ "description": "american, pleasant, middle_aged, female, narrative_story",
321
+ },
322
+ {
323
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Harry.mp3",
324
+ "category": "premade",
325
+ "name": "Harry",
326
+ "voice_id": "SOYHLrjzK2X1ezoPC6cr",
327
+ "description": "american, young, male, video games",
328
+ },
329
+ {
330
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Iris.mp3",
331
+ "category": "generated",
332
+ "name": "Iris",
333
+ "voice_id": "fml9pRck6vnUvMoFvHKc",
334
+ "description": "american, gentle, young, female, conversational",
335
+ },
336
+ {
337
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/James.mp3",
338
+ "category": "generated",
339
+ "name": "James",
340
+ "voice_id": "Sz46BeRyiz9Nx9xud23c",
341
+ "description": "american, confident, middle_aged, male, characters_animation",
342
+ },
343
+ {
344
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Jax.mp3",
345
+ "category": "generated",
346
+ "name": "Jax",
347
+ "voice_id": "tSdKNFB9FPJtIN25C69n",
348
+ "description": "african, mature, middle_aged, male, conversational",
349
+ },
350
+ {
351
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Jeremy.mp3",
352
+ "category": "premade",
353
+ "name": "Jeremy",
354
+ "voice_id": "bVMeCyTHy58xNoL34h3p",
355
+ "description": "american-irish, young, male, narration",
356
+ },
357
+ {
358
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Jessie.mp3",
359
+ "category": "premade",
360
+ "name": "Jessie",
361
+ "voice_id": "t0jbNlBVZ17f02VDIeMI",
362
+ "description": "american, old, male, video games",
363
+ },
364
+ {
365
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Jim.mp3",
366
+ "category": "generated",
367
+ "name": "Jim",
368
+ "voice_id": "mEBve583FI8xnS7cSwoX",
369
+ "description": "american, pleasant, young, male, entertainment_tv",
370
+ },
371
+ {
372
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Joanne [North America, Female, Adult].mp3",
373
+ "category": "generated",
374
+ "name": "Joanne [North America, Female, Adult]",
375
+ "voice_id": "bT0vAXwKx82DBH9CGTqu",
376
+ "description": "american, young, female",
377
+ },
378
+ {
379
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Johannes [Africa, Male, Old].mp3",
380
+ "category": "generated",
381
+ "name": "Johannes [Africa, Male, Old]",
382
+ "voice_id": "nwKTA4kI2U6cfdm4iDBk",
383
+ "description": "african, old, male",
384
+ },
385
+ {
386
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Joseph [Africa, Male, Old] [Deep].mp3",
387
+ "category": "generated",
388
+ "name": "Joseph [Africa, Male, Old] [Deep]",
389
+ "voice_id": "mPtNnreciJ73eSPiBAD8",
390
+ "description": "african, old, male",
391
+ },
392
+ {
393
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Josh.mp3",
394
+ "category": "premade",
395
+ "name": "Josh",
396
+ "voice_id": "TxGEqnHWrfWFTfGW9XjX",
397
+ "description": "american, young, male, narration",
398
+ },
399
+ {
400
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Julia.mp3",
401
+ "category": "generated",
402
+ "name": "Julia",
403
+ "voice_id": "NgMsArH2b26HVAumF6yx",
404
+ "description": "american, upbeat, young, female, narrative_story",
405
+ },
406
+ {
407
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Julius [North America, Male, Adult].mp3",
408
+ "category": "generated",
409
+ "name": "Julius [North America, Male, Adult]",
410
+ "voice_id": "kFDE1ElcvrWbgJWeRoke",
411
+ "description": "american, young, male",
412
+ },
413
+ {
414
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Kalu [Africa, Male, Adult].mp3",
415
+ "category": "generated",
416
+ "name": "Kalu [Africa, Male, Adult]",
417
+ "voice_id": "OpO4DJa2ejVDSB76Iwt2",
418
+ "description": "african, young, male",
419
+ },
420
+ {
421
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Keli.mp3",
422
+ "category": "generated",
423
+ "name": "Keli",
424
+ "voice_id": "oDhbxAtuC0OEMIN9duZC",
425
+ "description": "american, excited, young, female, social_media",
426
+ },
427
+ {
428
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Kiel [UK, Male, Adult].mp3",
429
+ "category": "generated",
430
+ "name": "Kiel [UK, Male, Adult]",
431
+ "voice_id": "GDMsifKZMfgKlSSRHZ3p",
432
+ "description": "british, old, male",
433
+ },
434
+ {
435
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Kimber.mp3",
436
+ "category": "generated",
437
+ "name": "Kimber",
438
+ "voice_id": "zadU88Br2ruxenJGqQxG",
439
+ "description": "american, excited, middle_aged, female, narrative_story",
440
+ },
441
+ {
442
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Lena.mp3",
443
+ "category": "generated",
444
+ "name": "Lena",
445
+ "voice_id": "iighga31Bs4C1CTjor8i",
446
+ "description": "american, cheeky, young, female, social_media",
447
+ },
448
+ {
449
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Liam.mp3",
450
+ "category": "premade",
451
+ "name": "Liam",
452
+ "voice_id": "TX3LPaxmHKxFdv7VOQHJ",
453
+ "description": "american, young, male, narration",
454
+ },
455
+ {
456
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Magnolia.mp3",
457
+ "category": "generated",
458
+ "name": "Magnolia",
459
+ "voice_id": "87vOnVOmLljNG4xII0mT",
460
+ "description": "african, mature, middle_aged, female, informative_educational",
461
+ },
462
+ {
463
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Marcus [North America, Male, Adult] [Deep].mp3",
464
+ "category": "generated",
465
+ "name": "Marcus [North America, Male, Adult] [Deep]",
466
+ "voice_id": "Wd5ZirjKPabjvtTgnQg0",
467
+ "description": "american, middle_aged, male",
468
+ },
469
+ {
470
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Marques.mp3",
471
+ "category": "generated",
472
+ "name": "Marques",
473
+ "voice_id": "8ooYQvuWViEmIJMaUu2X",
474
+ "description": "african, pleasant, young, male, narrative_story",
475
+ },
476
+ {
477
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Maryanne.mp3",
478
+ "category": "generated",
479
+ "name": "Maryanne",
480
+ "voice_id": "3tpDcwOtqrwlpVOPn6Ut",
481
+ "description": "american, cute, young, female, Storytelling",
482
+ },
483
+ {
484
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Matilda.mp3",
485
+ "category": "premade",
486
+ "name": "Matilda",
487
+ "voice_id": "XrExE9yKIg1WjnnlVkGX",
488
+ "description": "american, young, female, audiobook",
489
+ },
490
+ {
491
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Matthew [North America, Male, Adult] [Whisper].mp3",
492
+ "category": "generated",
493
+ "name": "Matthew [North America, Male, Adult] [Whisper]",
494
+ "voice_id": "J5Hc23uOggalhqMTa6nE",
495
+ "description": "american, middle_aged, male",
496
+ },
497
+ {
498
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Maya.mp3",
499
+ "category": "generated",
500
+ "name": "Maya",
501
+ "voice_id": "546EISeOlrDbgOmIO3uZ",
502
+ "description": "american, meditative, young, female, narrative_story",
503
+ },
504
+ {
505
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Michael.mp3",
506
+ "category": "premade",
507
+ "name": "Michael",
508
+ "voice_id": "flq6f7yk4E4fJM5XTYuZ",
509
+ "description": "american, old, male, audiobook",
510
+ },
511
+ {
512
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Mick [Australia, Male, Adult].mp3",
513
+ "category": "generated",
514
+ "name": "Mick [Australia, Male, Adult]",
515
+ "voice_id": "2Ta4CbBZJ2Nhp7yFxi2Y",
516
+ "description": "australian, middle_aged, male",
517
+ },
518
+ {
519
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Mike.mp3",
520
+ "category": "generated",
521
+ "name": "Mike",
522
+ "voice_id": "rkvn7xzNBv9lCtEH24Zz",
523
+ "description": "american, calm, young, male, entertainment_tv",
524
+ },
525
+ {
526
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Myra.mp3",
527
+ "category": "generated",
528
+ "name": "Myra",
529
+ "voice_id": "GdrtyESFVdYwpmLnq4UL",
530
+ "description": "american, upbeat, young, female, conversational",
531
+ },
532
+ {
533
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Myriam [North America, Female, Young].mp3",
534
+ "category": "generated",
535
+ "name": "Myriam [North America, Female, Young]",
536
+ "voice_id": "OMrznXTO38QqtBa9XfFu",
537
+ "description": "australian, young, female",
538
+ },
539
+ {
540
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Natasha.mp3",
541
+ "category": "generated",
542
+ "name": "Natasha",
543
+ "voice_id": "xn9QM1b1mWMSQmbALzen",
544
+ "description": "american, sassy, young, female, social_media",
545
+ },
546
+ {
547
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Natasia.mp3",
548
+ "category": "generated",
549
+ "name": "Natasia",
550
+ "voice_id": "9tqVIPhSvVt8FDeAYMO7",
551
+ "description": "african, mature, middle_aged, female, conversational",
552
+ },
553
+ {
554
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Nicole.mp3",
555
+ "category": "premade",
556
+ "name": "Nicole",
557
+ "voice_id": "piTKgcLEGmPE4e6mEKli",
558
+ "description": "american, young, female, audiobook",
559
+ },
560
+ {
561
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Noah.mp3",
562
+ "category": "generated",
563
+ "name": "Noah",
564
+ "voice_id": "R7jBf6zxDQJtm1iq6rW7",
565
+ "description": "american, calm, young, male, informative_educational",
566
+ },
567
+ {
568
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Oliver.mp3",
569
+ "category": "generated",
570
+ "name": "Oliver",
571
+ "voice_id": "OLf8fsuVSS6VyuFoDlHY",
572
+ "description": "american, modulated, young, male, narrative_story",
573
+ },
574
+ {
575
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Oscar [UK, Male, Old].mp3",
576
+ "category": "generated",
577
+ "name": "Oscar [UK, Male, Old]",
578
+ "voice_id": "4lbz9Mt70VF7v82XdjaO",
579
+ "description": "african, old, male",
580
+ },
581
+ {
582
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Paola.mp3",
583
+ "category": "generated",
584
+ "name": "Paola",
585
+ "voice_id": "sn3BNXKryoY3l9c74BnN",
586
+ "description": "american, gentle, young, female, conversational",
587
+ },
588
+ {
589
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Patricia.mp3",
590
+ "category": "generated",
591
+ "name": "Patricia",
592
+ "voice_id": "FrZ4dJ6V1jMCoSUJO23Y",
593
+ "description": "american, pleasant, young, female, conversational",
594
+ },
595
+ {
596
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Patrick [Africa, Male, Adult].mp3",
597
+ "category": "generated",
598
+ "name": "Patrick [Africa, Male, Adult]",
599
+ "voice_id": "c6bmV2wCVOeFYal1uYSN",
600
+ "description": "african, young, male",
601
+ },
602
+ {
603
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Paul.mp3",
604
+ "category": "premade",
605
+ "name": "Paul",
606
+ "voice_id": "5Q0t7uMcjvnagumLfvZi",
607
+ "description": "american, middle aged, male, news",
608
+ },
609
+ {
610
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Paula.mp3",
611
+ "category": "generated",
612
+ "name": "Paula",
613
+ "voice_id": "CHax7ep2HJ6YE7rWRFVE",
614
+ "description": "american, gentle, middle_aged, female, narrative_story",
615
+ },
616
+ {
617
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Posie.mp3",
618
+ "category": "generated",
619
+ "name": "Posie",
620
+ "voice_id": "LHrQJob1hKPeddMLspEa",
621
+ "description": "african, casual, young, female, conversational",
622
+ },
623
+ {
624
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Priya.mp3",
625
+ "category": "generated",
626
+ "name": "Priya",
627
+ "voice_id": "00AtUjxZWseGNzCg2hAi",
628
+ "description": "indian, casual, young, male, conversational",
629
+ },
630
+ {
631
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Rachel.mp3",
632
+ "category": "premade",
633
+ "name": "Rachel",
634
+ "voice_id": "21m00Tcm4TlvDq8ikWAM",
635
+ "description": "american, young, female, narration",
636
+ },
637
+ {
638
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Raven.mp3",
639
+ "category": "generated",
640
+ "name": "Raven",
641
+ "voice_id": "ekTxB2LDTaJyy0LPAUbx",
642
+ "description": "american, pleasant, young, female, social_media",
643
+ },
644
+ {
645
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Rayan.mp3",
646
+ "category": "generated",
647
+ "name": "Rayan",
648
+ "voice_id": "yB4kbvttg3WWq5R8HuEX",
649
+ "description": "american, confident, old, female, entertainment_tv",
650
+ },
651
+ {
652
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Rebecca [North America, Female, Young].mp3",
653
+ "category": "generated",
654
+ "name": "Rebecca [North America, Female, Young]",
655
+ "voice_id": "DjPz1qB9cteHqNMbnzaz",
656
+ "description": "american, young, female",
657
+ },
658
+ {
659
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Rose [North America, Female, Young].mp3",
660
+ "category": "generated",
661
+ "name": "Rose [North America, Female, Young]",
662
+ "voice_id": "sYLUtZpVhnGchwd2pYGC",
663
+ "description": "american, young, female",
664
+ },
665
+ {
666
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Sally.mp3",
667
+ "category": "generated",
668
+ "name": "Sally",
669
+ "voice_id": "QtKATu8gXE525Ml2aqnV",
670
+ "description": "american, relaxed, young, female, conversational",
671
+ },
672
+ {
673
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Sam.mp3",
674
+ "category": "premade",
675
+ "name": "Sam",
676
+ "voice_id": "yoZ06aMxZJJ28mfd3POQ",
677
+ "description": "american, young, male, narration",
678
+ },
679
+ {
680
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Sanjay [India, Male, Adult].mp3",
681
+ "category": "generated",
682
+ "name": "Sanjay [India, Male, Adult]",
683
+ "voice_id": "GnF7mpJrZJ5fq9WkxF6w",
684
+ "description": "indian, middle_aged, male",
685
+ },
686
+ {
687
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Sara.mp3",
688
+ "category": "generated",
689
+ "name": "Sara",
690
+ "voice_id": "wRTEg58D7p7fc9Knory0",
691
+ "description": "american, intense, young, female, characters_animation",
692
+ },
693
+ {
694
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Scarlett.mp3",
695
+ "category": "generated",
696
+ "name": "Scarlett",
697
+ "voice_id": "F2j1uF488FjKPfWDdt6p",
698
+ "description": "american, pleasant, middle_aged, female, conversational",
699
+ },
700
+ {
701
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Sneha [India, Female, Adult].mp3",
702
+ "category": "generated",
703
+ "name": "Sneha [India, Female, Adult]",
704
+ "voice_id": "xUDy0qehRqP0gA1DHlgJ",
705
+ "description": "indian, young, female",
706
+ },
707
+ {
708
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Sunita [India, Female, Young].mp3",
709
+ "category": "generated",
710
+ "name": "Sunita [India, Female, Young]",
711
+ "voice_id": "kQXZXdVadBByBfGwsU5B",
712
+ "description": "indian, young, female",
713
+ },
714
+ {
715
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Thomas.mp3",
716
+ "category": "premade",
717
+ "name": "Thomas",
718
+ "voice_id": "GBv7mTt0atIp3Br8iCZE",
719
+ "description": "american, young, male, meditation",
720
+ },
721
+ {
722
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Timmy.mp3",
723
+ "category": "generated",
724
+ "name": "Timmy",
725
+ "voice_id": "GQ6B5bGEswEmbiAqoFpo",
726
+ "description": "british, casual, young, male, social_media",
727
+ },
728
+ {
729
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/Walter [North America, Male, Adult].mp3",
730
+ "category": "generated",
731
+ "name": "Walter [North America, Male, Adult]",
732
+ "voice_id": "Ad8LXrZKVRNA2vjIglDH",
733
+ "description": "australian, old, male",
734
+ },
735
+ {
736
+ "preview_url": "https://augie-background-music.s3.amazonaws.com/voices/William [North America, Male, Adult].mp3",
737
+ "category": "generated",
738
+ "name": "William [North America, Male, Adult]",
739
+ "voice_id": "f3DHv9UOLFJoO8JHmvhc",
740
+ "description": "american, young, male",
741
+ },
742
+ ]
743
+
744
+ async def _make_request(self, method, endpoint, json=None):
745
+ async with aiohttp.ClientSession() as session:
746
+ async with getattr(session, method)(
747
+ f"{self.api_url}/{endpoint}", json=json
748
+ ) as response:
749
+ return await response.json()
750
+
751
+ async def say(self, text, speaker="Adam"):
752
+
753
+ for i in self.voices:
754
+ name = i["name"].split(" ")[0]
755
+ if name.lower() == speaker.lower():
756
+ voiceId = i["voice_id"]
757
+ data = {"voiceId": voiceId, "text": text}
758
+
759
+ response_data = await self._make_request("post", "convert", json=data)
760
+ print(response_data)
761
+ audio_url = response_data["contentUrl"]
762
+ temp = await self.download_file(audio_url)
763
+ return audio_url, temp
764
+
765
+ async def download_file(self, url):
766
+ filename = str(uuid.uuid4()) + ".wav"
767
+ os.makedirs(self.dir, exist_ok=True)
768
+ save_path = os.path.join(self.dir, filename)
769
+ async with aiohttp.ClientSession() as session:
770
+ async with session.get(url) as response:
771
+ if response.status == 200:
772
+ with open(save_path, "wb") as file:
773
+ while True:
774
+ chunk = await response.content.read(1024)
775
+ if not chunk:
776
+ break
777
+ file.write(chunk)
778
+
779
+ return save_path
780
+
781
+
782
+ # Usage
783
+ # async def main():
784
+ # tts = ElevenLab()
785
+ # await tts.say("Did you know that you don't have the balls to talk to me")
786
+
787
+
788
+ # Run the main function
789
+ # asyncio.run(main())
App/Generate/database/Model.py CHANGED
@@ -4,6 +4,7 @@ import asyncio, os
4
  import uuid, random
5
  from pydub import AudioSegment
6
  from .DescriptAPI import Speak
 
7
  from .Vercel import AsyncImageGenerator
8
  import aiohttp
9
  from typing import List
@@ -160,6 +161,7 @@ class Project(orm.Model):
160
 
161
  class Scene(orm.Model):
162
  tts = Speak(dir=tempfile.mkdtemp())
 
163
  tablename = "scenes"
164
  registry = models
165
  fields = {
@@ -199,7 +201,7 @@ class Scene(orm.Model):
199
  retry_count = 0
200
  while retry_count < 3:
201
  try:
202
- return await self.tts.say(
203
  text=self.narration + " master"
204
  ) ### The blanks help to even stuff up.
205
  except Exception as e:
 
4
  import uuid, random
5
  from pydub import AudioSegment
6
  from .DescriptAPI import Speak
7
+ from .ElevenLab import ElevenLab
8
  from .Vercel import AsyncImageGenerator
9
  import aiohttp
10
  from typing import List
 
161
 
162
  class Scene(orm.Model):
163
  tts = Speak(dir=tempfile.mkdtemp())
164
+ eleven = ElevenLab()
165
  tablename = "scenes"
166
  registry = models
167
  fields = {
 
201
  retry_count = 0
202
  while retry_count < 3:
203
  try:
204
+ return await self.eleven.say(
205
  text=self.narration + " master"
206
  ) ### The blanks help to even stuff up.
207
  except Exception as e:
Remotion-app/src/HelloWorld/ImageStream.jsx CHANGED
@@ -12,6 +12,7 @@ import {
12
  } from 'remotion';
13
  import imageSequences from './Assets/ImageSequences.json';
14
  import {TransitionSeries, linearTiming} from '@remotion/transitions';
 
15
 
16
  const ImageStream = React.memo(() => {
17
  const {fps} = useVideoConfig();
@@ -39,6 +40,10 @@ const ImageStream = React.memo(() => {
39
  >
40
  <Images key={index} index={index} entry={entry} />;
41
  </TransitionSeries.Sequence>
 
 
 
 
42
  </>
43
  );
44
  })}
@@ -65,7 +70,7 @@ const Images = React.memo(({entry, index}) => {
65
  }}
66
  className="bg-black"
67
  >
68
- <Audio src={staticFile('sfx_1.mp3')} volume={0.5} />
69
  <Img
70
  id="imagex"
71
  style={{
 
12
  } from 'remotion';
13
  import imageSequences from './Assets/ImageSequences.json';
14
  import {TransitionSeries, linearTiming} from '@remotion/transitions';
15
+ import {slide} from '@remotion/transitions/slide';
16
 
17
  const ImageStream = React.memo(() => {
18
  const {fps} = useVideoConfig();
 
40
  >
41
  <Images key={index} index={index} entry={entry} />;
42
  </TransitionSeries.Sequence>
43
+ <TransitionSeries.Transition
44
+ presentation={slide()}
45
+ timing={linearTiming({durationInFrames: 30})}
46
+ />
47
  </>
48
  );
49
  })}
 
70
  }}
71
  className="bg-black"
72
  >
73
+ {/* <Audio src={staticFile('sfx_1.mp3')} volume={0.5} /> */}
74
  <Img
75
  id="imagex"
76
  style={{
Remotion-app/src/HelloWorld/VideoStream.jsx CHANGED
@@ -32,7 +32,7 @@ const VideoX = React.memo(({entry}) => {
32
  const {fps} = useVideoConfig();
33
  return (
34
  <Video
35
- pauseWhenBuffering
36
  startFrom={(fps * entry.props.startFrom) / 30}
37
  endAt={(fps * entry.props.endAt) / 30}
38
  volume={(fps * entry.props.volume) / 30}
 
32
  const {fps} = useVideoConfig();
33
  return (
34
  <Video
35
+ pauseWhenBuffering
36
  startFrom={(fps * entry.props.startFrom) / 30}
37
  endAt={(fps * entry.props.endAt) / 30}
38
  volume={(fps * entry.props.volume) / 30}