mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 11:40:57 +02:00
Shared token stub used by both WebUI and PyQt for languages without per-word token support.
14 lines
347 B
Python
14 lines
347 B
Python
"""Shared token stubs for TTS processing."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class FakeToken:
|
|
"""Minimal token stub for languages without per-word token support."""
|
|
|
|
def __init__(self, text: str, start: float, end: float):
|
|
self.text = text
|
|
self.start_ts = start
|
|
self.end_ts = end
|
|
self.whitespace = ""
|