Skip to main content

Introduction

Text-to-speech gives the avatar its voice. TTS_SERVICE in the API's configuration picks the default provider:

  • google (the default)
  • azure
  • openai: any OpenAI-compatible speech API, such as a local Kokoro
  • http: a speech service with a small HTTP API (/v1/synthesize)

Every option is in API variables.

Voice per avatar​

An avatar can choose its own provider and voice. In the application's repository, next to the avatar's model (for example avatars/myavatar/avatar.glb), the file avatars/myavatar/avatar.glb.yaml:

name: Peppino
gender: M
prompt: You are an awesome chef
tts:
provider: google
model: it-IT-Chirp3-HD-Aoede

Then save the application again (sermas-cli app save ./myapp) and reload the kiosk.