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.4.tar.gz
(3.7 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 aioavasho-0.0.4.tar.gz.
File metadata
- Download URL: aioavasho-0.0.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef065d15022661b88d82f563cf977627fc65f370df828ef102eff27ab9785bf
|
|
| MD5 |
00ace1223ecc3cb3076b21e090858d14
|
|
| BLAKE2b-256 |
334b14286e62ab214d34794dab3edaa1e9485e57493bf02946af6fb45eecae3f
|
File details
Details for the file aioavasho-0.0.4-py3-none-any.whl.
File metadata
- Download URL: aioavasho-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a61ba35c24430edf59027f161d0f54d7dfdc08bc813070357ea3e39ac0953c1
|
|
| MD5 |
fdee2b17c1e793374dc2ddaed0a84862
|
|
| BLAKE2b-256 |
218dd7e280ca2cf0c11492676ada4d3296444a2d34ad779bf7dce3857953c312
|