Sample tutorial for how you can test all of our video actors with your audio to see which output looks the best and fits your neeeds
import os
from dword.core import DeepWord
from dword.utils import play_audio
from pathlib import Path
acc = DeepWord(API_KEY, SECRET_KEY)
acc.available_credits
acc.download_video_actors()
!ls video_actors
path = Path('video_actors/')
actor_list = list(path.glob('*'))
actor_list[:5]
text = 'this is some audio I want to test with all video actors before deciding which actor to use'
acc._available_languages[:10]
lang = 'english_us'
speaker = acc._available_speakers(lang)[5]
audio = acc.text2speech(text, lang, speaker)
play_audio(audio)
for act in actor_list[:2]:
title = f'{act.stem}_test.mp4'
acc.generate_video(act, audio, title = title) # same audio with different actors