Skip to content

Commit

Permalink
Remove duplicative example.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnewman committed Oct 27, 2024
1 parent 2d66562 commit 9776abb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 274 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You can convert an audio file to the correct format with ffmpeg like this:
ffmpeg -i /path/to/audio.wav -ac 1 -ar 24000 -sample_fmt s16 -t 10 /path/to/output_audio.wav
```

See [examples/generate.py](./examples) for more options.
See [here](./f5_tts_mlx) for more options to customize generation.


Expand Down
86 changes: 0 additions & 86 deletions examples/README.md

This file was deleted.

183 changes: 0 additions & 183 deletions examples/generate.py

This file was deleted.

4 changes: 2 additions & 2 deletions f5_tts_mlx/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def generate(
text = convert_char_to_pinyin([ref_audio_text + " " + generation_text])

start_date = datetime.datetime.now()

if duration is not None:
duration = int(duration * FRAMES_PER_SEC)

Expand All @@ -76,7 +76,7 @@ def generate(
speed=speed,
cfg_strength=cfg_strength,
sway_sampling_coef=sway_sampling_coef,
seed=seed
seed=seed,
)

# trim the reference audio
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "f5-tts-mlx"
version = "0.1.4"
version = "0.1.5"
authors = [{name = "Lucas Newman", email = "[email protected]"}]
license = {text = "MIT"}
description = "F5-TTS - MLX"
Expand All @@ -32,7 +32,7 @@ dependencies = [
"einx",
"jieba",
"huggingface_hub",
"mlx",
"mlx>=0.18.1",
"numpy",
"pypinyin",
"setuptools",
Expand Down

0 comments on commit 9776abb

Please sign in to comment.