175 Commits
Author SHA1 Message Date
foco 7a36057028 fix: allocate fix_duration across chunks to avoid N× duration blow-up
When gen_text is split into multiple chunks by chunk_text(), each chunk
was generated with the full-sentence fix_duration, producing ~N×target
seconds. Allocate fix_duration across chunks by UTF-8 byte weight
(compensating for cross-fade overlap) so each chunk only generates its
proportional share. fix_duration=None and single-chunk paths unchanged.
2026-07-23 10:45:25 +08:00
SWivid 1a63dda3df Several fixes for utils_infer.py; separate streaming and non-streaming func and add back parallelism 2026-03-24 20:03:01 +08:00
zhuxiaoxu 543fe4facf remove ineffective ThreadPoolExecutor in infer_batch_process
process_batch is a generator function, so submitting it to a thread pool
only creates a generator object without running any inference code.
all actual work happens sequentially in the main thread when next() is called.
also removes the always-true 'if result:' guard on a generator object.
2026-03-24 16:10:46 +08:00
Karim OudaandGitHub 623c96c294 Add Arabic model details to SHARED.md (#1279)
Added Arabic section with details for F5-TTS Small model.
2026-03-16 16:13:45 +08:00
Raivis DejusandGitHub bc1df7a4fa Adding support for hf:// links on CLI (#1252) 2026-01-21 16:38:30 +08:00
Raivis DejusandGitHub eca786ee0c Merge pull request #1250 from raivisdejus/add-latvian-community-model
Adding Latvian model to shared community models list
2026-01-17 19:29:23 +08:00
acadarmeria dff57ebd2a Fix speech editing boundary artifacts by working in mel domain
Previously, speech_edit.py worked in wav domain (inserting zeros into the waveform before computing mel spectrogram), which caused boundary artifacts when mel spectrogram windows straddled zeros and real audio.

This commit refactors the approach to work in mel domain:
- Compute mel spectrogram on the clean original audio first
- Insert zero frames in mel domain instead of zero samples in wav domain
- Use frame-level granularity throughout for consistency

Benefits:
- Eliminates boundary artifacts
- More consistent behavior regardless of small float variations in input times
- Cleaner edit boundaries

Changes to speech_edit.py (lines 148-220):
- Convert audio to mel using model.mel_spec() before editing
- Build mel_cond by concatenating original mel frames + zero frames
- Calculate all time-based values at frame level first, then convert to samples
- Pass mel_cond directly to model.sample() instead of raw audio
2025-12-26 08:49:57 +00:00
SWivid 46ccc575c5 v1.1.15 workaround for gr.Accordion default open=False bug (#1239) 2025-12-21 15:06:44 +08:00
SWivid 39617fcf7a v1.1.12 bump gradio from 5.0 to 6.0, several fixes to ensure compatibility with new gradio version 2025-12-20 18:44:43 +08:00
Yushen Chen 5b82f97c26 fix #1239, use gradio>=6.0; add more clear instruction for ffmpeg installation (#1234) 2025-12-20 16:08:13 +08:00
SWivid 186799d6dc remove numpy<=1.26.4 for python_version>=3.11 #1162; update links 2025-09-13 13:40:55 +08:00
SWivid 52c84776e5 fine-grained speed control for infer-cli. #1112 2025-07-02 23:41:55 +08:00
ebbd7bd91f Update WAV File Naming and Dependencies 📝🔊 (#1091)
* Update infer_cli.py

* Update pyproject.toml

* formalized

---------

Co-authored-by: SWivid <swivid@qq.com>
2025-06-24 23:23:00 +08:00
SWivid 35f130ee85 minor update for infer-gradio 2025-06-04 06:11:49 +08:00
SWivid e6469f705f update shared.md 2025-06-03 22:09:13 +08:00
SWivid 31cd818095 formatting 2025-06-03 21:23:47 +08:00
Hendric VossandGitHub 8fb55f107e Update SHARED.md 2025-06-03 14:08:30 +02:00
Hendric VossandGitHub ccb380b752 Added German Model 2025-06-03 14:08:03 +02:00
SWivid ecd1c3949a Add py312 check for tempfile delete_on_close keyword 2025-05-22 23:10:29 +08:00
SWivid fb26b6d93e Fix #1046 tempfile related bug 2025-05-22 17:40:14 +08:00
SWivid f7f266cdd9 preprocess only once. Fix #1043 2025-05-21 02:26:05 +08:00
SWivid 3e2a07da1d Update README.md & minor fixes 2025-05-11 19:40:37 +08:00
SWivid dad398c0c1 Bug Fix #1015
Ensure custom config hashable in
2025-05-05 03:55:05 +08:00
SWivid 3d969bf78d minor fix for backward compatibility to gradio multistyle feature 2025-05-05 02:07:19 +08:00
SWivid 6d1a1e886a formatting, sorting 2025-05-05 01:41:28 +08:00
SWivid b4efcd836a Add cache feature. Retrieve previous generated segments, default cache size 100 2025-05-05 01:37:22 +08:00
SWivid 818b868fab Update infer_gradio.py. Enable seed selecting for multistyle generation 2025-05-05 00:58:24 +08:00
SWivid e6fee5e9ba Update infer_gradio.py
Use gr.Column to ensure backward compatibility

Remove height attr from gr.File to avoid possible malposition across versions
2025-05-04 09:25:41 +08:00
mrfakenameandGitHub 2999f642ce Row -> Column 2025-05-03 17:59:07 -07:00
mrfakenameandGitHub 03cff73343 remove equal_height requirement
Seems to break Gradio demo.
2025-05-03 17:57:41 -07:00
mrfakenameandGitHub 63c513840d fix gradio app 2025-05-03 17:56:21 -07:00
SWivid 3e6b6c0c0c update infer_gradio.py. rename for consistency 2025-05-04 08:04:00 +08:00
SWivid f00ac4d06b fix infer-gradio chat feature etc. 2025-05-04 08:00:16 +08:00
petermgandGitHub 0cae51d646 Update infer_gradio.py
Modified formatting
2025-05-03 12:07:58 -07:00
petermgandGitHub 95976041f2 Update infer_gradio.py
Added "randomize seed" checkmark and option to specify seed showing last seed used and can manually enter the desired seed number.
2025-05-03 11:38:50 -07:00
petermgandGitHub ba1bf74215 Update infer_gradio.py
Modified it so that when you upload a text file, the text of that file will show in the text input window. Also made the text file upload window show up BELOW the text input display window.
2025-05-03 11:22:07 -07:00
petermgandGitHub 536c29ac57 Update infer_gradio.py
Modified the UI to accept txt files as inputs
2025-05-02 12:45:39 -07:00
SWivid 5f80fec160 fix speech_edit.py 2025-04-26 02:10:39 +08:00
tbxark b2284b6cff chore: Update the model checkpoint path to use the cache path. 2025-04-14 11:28:48 +08:00
SWivid 784e3862b4 add microsoft/Phi-4-mini-instruct to chat model list #937 2025-03-31 21:14:39 +08:00
SWivid 6f6968b034 formatting 2025-03-31 19:45:38 +08:00
maximechen b7c41af9cd reorganize and distinguish behavior from local and space 2025-03-31 19:11:52 +08:00
huanglizhuo eaa7fd8a01 Reapply pre-commit hooks 2025-03-29 20:58:42 +09:00
lizhuoandGitHub 29d3326bed update: JA latest HF path in SHARED.md #928
* fix: update japanese latest hf path
* update the huggingface url
2025-03-28 22:36:17 +08:00
huanglizhuo 8469025b1c fix the shared.md file path 2025-03-28 17:52:08 +09:00
SWivid 7236536f9a update utils_infer.py 2025-03-25 17:24:20 +08:00
SWivid 1d0cf2b8ba add device option for infer-cli, patch-1 2025-03-22 17:35:16 +08:00
SWivid 1d82b7928e add device option for infer-cli 2025-03-22 17:30:23 +08:00
SWivid 4ae5347282 pre-commit update and formatting 2025-03-21 23:01:00 +08:00
SWivid 526b09eebd add no_zero_init v1 variant path to SHARED.md 2025-03-21 14:37:14 +08:00