Spaces:
Runtime error
Runtime error
Download src/domain/exceptions.py from DroolingPanda/teachingAssistant: direct link, hf CLI and curl.
- Browser
- Download file 918 Bytes
-
https://huggingface.co/spaces/DroolingPanda/teachingAssistant/resolve/5009cb82e377478dde3375fd39284afffa107cb8/src/domain/exceptions.py
- Command line
-
hf download hf://spaces/DroolingPanda/teachingAssistant@5009cb82e377478dde3375fd39284afffa107cb8/src/domain/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/DroolingPanda/teachingAssistant/resolve/5009cb82e377478dde3375fd39284afffa107cb8/src/domain/exceptions.py
918 Bytes
| """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 |