https://github.com/rhasspy/rhasspy-client
Client library for talking to remote Rhasspy server
https://github.com/rhasspy/rhasspy-client
Last synced: 9 days ago
JSON representation
Client library for talking to remote Rhasspy server
- Host: GitHub
- URL: https://github.com/rhasspy/rhasspy-client
- Owner: rhasspy
- License: mit
- Created: 2019-11-17T20:49:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T16:16:05.000Z (over 2 years ago)
- Last Synced: 2025-03-28T08:11:54.399Z (27 days ago)
- Language: Python
- Size: 41 KB
- Stars: 7
- Watchers: 4
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rhasspy Client
[](https://github.com/rhasspy/rhasspy-client/actions)
[](https://pypi.org/project/rhasspy-client)
[](https://www.python.org)
[](https://github.com/rhasspy/rhasspy-client/blob/master/LICENSE)Basic client library for talking to a remote [Rhasspy](https://rhasspy.readthedocs.io) server. Uses [aiohttp](https://aiohttp.readthedocs.io/en/stable/).
## Example
```python
import asyncioimport aiohttp
from rhasspyclient import RhasspyClientasync def main():
async with aiohttp.ClientSession() as session:
client = RhasspyClient("http://localhost:12101/api", session)
result = await client.text_to_intent("what time is it")
print(result)loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```## Module CLI
You can run the module too:
```bash
$ python3 -m rhasspyclient [, ...]
```Use `--help` to see available commands.