mirror of
https://github.com/santinic/audiblez.git
synced 2025-08-21 06:23:44 +00:00
fix
Some checks failed
Git clone and run / linux-git-clone-and-run (push) Has been cancelled
Git clone and run / windows-git-clone-and-run (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-11 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-12 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-10 (push) Has been cancelled
Installing via pip and running / windows-git-clone-and-run (push) Has been cancelled
Some checks failed
Git clone and run / linux-git-clone-and-run (push) Has been cancelled
Git clone and run / windows-git-clone-and-run (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-11 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-12 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-10 (push) Has been cancelled
Installing via pip and running / windows-git-clone-and-run (push) Has been cancelled
This commit is contained in:
parent
5c40066aff
commit
97b46b4afa
1 changed files with 2 additions and 2 deletions
|
@ -99,6 +99,8 @@ def main(file_path, voice, pick_manually, speed, output_folder='.',
|
|||
print('Total words:', len(' '.join(texts).split()))
|
||||
eta = strfdelta((stats.total_chars - stats.processed_chars) / stats.chars_per_sec)
|
||||
print(f'Estimated time remaining (assuming {stats.chars_per_sec} chars/sec): {eta}')
|
||||
set_espeak_library()
|
||||
pipeline = KPipeline(lang_code=voice[0]) # a for american or b for british etc.
|
||||
|
||||
chapter_wav_files = []
|
||||
for i, chapter in enumerate(selected_chapters, start=1):
|
||||
|
@ -121,8 +123,6 @@ def main(file_path, voice, pick_manually, speed, output_folder='.',
|
|||
# add intro text
|
||||
text = f'{title} – {creator}.\n\n' + text
|
||||
start_time = time.time()
|
||||
set_espeak_library()
|
||||
pipeline = KPipeline(lang_code=voice[0]) # a for american or b for british etc.
|
||||
if post_event: post_event('CORE_CHAPTER_STARTED', chapter_index=chapter.chapter_index)
|
||||
audio_segments = gen_audio_segments(
|
||||
pipeline, text, voice, speed, stats, post_event=post_event, max_sentences=max_sentences)
|
||||
|
|
Loading…
Add table
Reference in a new issue