Skip to main content

Python Prosody API: Emotion & Prosody sensitive TTS

Project description

prosody

Python Prosody API: Emotion & Prosody sensitive TTS

How To Use

Installing

Install prosody using pip

python -m pip install prosody

Creating a Client

From prosody_api package import Client class, then create a Client object with your valid username and password.

from prosody.prosody_api import Client

cli = Client('your_id', 'your_password')

Creating a Voice Item

In order to create a Voice item, which is needed for API server to generate actual WAV file, import Voice class from voice_item package and create an instance of Voice class. There are five public attributes in Voice class, two of them are necessary, and the rest is optional.

Required Attributes

  1. text: The text user wants to convert to a WAV file.
  2. actor: User can choose the actor of generated voice.

Optional Attributes

  1. emotion
  2. prosody
  3. signature: Users cannot set an arbitrary signature on their own. After registering the Voice, the server will automatically give a signature.
from prosody.prosody_api import Client
from prosody.voice_item import Voice

# Creating a new client and a new Voice object.
cli = Client('your_id', 'your_password')
new_voice = Voice('안녕하세요', 'lady1')
registered_voice = cli.register_voice(new_voice)

# Updating the Voice object.
registered_voice.text = '반갑습니다'
cli.update_voice(registered_voice)

# Removing the Voice object.
cli.remove_voice(registered_voice)

Generating WAV File

Then, you can call generate_voice to create actual WAV file.

cli.generate_voice(registered_voice)

Authors

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

prosody-0.0.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

prosody-0.0.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file prosody-0.0.5.tar.gz.

File metadata

  • Download URL: prosody-0.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.5

File hashes

Hashes for prosody-0.0.5.tar.gz
Algorithm Hash digest
SHA256 30197ebd1e33214d71567286d4e8cbfec95f1f0ea45809d1ba582dc3ffd81bdd
MD5 da3cd0b1334b95e1baf3303e93ccd7ae
BLAKE2b-256 678722570817645957e5763c8569568e29e21fa6e6ca1b5c6804e8028b358213

See more details on using hashes here.

File details

Details for the file prosody-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: prosody-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.5

File hashes

Hashes for prosody-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 34e960c375c9fd7215e6769a016abb9ae5be1d71bdc76bf1d42c14531a5f0a86
MD5 93a1f08e8a60d7908a068aa2e3996f2b
BLAKE2b-256 7f4459a7826af6b8ceef2562fe31b1f758407f10dd4681838a953f03b34d26ff

See more details on using hashes here.

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