Hilfsprogramme¶
Referenz für Hilfsprogramme und interne Dienstprogramme.
Logging¶
text2speech.logging_utils.SensitiveDataFilter
¶
Bases: Filter
Redact sensitive data from logs.
Source code in text2speech/logging_utils.py
filter(record)
¶
Filter log records to redact sensitive information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
LogRecord
|
The log record to filter. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Always True, as it modifies the record in-place. |
Source code in text2speech/logging_utils.py
Ausnahmen¶
text2speech.exceptions.Text2SpeechError
¶
text2speech.exceptions.TTSEngineNotAvailable
¶
Bases: Text2SpeechError
Raised when no TTS engine is available.
text2speech.exceptions.AudioDeviceError
¶
Bases: Text2SpeechError
Raised when audio device configuration fails.
text2speech.exceptions.InvalidConfigurationError
¶
Bases: Text2SpeechError
Raised when configuration is invalid.
Konstanten¶
text2speech.constants
¶
Configuration constants for text2speech.