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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file dword-0.0.9.tar.gz.

File metadata

  • Download URL: dword-0.0.9.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for dword-0.0.9.tar.gz
Algorithm Hash digest
SHA256 5e160745e048091a596c741b92c0e3074eb5aebd700a220336bec3f4a173b00b
MD5 96e9db9de9fe14c59de2d41969c3ce7a
BLAKE2b-256 ada067082b21ed16f5a302241d28f7d79dfb15fd303898e0ff386a7d6328c79e

See more details on using hashes here.

File details

Details for the file dword-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: dword-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for dword-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e80261d3a2b4e77b4c12f4ac883ad5d33723d98c643e62c6aa370700fef4543d
MD5 6c86fb828a35a4b15de9f00d995c225b
BLAKE2b-256 3aa20ac24de90c9fef8ba777fe93b5efa30ab4a5038d3605d8135f9c9d773b65

See more details on using hashes here.

Supported by

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