restRoberto

command module
v0.0.0-...-2eb3d90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

restRoberto

Go Report Card

restRoberto - Simple HTTP API that generates audio file with the (not so) famous Roberto voice.

Endpoints

GET /audio

Generates audio from the provided text and replies with status code 202 and the audio as raw PCM.

Query parameters:

  • token: the authorization token
  • text: the text used to generate the audio
  • voice: the voice to use (Roberto or Paola). Default is Roberto.

Example query: GET https://rest.roberto.site/audio?token=valid_token&text=nyanpasu

Docker

There's now a working image deployed. Take a look here for the image

Docker Compose

To run restRoberto with Docker Compose, first copy example_config.yml to config.yml and edit it with your tokens, then run:

docker compose up -d

Clients

Rust

A synchronous client using ureq is available in the repository under rust-client folder.

Python

Use the python client under the python-client folder to perform a GET request and save the response content to an output.wav file. It requires request library.

pip install requests
curl
curl -o output.wav "http://localhost:8087/audio?token=your_token&text=ciao"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址