mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
33 lines
942 B
Python
33 lines
942 B
Python
# represents a queued item - book, chapters, voice, etc.
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class QueuedItem:
|
|
file_name: str
|
|
lang_code: str
|
|
speed: float
|
|
voice: str
|
|
save_option: str
|
|
output_folder: str
|
|
subtitle_mode: str
|
|
output_format: str
|
|
total_char_count: int
|
|
replace_single_newlines: bool = True
|
|
use_silent_gaps: bool = False
|
|
subtitle_speed_method: str = "tts"
|
|
save_base_path: str = None
|
|
save_chapters_separately: bool = None
|
|
merge_chapters_at_end: bool = None
|
|
# Word Substitution fields
|
|
word_substitutions_enabled: bool = False
|
|
word_substitutions_list: str = ""
|
|
case_sensitive_substitutions: bool = False
|
|
replace_all_caps: bool = False
|
|
replace_numerals: bool = False
|
|
fix_nonstandard_punctuation: bool = False
|
|
# TTS Provider fields
|
|
tts_provider: str = "kokoro"
|
|
supertonic_language: str = "en"
|
|
supertonic_total_steps: int = 8
|