xtts

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: BSD-2-Clause Imports: 12 Imported by: 0 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.

Documentation

Overview

Package xtts provides text-to-speech via a self-hosted Coqui XTTS streaming server (https://github.com/coqui-ai/xtts-streaming-server). The server holds the voices; this client fetches a studio speaker's embeddings once and streams raw 24 kHz PCM for each sentence.

Deprecated: XTTS has no replacement. The maintained local text-to-speech services are github.com/gojargo/jargo/provider/kokoro and github.com/gojargo/jargo/provider/piper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTTS deprecated

func NewTTS(cfg Config) *tts.Base

NewTTS builds a Coqui XTTS TTS service.

Deprecated: XTTS has no replacement. Use github.com/gojargo/jargo/provider/kokoro or github.com/gojargo/jargo/provider/piper, the maintained local text-to-speech services.

Types

type Config

type Config struct {
	// BaseURL is the XTTS streaming server base (e.g. http://localhost:8000). Required.
	BaseURL string `validate:"required"`
	// Voice is the studio speaker name to synthesize with. Required.
	Voice string `validate:"required"`
	// Language is the synthesis language code; empty uses "en".
	Language string
	// SampleRate is the PCM output rate reported downstream; 0 uses 24 kHz.
	SampleRate int
}

Config configures a Coqui XTTS streaming-server TTS service.

func (Config) Validate

func (c Config) Validate() error

Validate reports whether the configuration is usable.

Jump to

Keyboard shortcuts

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