Skip to main content

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

Project description

aioavasho

Python async client of Avasho API, TextToSpeach 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 Speach

import asyncio
import aioavasho


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


def main():
    loop: asyncio.AbstractEventLoop = asyncio.new_event_loop()
    avasho: aioavasho.AvashoClient = aioavasho.AvashoClient("TOKEN")
    salam: aioavasho.ShortSpeachResponse = 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

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

aioavasho-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioavasho-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file aioavasho-0.0.3.tar.gz.

File metadata

  • Download URL: aioavasho-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for aioavasho-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fe1d4f26b61d6f358eb5fa9b7a7918e56e0ed1410bad2d31680f29a5fb82ef3c
MD5 097ed45c76141d7d22d9dd511f7f04e9
BLAKE2b-256 91303ed1deda2a4cb7fad1fb86371d240215da1c2e1545f7590576a48d42eb38

See more details on using hashes here.

File details

Details for the file aioavasho-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: aioavasho-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for aioavasho-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d3cc0936dd1d5bcf3137d97530b3e60430564c18d57181cf6aefd81ef274c24
MD5 72f0f70e21eee11308c146fb452c9e77
BLAKE2b-256 83292b1ab1cfb63cb563e2cd949f57b5acdb4c6888df84b93674bfd277f0fcca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page