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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe1d4f26b61d6f358eb5fa9b7a7918e56e0ed1410bad2d31680f29a5fb82ef3c
|
|
| MD5 |
097ed45c76141d7d22d9dd511f7f04e9
|
|
| BLAKE2b-256 |
91303ed1deda2a4cb7fad1fb86371d240215da1c2e1545f7590576a48d42eb38
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d3cc0936dd1d5bcf3137d97530b3e60430564c18d57181cf6aefd81ef274c24
|
|
| MD5 |
72f0f70e21eee11308c146fb452c9e77
|
|
| BLAKE2b-256 |
83292b1ab1cfb63cb563e2cd949f57b5acdb4c6888df84b93674bfd277f0fcca
|