8000 GitHub - rhasspy/rhasspy-client: Client library for talking to remote Rhasspy server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rhasspy/rhasspy-client

Repository files navigation

Rhasspy Client

Continous Integration PyPI package version Python versions GitHub license

Basic client library for talking to a remote Rhasspy server. Uses aiohttp.

Example

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:

$ python3 -m rhasspyclient <COMMAND> [<ARG>, ...]

Use --help to see available commands.

About

Client library for talking to remote Rhasspy server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0