Skip to main content

Resemble API Client Library

Project description

resemble.ai API

resemble.ai is a state-of-the-art natural voice cloning and synthesis provider. Best of all, the platform is accessible by using our public API! Sign up here to get an API token!

This repository hosts a Python library for convenient usage of the Resemble API.

Quick start

from resemble import Resemble

Resemble.api_key('your_api_key')

project = Resemble.v2.projects.get('project_uuid')
voice = Resemble.v2.voices.get('voice_uuid')

clip = Resemble.v2.clip.create_sync('project_uuid', 'voice_uuid', 'This is a test')

Development

The library files are located in resemble/

Testing

Install nose (pip install nose), then run tests like so:

$ TEST_API_KEY=<...> TEST_BASE_URL=<...> nosetests

Note: To see print() output, add --nocapture like so: nosetests --nocapture

Publishing new versions

  1. git status: Make sure your working directory has no pending changes.
  2. Update the version attribute in setup.cfg.
  3. git commit: Commit this version change.
  4. Remove previous builds: rm -rf ./dist/.
  5. Build the package: python3 -m build.
  6. (optional) Publish to the test index:
python3 -m twine upload --repository testpypi dist/*
  1. Publish to the index
python3 -m twine upload dist/*

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

resemble-1.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

resemble-1.1.2-py3-none-any.whl (4.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