mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-16 21:05:20 +02:00
14 lines
415 B
Python
14 lines
415 B
Python
|
|
"""Failures raised by the TTS layer."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
|
||
|
|
class TextToSpeechError(RuntimeError):
|
||
|
|
"""A provider failed to synthesise a segment.
|
||
|
|
|
||
|
|
Raised for both configuration faults (an unusable voice reference) and
|
||
|
|
provider faults (the upstream call errored or returned no audio), so the
|
||
|
|
renderer can fail the segment without unwrapping provider-specific
|
||
|
|
exceptions.
|
||
|
|
"""
|