-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
50 lines (40 loc) · 1.5 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# # from brad.record_audio import record_audio
# # from brad.text2audio import text2audio
# from chatgpt.text2audio import text2audio
# from chatgpt.record_audio import record_audio
# from chatgpt.audio2video import audio2video
# from chatgpt.image_download import image_get_pexels
# from chatgpt.images2video import images2video
# from chatgpt.merge_av import merge_audio_video
from data_and_config.config import cfg_from_file, cfg
from data_and_config.content_creator import ContentCreator
# 512gb SSD, M2, 16RAM, Air
# 149900 - 97910 - Store Discount 10%, Cashback 5000 Cashback, debit card 6month emi.
def content_from_quote():
cc = ContentCreator("./output", cfg.TOPIC)
cc.download_images()
cc.generate_audio_from_quote()
cc.generate_video_form_images()
cc.merge_audio_video()
cc.upload_youtube()
def content_form_stock():
cfg.TOPIC = cfg.TOPIC.replace(" ", "-")
cc = ContentCreator("./output", cfg.TOPIC)
cc.setInputAudio(cfg.STOCK.AUDIO, check=False)
cc.setInputVideo(cfg.STOCK.VIDEO, check=False)
cc.repeat_and_merge(cfg.STOCK.REPEAT)
def main():
cfg_from_file('data_and_config/config.yml')
# record_audio()
# text2audio()
# audio_path = 'output.wav'
# output_path = 'output.mp4'
# generate_anim()
# image_get_pexels()
# images2video()
# merge_audio_video()
content_form_stock()
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
main()
# See PyCharm help at https://www.jetbrains.com/help/pycharm/