Python async client of Avasho API, TextToSpeach service of isahab.ir
Project description
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
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.6.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.6.tar.gz.
File metadata
- Download URL: aioavasho-0.0.6.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 |
82717c9c2ce2b44a655eddf96f83526cd005a23151a2afa38a8454aa3ee17d9c
|
|
| MD5 |
7caf57c5509bbd1681be56917afb81ea
|
|
| BLAKE2b-256 |
b984329ecd443d0765775f89d3f3e12cd91b871c53b0896d098852e209b5de56
|
File details
Details for the file aioavasho-0.0.6-py3-none-any.whl.
File metadata
- Download URL: aioavasho-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.9 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 |
96b3e22b5db13c0bc3da5c1046cb1aabfb6667884377f767bf6c85b5ccc2ff60
|
|
| MD5 |
b31f6362550594415ffc62cbb9e7d167
|
|
| BLAKE2b-256 |
b0a0b41e9769196c9d7b68c2af73dc14a533d821d9d3365c93ac8aaf9ed3d19d
|