Skip to content

Main component of Milobella. Client makes text or audio http requests on it to talk with Milobella

Notifications You must be signed in to change notification settings

milobella/oratio

Repository files navigation

Build CI Deploy CI

Oratio

The main entry point of Milobella. We send it text and it returns vocalizable answer.

Prerequisites

Install

$ go build -o bin/oratio cmd/oratio/main.go

Run

$ bin/oratio

configuration config.toml will be checked in the following paths

  • /etc/oratio
  • $HOME/.oratio
  • .

A configuration example can be found in config.toml.

Examples of requests

Talk to oratio

$ curl -iv -H "Content-Type: application/json" -X POST http://localhost:9100/api/v1/talk/text -d '{"text": "Quelle heure il est ? "}'

Register a new ability

$ curl -iv -H "Content-Type: application/json" -X POST http://localhost:9100/api/v1/abilities -d '{"name": "clock", "intents":["GET_TIME"], "host": "localhost", "port": 10300}'

Get all registered abilities from every source (cache, database, config)

$ curl -iv -X GET http://localhost:9100/api/v1/abilities

Get abilities from cache, database, or config

$ curl -iv -X GET http://localhost:9100/api/v1/abilities?from=cache
$ curl -iv -X GET http://localhost:9100/api/v1/abilities?from=database
$ curl -iv -X GET http://localhost:9100/api/v1/abilities?from=config