Catalog PyPI
PACKAGE EXPLORERView in registry

aioavasho

PyPI

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

avashotts
Versions collected1
Direct dependencies1From release 0.0.6
Last observed21 Oct, 11:37 UTC

README

Version 0.0.6 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.611 Feb 20251

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
snosratiershad/aioavasho

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ca4ea10253aed59bf16567dceb38aecd0155f370abb6e0ef79743176a0bb7512