cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cli provides command-line interface utilities. It handles voice-related commands (list, export) and provider creation.

Key features:

  • Voice listing with caching support
  • Voice export to JSON
  • Provider factory pattern
  • Cache management
  • Formatted voice output

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProvider

func CreateProvider(cfg config.Config) (tts.Provider, error)

CreateProvider creates a TTS provider based on configuration.

func ExportVoices

func ExportVoices(ctx context.Context, cachedProvider *cache.CachedProvider, providerName, outputPath string, log logger.LoggerInterface) error

ExportVoices exports cached voices to a JSON file.

func HandleVoiceCommands

func HandleVoiceCommands(cfg config.Config, voiceCache *cache.VoiceCache, log logger.LoggerInterface) error

HandleVoiceCommands handles all voice-related commands (list, export).

func ListVoices

func ListVoices(ctx context.Context, cachedProvider *cache.CachedProvider, providerName string, refreshCache bool, log logger.LoggerInterface) error

ListVoices lists available voices, using cache or refreshing as needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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