Text-to-Speech
Safetensors
English
steertts
steer-tts
tts
speech-synthesis
english
controllable-tts
steerable-tts
prosody-control
expressive-tts
style-control
inline-markup
word-emphasis
zero-shot-voice-cloning
voice-cloning
interpretable
non-autoregressive
fastpitch
mamba
mamba-3
state-space-model
hybrid-attention
flow-matching
vocos
small-model
quantized
int8
on-device
streaming
non-commercial
Eval Results (legacy)
File size: 664 Bytes
5bf57f8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import os
from pathlib import Path
import pytest
MODEL = os.environ.get("STEERTTS_MODEL") or str(Path(__file__).resolve().parents[1])
DEV = os.environ.get("STEERTTS_TEST_DEVICE", "cpu")
@pytest.fixture(scope="session")
def model_dir():
if not (Path(MODEL) / "config.json").exists():
pytest.skip(f"no model directory at {MODEL} (set STEERTTS_MODEL)")
return MODEL
@pytest.fixture(scope="session")
def tts(model_dir):
from steertts import SteerTTS
return SteerTTS(model_dir, device=DEV, flow=False)
@pytest.fixture(scope="session")
def tts_flow(model_dir):
from steertts import SteerTTS
return SteerTTS(model_dir, device=DEV)
|