An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Rhasspy Client

[![Continous Integration](https://github.com/rhasspy/rhasspy-client/workflows/Tests/badge.svg)](https://github.com/rhasspy/rhasspy-client/actions)
[![PyPI package version](https://img.shields.io/pypi/v/rhasspy-client.svg)](https://pypi.org/project/rhasspy-client)
[![Python versions](https://img.shields.io/pypi/pyversions/rhasspy-client.svg)](https://www.python.org)
[![GitHub license](https://img.shields.io/github/license/rhasspy/rhasspy-client.svg)](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 asyncio

import aiohttp
from rhasspyclient import RhasspyClient

async 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.