Spaces:
Build error
Build error
File size: 918 Bytes
5009cb8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
"""Domain-specific exceptions for the TTS application."""
class DomainException(Exception):
"""Base exception for domain-related errors."""
pass
class InvalidAudioFormatException(DomainException):
"""Raised when audio format is not supported."""
pass
class InvalidTextContentException(DomainException):
"""Raised when text content is invalid."""
pass
class TranslationFailedException(DomainException):
"""Raised when translation fails."""
pass
class SpeechRecognitionException(DomainException):
"""Raised when speech recognition fails."""
pass
class SpeechSynthesisException(DomainException):
"""Raised when TTS generation fails."""
pass
class InvalidVoiceSettingsException(DomainException):
"""Raised when voice settings are invalid."""
pass
class AudioProcessingException(DomainException):
"""Raised when audio processing fails."""
pass |