Skip to main content

Deep word utilities in Python

Project description

Welcome to dword

An amazing library to create synthetic videos

Installation

Install the dword library

pip install dword

Make sure you have ffmpeg installed.

Quick start

Step 1: Use api keys to login

Start by logging into your DeepWord account and generating API keys

test_image

Use these keys to login to your DeepWord account via the Python api

from dword.core import DeepWord
acc = DeepWord(API_KEY, SECRET_KEY)
login successful

Now, make sure that you have enough credits available to generate synthetic videos.

acc.available_credits
9975.5

Step 2: Start creating videos

That's it!!!!

You can now start creating synthetic videos. All you need is a video of the person talking and the audio you want them to say. In this quick start tutorial, we will use a video and audio we already have.

To learn more about different ways to use video and audio, refer our tutorial here.

acc.generate_video('Anna.mp4', 'my_audio.mp3', title = 'first_deepword_video')
{'status': True,
 'message': 'Your video has been added to the queue for processing. It should be complete within 10-15 minutes',
 'url': 'https://login.deepword.co/video/b47y6a4xnhkuey7ak6'}

{% include important.html content='The video can take a few minutes to generate. You can find the status of the video by retrieving a list of all videos on your account' %}

acc.list_videos()[-1]
{'email': 'test_dword_api@yopmail.com',
 'thumbnail': 'video_b47y6afmn0kri14srr.mp4',
 'title': 'video_0',
 'video_url': 'https://videos-deep-word123.s3.us-east-2.amazonaws.com/output_data/b47y6afmn0kri14srr.mp4',
 'video_duration': '30.0000',
 'video_id': 'b47y6afmn0kri14srr',
 'generate_date': '2021-07-24T17:11:42.000Z',
 'output_status': 'Complete'}

Once the status changes from 'Queued' to 'Completed' you can either use acc.download_video or acc.download_all_videos to download your video.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dword-0.0.9.tar.gz (19.5 kB view hashes)

Uploaded Source

Built Distribution

dword-0.0.9-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page