o
    à¥µi|	  ã                   @   s(  d Z G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d	d
„ d
eƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZ	G dd„ de	ƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZG d!d"„ d"eƒZG d#d$„ d$eƒZd%S )&z
Define TTS exceptions
c                   @   ó   e Zd ZdZdS )ÚTtsExceptionz
    TTS exception class.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úY/home/ubuntu/.local/lib/python3.10/site-packages/modelscope/utils/audio/tts_exceptions.pyr      ó    r   c                   @   r   )ÚTtsModelConfigurationExceptionz-
    TTS model configuration exceptions.
    Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚTtsModelNotExistsExceptionz)
    TTS model not exists exception.
    Nr   r   r   r   r	   r      ó    r   c                   @   r   )ÚTtsVoiceNotExistsExceptionz)
    TTS voice not exists exception.
    Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚTtsFrontendExceptionz/
    TTS frontend module level exceptions.
    Nr   r   r   r   r	   r   "   r
   r   c                   @   r   )Ú$TtsFrontendInitializeFailedExceptionzZ
    If tts frontend resource is invalid or not exist, this exception will be raised.
    Nr   r   r   r   r	   r   )   r
   r   c                   @   r   )Ú'TtsFrontendLanguageTypeInvalidExceptionzE
    If language type is invalid, this exception will be raised.
    Nr   r   r   r   r	   r   0   r   r   c                   @   r   )ÚTtsVocoderExceptionz
    Vocoder exception
    Nr   r   r   r   r	   r   6   r   r   c                   @   r   )Ú'TtsVocoderMelspecShapeMismatchExceptionzS
    If vocoder's input melspec shape mismatch, this exception will be raised.
    Nr   r   r   r   r	   r   <   r   r   c                   @   r   )ÚTtsDataPreprocessorExceptionz'
    Tts data preprocess exception
    Nr   r   r   r   r	   r   B   r   r   c                   @   r   )Ú(TtsDataPreprocessorDirNotExistsExceptionzB
    If any dir is not exists, this exception will be raised.
    Nr   r   r   r   r	   r   H   r   r   c                   @   r   )Ú0TtsDataPreprocessorAudioConfigNotExistsExceptionzG
    If audio config is not exists, this exception will be raised.
    Nr   r   r   r   r	   r   N   s    r   c                   @   r   )ÚTtsTrainingExceptionz 
    Tts training exception
    Nr   r   r   r   r	   r   U   r   r   c                   @   r   )Ú"TtsTrainingHparamsInvalidExceptionzH
    If training hparams is invalid, this exception will be raised.
    Nr   r   r   r   r	   r   [   r   r   c                   @   r   )Ú$TtsTrainingWorkDirNotExistsExceptionzI
    If training work dir not exists, this exception will be raised.
    Nr   r   r   r   r	   r   a   r   r   c                   @   r   )Ú TtsTrainingCfgNotExistsExceptionzD
    If training cfg not exists, this exception will be raised.
    Nr   r   r   r   r	   r   g   r   r   c                   @   r   )Ú"TtsTrainingDatasetInvalidExceptionz<
    If dataset invalid, this exception will be raised.
    Nr   r   r   r   r	   r   m   r   r   c                   @   r   )Ú TtsTrainingInvalidModelExceptionzK
    If model is invalid or not exists, this exception will be raised.
    Nr   r   r   r   r	   r   s   r   r   N)r   Ú	Exceptionr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   Ú<module>   s*   
ÿ