Asynchronous ZvukoGram API wrapper
Project description
A simple, yet powerful library for ZvukoGram API
Usage
With ZvukoGram API you can fully access the ZvukoGram API.
Documentation
Official docs can be found on the API's webpage
Installation
pip install zvukogram
Requirements
Python 3.7+aiohttppydantic
Features
AsynchronousException handlingPydantic return modelLightWeight
Basic example
import asyncio
from zvukogram import ZvukoGram, ZvukoGramError
api = ZvukoGram('token', 'email')
async def main():
try:
voices = await api.get_voices()
print(voices['Русский'].pop().voice)
except ZvukoGramError as exc:
print(exc)
generation = await api.tts(
voice='Бот Максим',
text='Привет!',
)
print(generation.file)
audio = await generation.download()
generation = await api.tts_long(
voice='Бот Максим',
text='Более длинный текст!',
)
while not generation.file:
await asyncio.sleep(1)
generation = await api.check_progress(generation.id)
print(generation.file)
asyncio.run(main())
Developed by Nikita Minaev (c) 2023
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zvukogram-1.0.1.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zvukogram-1.0.1.tar.gz.
File metadata
- Download URL: zvukogram-1.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da8923cba32734a0c5b9d3b5e24e4b8a539c801c1a21a66157281c1caa126434
|
|
| MD5 |
fd5c0c54d26373ac0ee0de1d804b041d
|
|
| BLAKE2b-256 |
14d5b59b3173c8e1f8a17db2eab236a6918a0b194149c83428c1fb4260c9eca2
|
File details
Details for the file zvukogram-1.0.1-py3-none-any.whl.
File metadata
- Download URL: zvukogram-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27fd9c6fad83e5a76ed5189803fae651a6670b6d29188714f940cc0a5856261e
|
|
| MD5 |
2c6968f1ea817d342fba4140b43fce07
|
|
| BLAKE2b-256 |
20ef1f0248821b6c14bdf25cdcfcc8f9e1dda8f378cdf37350f2005b0300b2a3
|