Skip to main content

aioavasho

Python async client of Avasho API, TextToSpeech service of isahab.ir

Note: This is not an official client of Avasho or Sahab

Installation

Install aioavasho using pip:

$ pip install aioavasho

Usage Examples

Short Speech

import asyncio
import aioavasho


async def say_salam(
    avasho_client: aioavasho.AvashoClient, name: str
) -> aioavasho.ShortSpeechResponse:
    return await avasho_client.short_speech(
        f"سلام {name}", speaker=aioavasho.Speaker.BAHAR
    )


def main():
    loop: asyncio.AbstractEventLoop = asyncio.new_event_loop()
    avasho: aioavasho.AvashoClient = aioavasho.AvashoClient("TOKEN")
    salam: aioavasho.ShortSpeechResponse = loop.run_until_complete(
        say_salam(avasho, "سالار")
    )
    print(f"file path: {salam.get("filepath")}")


if __name__ == "__main__":
    main()

License

MIT License - see LICENSE file for details

Metadata

Release files for aioavasho 0.0.6

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

Source distribution (sdist)

Source distribution for aioavasho 0.0.6
File Size Uploaded Provenance
aioavasho-0.0.6.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.6 kB

Release files / aioavasho-0.0.6.tar.gz

Download URL aioavasho-0.0.6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
82717c9c2ce2b44a655eddf96f83526cd005a23151a2afa38a8454aa3ee17d9c
BLAKE2b-256 checksum
How to use checksums
b984329ecd443d0765775f89d3f3e12cd91b871c53b0896d098852e209b5de56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / aioavasho-0.0.6-py3-none-any.whl

Download URL aioavasho-0.0.6-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96b3e22b5db13c0bc3da5c1046cb1aabfb6667884377f767bf6c85b5ccc2ff60
BLAKE2b-256 checksum
How to use checksums
b0a0b41e9769196c9d7b68c2af73dc14a533d821d9d3365c93ac8aaf9ed3d19d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for aioavasho 0.0.6

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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