Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zvukogram

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zvukogram

Asynchronous ZvukoGram API wrapper

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

ZvukoGram API

PyPI PyPI

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+
  • aiohttp
  • pydantic

Features

  • Asynchronous
  • Exception handling
  • Pydantic return model
  • LightWeight

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc