Rise
The Vieneo Province
Loading...
Searching...
No Matches
erin Namespace Reference

Functions

 load_model ()
 condition_path (profile)
 setup ()
 synthesize (text, profile='Erin', seed=42, output=None, sample_rate=24000)
 gui (open_browser=True)

Variables

 ROOT = Path(__file__).resolve().parent
str MODEL = ROOT / 'models' / 'nano'
str MODEL_REVISION = '71ccd1d0081b430592cea481f4307e764e07bc64'
list MODEL_FILES
 PROFILES = json.loads((ROOT / 'profiles.json').read_text(encoding='utf-8'))
 _model = None
 _lock = threading.Lock()
 parser = argparse.ArgumentParser(description=__doc__)
 action
 choices
 default
 type
 int
 args = parser.parse_args()
 path
 info
 flush
 open_browser

Detailed Description

Local, reference-conditioned Erin text-to-speech using Chatterbox Nano.

Function Documentation

◆ condition_path()

condition_path ( profile)

Definition at line 45 of file erin.py.

Here is the caller graph for this function:

◆ gui()

gui ( open_browser = True)

Definition at line 108 of file erin.py.

Here is the call graph for this function:

◆ load_model()

load_model ( )

Definition at line 33 of file erin.py.

Here is the caller graph for this function:

◆ setup()

setup ( )

Definition at line 49 of file erin.py.

Here is the call graph for this function:

◆ synthesize()

synthesize ( text,
profile = 'Erin',
seed = 42,
output = None,
sample_rate = 24000 )

Definition at line 62 of file erin.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _lock

erin._lock = threading.Lock()
protected

Definition at line 30 of file erin.py.

◆ _model

erin._model = None
protected

Definition at line 29 of file erin.py.

◆ action

erin.action

Definition at line 139 of file erin.py.

◆ args

erin.args = parser.parse_args()

Definition at line 146 of file erin.py.

◆ choices

erin.choices

Definition at line 142 of file erin.py.

◆ default

erin.default

Definition at line 142 of file erin.py.

◆ flush

erin.flush

Definition at line 154 of file erin.py.

◆ info

erin.info

Definition at line 153 of file erin.py.

◆ int

erin.int

Definition at line 143 of file erin.py.

◆ MODEL

str erin.MODEL = ROOT / 'models' / 'nano'

Definition at line 11 of file erin.py.

◆ MODEL_FILES

list erin.MODEL_FILES
Initial value:
= ['added_tokens.json', 'merges.txt', 's3gen_meanflow.safetensors',
'special_tokens_map.json', 't3_nano_v1.safetensors',
'tokenizer_config.json', 've.safetensors', 'vocab.json']

Definition at line 13 of file erin.py.

◆ MODEL_REVISION

str erin.MODEL_REVISION = '71ccd1d0081b430592cea481f4307e764e07bc64'

Definition at line 12 of file erin.py.

◆ open_browser

erin.open_browser

Definition at line 156 of file erin.py.

◆ parser

erin.parser = argparse.ArgumentParser(description=__doc__)

Definition at line 138 of file erin.py.

◆ path

erin.path

Definition at line 153 of file erin.py.

◆ PROFILES

erin.PROFILES = json.loads((ROOT / 'profiles.json').read_text(encoding='utf-8'))

Definition at line 28 of file erin.py.

◆ ROOT

erin.ROOT = Path(__file__).resolve().parent

Definition at line 10 of file erin.py.

◆ type

erin.type

Definition at line 143 of file erin.py.