BgTTS-44M-Engram-Loop

Пробвай модела в браузъра / Try the live demo

Български и английски синтез на реч с референтен глас. Това е последният 44М чекпойнт преди експериментите с дестилирана реч F7. Той завършва един проход върху проверени български записи и английска реч. Теглата са във FP32 SafeTensors и съдържат 44 181 218 параметъра.

Bulgarian and English text to speech with a reference voice. This release is the final 44M checkpoint before the F7 synthetic-speech experiments. It includes the text-to-speech weights and a CPU/CUDA inference script. Supply text and a recording of one speaker to generate a 44.1 kHz mono WAV.

Първи запис / Quick start

Изпълнете командите в Python среда с инсталиран Git. Запишете кратка и ясна реплика с един говорител като speaker.wav, или подайте пътя до своя запис. При първия синтез скриптът сваля и отделния MioCodec. / Run the commands in a Python environment with Git installed. Use a short, clear, single-speaker WAV as speaker.wav, or pass the path to your recording. The first synthesis also downloads the codec.

python -m pip install huggingface_hub
hf download beleata74/BgTTS-44M-Engram-Loop --local-dir bgtts44m
cd bgtts44m
python -m pip install -r requirements.txt
python synthesize.py --text "Дъждът спря точно когато Жана стигна до железния мост." --reference speaker.wav --output speech-bg.wav --device cpu --seed 43
python synthesize.py --text "The rain stopped just as Jane reached the bridge." --reference speaker.wav --output speech-en.wav --device cpu --seed 43

При CUDA версия на PyTorch използвайте --device cuda. За предвидимо произношение изпишете числа и съкращения с думи, например „четиридесет градуса“. Скриптът разделя по-дългите текстове на фрази. / With a CUDA build of PyTorch, use --device cuda. Spell out numbers and abbreviations for predictable pronunciation. The script splits longer input into phrases.

Как работи / Architecture

Текстовият модел предсказва дискретни аудиотокени от обикновен текст. MioCodec извлича характеристиките на гласа от референтния WAV и ги използва при декодирането. Затова можете да смените гласа за същия текст. Входът на текстовия модел допуска български без отбелязано ударение.

The character encoder has four layers and the autoregressive decoder has eight. Engram adds 6,004,704 parameters for context-gated whole-word, trigram and five-gram features. The third encoder layer runs twice with shared weights and learned gates. MioCodec converts the predicted content tokens, at 25 frames per second, and a 128-dimensional speaker embedding into audio. It is a separate dependency. MioCodec v2

Обучение и оценки / Training and evaluation

44М е обучен от нулата за три епохи върху български и английски. За публикуваната версия взехме теглата от епоха 3 (стъпка 30 129) и направихме още един проход с нов оптимизатор AdamW. Той включва 314 948 български реплики с проверено съответствие между текст и запис (598,24 часа) и 209 965 английски реплики от Hi-Fi TTS и LibriTTS-R. Обучаващите записи са с продължителност до 12 секунди.

The final pass used 524,913 utterances, with approximately 60% Bulgarian and 40% English by utterance count. It finished after 4,101 optimizer updates with an effective batch size of 128 and a peak learning rate of 0.00003. The table reports token-level cross-entropy on the same held-out recordings before and after this pass. Listening is needed to assess stress, naturalness and speaker similarity.

Контролен набор / Validation set Реплики / Utterances Преди / Before Тези тегла / This release
Български / Bulgarian 636 5.47031 5.45555
Английски / English 9,913 6.37116 6.36316

Произход на файловете / File provenance

Публикуваният model.safetensors съвпада тензор по тензор с обучаващия чекпойнт. / The released tensors were compared individually against the training checkpoint. SHA-256 of model.safetensors is 51fc4525a1798047d4aeae987d4d3b648b18e5ccf80296bd2f3948c5418e73dc.

The synthesis helper is adapted from the author's previous 40M release. Its upstream license is included in LICENSE-code. BgTTS-40M-Engram-Loop

Downloads last month
183
Safetensors
Model size
44.2M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using beleata74/BgTTS-44M-Engram-Loop 1