Skip to main content

Voicemaker

Voicemaker.in is an online text-to-speech service with a dead-simple API. This package is just a wrapper around their API.

This is an unofficial package, and is in no way associated to Voicemaker.

The official API documentation is here: https://developer.voicemaker.in/apidocs

Latest API supported version

The lastest API supported version is the v2.2.

Prerequisites

The only thing you will need is your API token, which you can obtain in the official API documentation page once you log in.

Usage

List all available voices for a language

from voicemaker import Voicemaker

vm = Voicemaker()
vm.list_voices(language="en-US")

Which returns an array of dict elements with the following structure:

[
  {
    "Engine": "neural",
    "VoiceId": "ai1-Joanna",
    "VoiceGender": "Female",
    "VoiceWebname": "Joanna",
    "Country": "US",
    "Language": "en-US"
  },
  ...
]

Generate URL for text

from voicemaker import Voicemaker

vm = Voicemaker()
vm.set_token('<TOKEN>')
vm.generate_audio_url('I met a traveller from an antique land Who said: Two vast and trunkless legs of stone Stand in the desert.')

Returns the URL of the generated voice in MP3 format.

Also accepts the following optional arguments:

text (str): Text to generate an audio from.
engine (str, optional): Choose between 'standard' and 'neutral'. Defaults to 'neural'.
voice_id (str, optional): Uses the selected voice id from the available one for the selected language. Defaults to 'ai3-Jony'.
language_code (str, optional): Language of the target voice. Defaults to 'en-US'.
output_format (str, optional): Choose from 'mp3' and 'wav'. Defaults to 'mp3'.
sample_rate (int, optional): Choose from 48000, 44100, 24000, 22050, 16000, 8000. Defaults to 48000.
effect (str, optional): Effect to give to the voice. Defaults to 'default'.
master_speed (int, optional): Speed from -100 to 100. Defaults to 0.
master_volume (int, optional): Volume of the voice from -100 to 100. Defaults to 0.
master_pitch (int, optional): Pitch of the voice, from -100 to 100. Defaults to 0.

Save generated audio to disk

This is a convenience method. It just calles generate_audio_url, gets the URL, downloads the file and saves it to disk.

from voicemaker import Voicemaker

vm = Voicemaker()
vm.set_token('<TOKEN>')
vm.generate_audio_to_file('test.mp3', 'I met a traveller from an antique land Who said: Two vast and trunkless legs of stone Stand in the desert.')

Metadata

Release files for voicemaker 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voicemaker 0.0.7
File Size Uploaded Provenance
voicemaker-0.0.7.tar.gz 4.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for voicemaker 0.0.7
File Interpreter ABI Platform
voicemaker-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / voicemaker-0.0.7.tar.gz

Download URL voicemaker-0.0.7.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ff83c2f9d77e50ed7336b736ba48c377cb4920dcffcc46657a00855de9c1fdca
BLAKE2b-256 checksum
How to use checksums
2c82bdfe791a1bad02ecad956d7fff2773bd8ac64ba89ef618fd1c2aedf6ec96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / voicemaker-0.0.7-py3-none-any.whl

Download URL voicemaker-0.0.7-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98d67f55fd8bbfa9050f98494694ba3c2c7c26311221b0ac3b6a1ee4bd6484c8
BLAKE2b-256 checksum
How to use checksums
a2535b3d059bcf8656a422ae7ede7aa8a84b978dd1aa9d15437831c5668e85fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Security for voicemaker 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page