Skip to main content

An http api client which allows to automatically convert russian short texts into speech using vk cloud

Project description

Marude

Marusia demo interface - an http api client which allows to automatically convert russian short texts into speech using vk cloud.

Installation

To create a conda environment and install dependencies use the following command:

conda create -f environment.yml

Then activate created environment:

conda activate marude

Usage

After the environment is set up, the app can be used from the command line:

python -m marude tts 'Привет, мир' -m pavel -p message.mp3

The provided text (which must be 1024 characters long or shorter) will be converted into speech and saved as an audiofile message.mp3. By default the file is saved at assets/message.mp3.

The module can be used programmatically as well. First, install the module through pip:

pip install marude

Then run your script, which may look like this (see example):

from tasty import pipe
from marude import CloudVoiceClient, Voice


if __name__ == '__main__':

    client = CloudVoiceClient(Voice.MARIA)

    with open('message-1.mp3', 'wb') as file:
        _ = 'Съешь еще этих мягких французских булок' | pipe | client.tts | pipe | file.write

    with open('message-2.mp3', 'wb') as file:
        _ = 'да выпей чаю' | pipe | client.tts | pipe | file.write

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

marude-0.3.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

marude-0.3.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file marude-0.3.0.tar.gz.

File metadata

  • Download URL: marude-0.3.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.9

File hashes

Hashes for marude-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6831f948579bb764fb7d84d559670a74ee653c4ace640500dcc98ebbc60d5211
MD5 05fcc3b35dc00a2eef7d39dc8b080a6b
BLAKE2b-256 84eb6a6c0e85ffc6978bfef0cce5e4beb2a9b8f4784c850459eea5fb6cf9d044

See more details on using hashes here.

File details

Details for the file marude-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: marude-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.9

File hashes

Hashes for marude-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dbf5bc3f416c972af965ce750a01b08a982abbf8fb08b88b756b2233e8d0272
MD5 ce4eade3057f74bb9a1c10b6506599c7
BLAKE2b-256 93d08f63f10dc04cd7f69ebec70fc33e7674d7868733641a385c5ba4dab504a0

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