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 ¶
- func CreateProvider(cfg config.Config) (tts.Provider, error)
- func ExportVoices(ctx context.Context, cachedProvider *cache.CachedProvider, ...) error
- func HandleVoiceCommands(cfg config.Config, voiceCache *cache.VoiceCache, log logger.LoggerInterface) error
- func ListVoices(ctx context.Context, cachedProvider *cache.CachedProvider, providerName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProvider ¶
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.
Click to show internal directories.
Click to hide internal directories.