aioavasho


Nameaioavasho JSON
Version 0.0.5 PyPI version JSON
download
home_pageNone
SummaryPython async client of Avasho API, TextToSpeach service of isahab.ir
upload_time2025-02-02 16:25:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords avasho tts
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:
```bash
$ pip install aioavasho
```

# Usage Examples
## Short Speach
```python
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](LICENSE) file for details

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aioavasho",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "avasho, tts",
    "author": null,
    "author_email": "Salar Nosrati-Ershad <snosratiershad@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/da/56/f47819abe68208e5c307877f1029f784a8a1851c73888028c63fc12e9a58/aioavasho-0.0.5.tar.gz",
    "platform": null,
    "description": "# aioavasho\nPython async client of Avasho API, TextToSpeach service of isahab.ir\n\nNote: This is not an official client of Avasho or Sahab\n\n# Installation\nInstall aioavasho using pip:\n```bash\n$ pip install aioavasho\n```\n\n# Usage Examples\n## Short Speach\n```python\nimport asyncio\nimport aioavasho\n\n\nasync def say_salam(\n    avasho_client: aioavasho.AvashoClient, name: str\n) -> aioavasho.ShortSpeachResponse:\n    return await avasho_client.short_speach(\n        f\"\u0633\u0644\u0627\u0645 {name}\", speaker=aioavasho.Speaker.BAHAR\n    )\n\n\ndef main():\n    loop: asyncio.AbstractEventLoop = asyncio.new_event_loop()\n    avasho: aioavasho.AvashoClient = aioavasho.AvashoClient(\"TOKEN\")\n    salam: aioavasho.ShortSpeachResponse = loop.run_until_complete(\n        say_salam(avasho, \"\u0633\u0627\u0644\u0627\u0631\")\n    )\n    print(f\"file path: {salam.get(\"filepath\")}\")\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n# License\nMIT License - see [LICENSE](LICENSE) file for details\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python async client of Avasho API, TextToSpeach service of isahab.ir",
    "version": "0.0.5",
    "project_urls": {
        "Homepage": "https://github.com/snosratiershad/aioavasho"
    },
    "split_keywords": [
        "avasho",
        " tts"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "aeae08e7bee60e88c66fff967e9be333b3f9b864294f432ed28d64806dd8f9bc",
                "md5": "805a78fc716cff53a6af35c325729682",
                "sha256": "fffd1e90e9a97319edfecf3f83ad63d914b819af8a94669106f444175252bf6f"
            },
            "downloads": -1,
            "filename": "aioavasho-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "805a78fc716cff53a6af35c325729682",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3861,
            "upload_time": "2025-02-02T16:25:47",
            "upload_time_iso_8601": "2025-02-02T16:25:47.742523Z",
            "url": "https://files.pythonhosted.org/packages/ae/ae/08e7bee60e88c66fff967e9be333b3f9b864294f432ed28d64806dd8f9bc/aioavasho-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "da56f47819abe68208e5c307877f1029f784a8a1851c73888028c63fc12e9a58",
                "md5": "1f10e2cdf01729e9218fe070ca369744",
                "sha256": "0332f868c1a6e06d1802900599eda1fb396a6be0b9c57ea2bc07dd2e0adbe381"
            },
            "downloads": -1,
            "filename": "aioavasho-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "1f10e2cdf01729e9218fe070ca369744",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3748,
            "upload_time": "2025-02-02T16:25:48",
            "upload_time_iso_8601": "2025-02-02T16:25:48.858995Z",
            "url": "https://files.pythonhosted.org/packages/da/56/f47819abe68208e5c307877f1029f784a8a1851c73888028c63fc12e9a58/aioavasho-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-02 16:25:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "snosratiershad",
    "github_project": "aioavasho",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aioavasho"
}
        
Elapsed time: 0.79203s