Core class to login to your DeepWord account and generate synthetic videos
account = DeepWord(API_KEY, SECRET_KEY)
account.available_credits
all_videos = account.list_videos()
all_videos[0]
len(all_videos)
account.download_all_videos('my_videos')
!ls my_videos | HEAD -n10
account.download_video_actors()
!ls video_actors
account.download_audio_samples()
!ls audio_samples
account._available_languages[:10]
lang = 'english_us'
speakers = account._available_speakers(lang)
speakers
text = 'I want this speaker to speak this text'
account.text2speech(text, lang, speakers[1])
play_audio('text2speech.mp3')
fname = 'test_video.mp4'
display_video(fname)
account.trim_video(fname, 0, 5)
display_video('trimmed_video.mp4')
account.generate_video('video_actors/Anna.mp4', 'audio_samples/Amy Poehler.mp3')