Link 0daycloud/spero-1 GitHub repo and add Python 3.10 compatibility in wheel
Browse filesFiles changed (11)
- README.md+5-1
- spero_tts-1.0.0-py3-none-any.whl+2-2
- spero_tts/src/spero_tts/judges/asr.py+5-2
- spero_tts/src/spero_tts/judges/defects.py+9-1
- spero_tts/src/spero_tts/judges/pitch.py+1-1
- spero_tts/src/spero_tts/judges/prosody.py+1-1
- spero_tts/src/spero_tts/renderer/engine.py+8-4
- spero_tts/src/spero_tts/renderer/scoring.py-1
- spero_tts/src/spero_tts/renderer/search.py+1
- spero_tts/src/spero_tts/renderer/text.py+2-2
- spero_tts/src/spero_tts/text/normalise/frozen.py+7-2
24 unmodified lines252627282930101 unmodified lines13213313413513613713813914057 unmodified lines19819920020120220324 unmodified lines</p><p align="center"><a href="https://spero.audio">Playground & API</a> | <a href="#1-listen">Audio Samples</a> | <a href="#2-getting-started">Quickstart</a> | 101 unmodified lines## 2. Getting StartedInstall the standalone Apache-2.0 wheel directly from this repository (Python 3.10+, CUDA GPU recommended):```bashpip install https://huggingface.co/cloud0day3/spero-1/resolve/main/spero_tts-1.0.0-py3-none-any.whl```57 unmodified lines**Hardware:**- `quality="best"` (default, 6-stream Triton + `D-sel` Whisper `large-v3` + `wav2vec2`): **24 GB+ VRAM** (1x RTX 4090 / L40S / A100 / RTX PRO 6000)- `quality="fast"` (single-take Triton decode, no ASR judges): **8–12 GB VRAM**---24 unmodified lines25262728293031101 unmodified lines13313413513613713813914014114214357 unmodified lines20120220320420520620724 unmodified lines</p><p align="center"><a href="https://github.com/0daycloud/spero-1">GitHub</a> | <a href="https://spero.audio">Playground & API</a> | <a href="#1-listen">Audio Samples</a> | <a href="#2-getting-started">Quickstart</a> | 101 unmodified lines## 2. Getting StartedInstall the standalone Apache-2.0 package from [GitHub (`0daycloud/spero-1`)](https://github.com/0daycloud/spero-1) or the pre-built wheel in this repository (Python 3.10+, CUDA GPU recommended):```bashpip install git+https://github.com/0daycloud/spero-1.git# or install the pre-built wheel directly from Hugging Face:pip install https://huggingface.co/cloud0day3/spero-1/resolve/main/spero_tts-1.0.0-py3-none-any.whl```57 unmodified lines**Hardware:**- `quality="best"` (default, 6-stream Triton + `D-sel` Whisper `large-v3` + `wav2vec2`): **24 GB+ VRAM** (1x RTX 4090 / L40S / A100 / RTX PRO 6000)- `quality="fast"` (single-take Triton decode, no ASR judges): **8–12 GB VRAM**- **Local OpenAI-compatible server & examples:** see [`examples/openai_server.py`](https://github.com/0daycloud/spero-1/blob/main/examples/openai_server.py), [`examples/stream_demo.py`](https://github.com/0daycloud/spero-1/blob/main/examples/stream_demo.py), and CI on [GitHub (`0daycloud/spero-1`)](https://github.com/0daycloud/spero-1).---
123version https://git-lfs.github.com/spec/v1oid sha256:61abfe41f0b8e30ab844987e9418c1b9c956ec580e1e1ab32ad221aae7c85eeesize 674503123version https://git-lfs.github.com/spec/v1oid sha256:08aab4100fa730c57f4b3c876adf833f729111940e9378b69383a0ce33b8fd98size 674653
68 unmodified lines69707172737475141 unmodified lines21721821922022122222368 unmodified linesfrom dataclasses import dataclassfrom itertools import pairwisefrom pathlib import Pathfrom typing import Any, Literal, Protocolimport numpy as npimport numpy.typing as npt141 unmodified linesdef to_json(self) -> dict[str, Any]: ...class _JsonlCache[T: _Keyed]:"""Append-only JSONL of items with a `key`. Safe to share between threads of one process."""def __init__(self, path: Path, parse: Callable[[dict[str, Any]], T]) -> None:68 unmodified lines69707172737475141 unmodified lines21721821922022122222322422522668 unmodified linesfrom dataclasses import dataclassfrom itertools import pairwisefrom pathlib import Pathfrom typing import Any, Generic, Literal, Protocol, TypeVarimport numpy as npimport numpy.typing as npt141 unmodified linesdef to_json(self) -> dict[str, Any]: ...T = TypeVar("T", bound="_Keyed")class _JsonlCache(Generic[T]):"""Append-only JSONL of items with a `key`. Safe to share between threads of one process."""def __init__(self, path: Path, parse: Callable[[dict[str, Any]], T]) -> None:
46 unmodified lines47484950515253545556575846 unmodified linesfrom collections.abc import Iterable, Sequencefrom concurrent.futures import ProcessPoolExecutorfrom dataclasses import dataclassfrom enum import StrEnumfrom functools import lru_cachefrom itertools import pairwisefrom pathlib import Pathfrom typing import Any, Literalimport numpy as npimport numpy.typing as nptimport orjson46 unmodified lines474849505152535455565758596061626364656646 unmodified linesfrom collections.abc import Iterable, Sequencefrom concurrent.futures import ProcessPoolExecutorfrom dataclasses import dataclassfrom functools import lru_cachefrom itertools import pairwisefrom pathlib import Pathfrom typing import Any, Literaltry:from enum import StrEnumexcept ImportError: # Python 3.10from enum import Enumclass StrEnum(str, Enum): # type: ignore[no-redef]def __str__(self) -> str:return str(self.value)import numpy as npimport numpy.typing as nptimport orjson
25 unmodified lines2627282930313225 unmodified linesimport numpy as npimport numpy.typing as nptfrom spero_tts.audio.io import Audio, as_monoFloatArray = npt.NDArray[np.float64]Backend = Literal["pyworld", "pyin"]25 unmodified lines2627282930313225 unmodified linesimport numpy as npimport numpy.typing as nptfrom spero_tts.audio.io import as_monoFloatArray = npt.NDArray[np.float64]Backend = Literal["pyworld", "pyin"]
38 unmodified lines394041424344454638 unmodified linesfrom spero_tts.audio.io import as_mono, resamplefrom spero_tts.judges.asr import ASR_SAMPLE_RATE, ReferenceAlignmentfrom spero_tts.judges.pitch import FRAME_PERIOD_S, f0_trackfrom spero_tts.judges.level import measure as measure_level__all__ = ["ProsodyReport",38 unmodified lines394041424344454638 unmodified linesfrom spero_tts.audio.io import as_mono, resamplefrom spero_tts.judges.asr import ASR_SAMPLE_RATE, ReferenceAlignmentfrom spero_tts.judges.level import measure as measure_levelfrom spero_tts.judges.pitch import FRAME_PERIOD_S, f0_track__all__ = ["ProsodyReport",
52 unmodified lines535455565758596061626364656667686952 unmodified linesfrom spero_tts.judges.defects import DefectReportfrom spero_tts.renderer.backend import AHEAD_PRIORITY, REPAIR_PRIORITY, Backend, RenderBatchIdentityGuard = Anydef counted(_reports: Any) -> dict[str, int]:return {}def only_identity(_report: Any) -> bool:return Falsefrom spero_tts.renderer.join import RIDE_BEFORE, Joiner, JoinSettings, chunk_decision, kept_of, ride_takefrom spero_tts.renderer.scoring import W0, W0_OFF_REASON, W0_ON_NOTE, DefectScorerfrom spero_tts.renderer.search import Take, badness, choose, least_bad, unbeatablefrom spero_tts.renderer.text import SERVED_MAX_CHARS, Boundary, Chunk, chunk_text, paragraphs, split_at_clauseAudio = npt.NDArray[np.float32]ChunkCallback = Callable[[int, Audio, int], None]52 unmodified lines53545556575859606162636465666768697071727352 unmodified linesfrom spero_tts.judges.defects import DefectReportfrom spero_tts.renderer.backend import AHEAD_PRIORITY, REPAIR_PRIORITY, Backend, RenderBatchfrom spero_tts.renderer.join import RIDE_BEFORE, Joiner, JoinSettings, chunk_decision, kept_of, ride_takefrom spero_tts.renderer.scoring import W0, W0_OFF_REASON, W0_ON_NOTE, DefectScorerfrom spero_tts.renderer.search import Take, badness, choose, least_bad, unbeatablefrom spero_tts.renderer.text import SERVED_MAX_CHARS, Boundary, Chunk, chunk_text, paragraphs, split_at_clauseIdentityGuard = Anydef counted(_reports: Any) -> dict[str, int]:return {}def only_identity(_report: Any) -> bool:return FalseAudio = npt.NDArray[np.float32]ChunkCallback = Callable[[int, Audio, int], None]
18 unmodified lines1920212223242518 unmodified linesfrom __future__ import annotationsimport mathimport threadingfrom collections.abc import Sequencefrom concurrent.futures import ThreadPoolExecutor18 unmodified lines19202122232418 unmodified linesfrom __future__ import annotationsimport threadingfrom collections.abc import Sequencefrom concurrent.futures import ThreadPoolExecutor
23 unmodified lines24252627282923 unmodified linesimport numpy.typing as nptfrom spero_tts.judges.defects import DefectReport, LevelIDENTITY = "identity"23 unmodified lines2425262728293023 unmodified linesimport numpy.typing as nptfrom spero_tts.judges.defects import DefectReport, LevelIDENTITY = "identity"
33 unmodified lines343536373839404133 unmodified linesSERVED_MAX_CHARS = 600"""The served path's chunk size (decision #87): a text of up to 600 characters renders whole, so a passage carries noseam. Rendered in sentence chunks of 200, 80 `dev-long` passages had voiced-level steps of 16 dB or more at the joinsin 21 (a sentence's quiet end against the next one's fresh start; reference TTS and Gemini 3.8 Flash show none on the sameprompts); rendered whole, none, with 0 hard defects against 22 and 24 flagged clips against 71."""SERVED_SPOKEN_BUDGET = 750"""Expanded character budget for normalised text so written-to-spoken character expansion (e.g. numbers and dates) doesnot force needless chunk splits on passages whose raw length fits `SERVED_MAX_CHARS`."""33 unmodified lines343536373839404133 unmodified linesSERVED_MAX_CHARS = 600"""The served path's chunk size (decision #87): a text of up to 600 characters renders whole, so a passage carries noseam. Rendered in sentence chunks of 200, 80 `dev-long` passages had voiced-level steps of 16 dB or more at the joinsin 21 (a sentence's quiet end against the next one's fresh start; reference TTS and baseline systems show noneon the same prompts); rendered whole, none, with 0 hard defects against 22 and 24 flagged clips against 71."""SERVED_SPOKEN_BUDGET = 750"""Expanded character budget for normalised text so written-to-spoken character expansion (e.g. numbers and dates) doesnot force needless chunk splits on passages whose raw length fits `SERVED_MAX_CHARS`."""
29 unmodified lines3031323334353637383929 unmodified linesimport refrom collections.abc import Callable, Iteratorfrom dataclasses import dataclassfrom re import _constants as _C # type: ignore[attr-defined]from re import _parser # type: ignore[attr-defined]from typing import Any__all__ = ["PENDING","PENDING_END",29 unmodified lines30313233343536373839404142434429 unmodified linesimport refrom collections.abc import Callable, Iteratorfrom dataclasses import dataclassfrom typing import Anytry:from re import _constants as _C # type: ignore[attr-defined]from re import _parser # type: ignore[attr-defined]except ImportError: # Python 3.10import sre_constants as _C # type: ignore[no-redef]import sre_parse as _parser # type: ignore[no-redef]__all__ = ["PENDING","PENDING_END",
README.md+5-1
spero_tts-1.0.0-py3-none-any.whl+2-2
spero_tts/src/spero_tts/judges/asr.py+5-2
spero_tts/src/spero_tts/judges/defects.py+9-1
spero_tts/src/spero_tts/judges/pitch.py+1-1
spero_tts/src/spero_tts/judges/prosody.py+1-1
spero_tts/src/spero_tts/renderer/engine.py+8-4
spero_tts/src/spero_tts/renderer/scoring.py-1
spero_tts/src/spero_tts/renderer/search.py+1
spero_tts/src/spero_tts/renderer/text.py+2-2
spero_tts/src/spero_tts/text/normalise/frozen.py+7-2