pocket_tts/error.rs

AutoAgents · crates/autoagents-speech/src/providers/pocket_tts/error.rs · rust · Apache-2.0
voice

! Error types for Pocket-TTS provider

// Source: https://github.com/liquidos-ai/AutoAgents | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
//! Error types for Pocket-TTS provider

use thiserror::Error;

/// Pocket-TTS specific errors
#[derive(Error, Debug)]
pub enum PocketTTSError {
    /// Voice processing error
    #[error(
        "Voice processing failed: {0}\nVoice name: {1}\nOperation: {2}\nSuggestion: Check voice name spelling and ensure voice embeddings are downloaded"
    )]
    VoiceError(String, String, String),

    /// Audio generation error
    #[error(
        "Audio generation failed: {0}\nStage: {1}\nDetails: {2}\nSuggestion: Check input text encoding and model state"
    )]
    GenerationError(String, String, String),

    /// IO error
    #[error("IO error: {0}\nFile pa

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key