Skip to content

viam-labs/tts-piper

Repository files navigation

tts-piper

A modular service that provides text-to-speech (TTS) capabilities for machines running on the Viam platform.

This module implements the say and to_text commands of the speech service API (viam-labs:service:speech). Follow the documentation there to learn about how to use it with the Viam SDKs.

Usage

To use this module, follow these instructions to add a module from the Viam Registry and select the viam-labs:speech:tts-piper model from the tts-piper module.

Prerequisites

On Linux:

run.sh will automatically install the following system dependencies if not already set up on the machine:

  • python3-pyaudio
  • portaudio19-dev

On MacOS, run.sh will install the following dependencies before adding the modular resource using Homebrew:

brew install portaudio

Before configuring your speech service, you must also create a machine.

Config

Viam Service Configuration

Navigate to the Config tab of your machine's page in the Viam app. Click on the Services subtab and click Create service. Select the speech type, then select the speech:stt-vosk model. Click Add module, then enter a name for your speech service and click Create.

On the new component panel, copy and paste the following attribute template into your service’s Attributes box:

{
  "voice_model_name": "en_US-amy-medium"
}

These are the default values for these fields, none are required to be set for this service.

Attributes

The following attributes are available for the viam-labs:speech:speechio speech service:

Name Type Inclusion Description
voice_model_name string Optional The name of the pre-trained Piper model to be used. Default: "en_US-amy-medium".

Preview the available models

Note

For more information, see Configure a Machine.

Contributing

This project was bootstrapped and it managed by rye. Follow the documentation for installing rye and then run the sync command in your local git clone of this project to get started:

git clone https://github.com/viam-labs/tts-piper && cd tts-piper
make install

License: Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published