ebook2audiobook: Periods don't pause anymore

This is just a rudimentary guide, don’t be too intimidated, You don’t have to follow this to the tee BEFORE TO OPEN AN ISSUE, MAKE SURE THAT IT HASN’T ALREADY BEEN SOLVED OR REPORTED. 😃 Check it with the issue search field

Script Mode

  • Native

Script Version v25.7.3

Process Mode

  • Gradio

Operating System:

  • Windows

Command Line used to start ebook2audiobook

  • “.\ebook2audiobook.cmd”

Describe the bug Periods (or likely all punctuation) don’t pause anymore when the narrator is reading. It all just sounds like run-on sentences.

Terminal log PS C:\Users\randy.britsch\ebook2audiobook> .\ebook2audiobook.cmd v25.7.3 native mode C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\site-packages\jieba_compat.py:18: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources IPs available for connection: [‘192.168.1.62’, ‘169.254.105.239’, ‘169.254.143.235’, ‘169.254.232.77’, ‘169.254.247.248’, ‘169.254.102.71’, ‘169.254.175.28’, ‘172.24.240.1’, ‘172.20.96.1’, ‘127.0.0.1’, ‘::1’] Note: 0.0.0.0 is not the IP to connect. Instead use an IP above to connect.

  • Running on local URL: http://0.0.0.0:7860
  • To create a public link, set share=True in launch(). Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File “C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\asyncio\events.py”, line 88, in _run self._context.run(self._callback, *self._args) File “C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\asyncio\proactor_events.py”, line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host Processing eBook file: test.txt Using CPU - VRAM under 4GB - Running command: C:\Program Files\Calibre2\ebook-convert.EXE C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\test.txt C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574__test.epub Conversion options changed from defaults: epub_version: ‘3’ output_profile: ‘generic_eink’ verbose: 1 smarten_punctuation: True disable_font_rescaling: True input_encoding: ‘utf-8’ flow_size: 0 1% Converting input to HTML… InputFormatPlugin: TXT Input running on C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\test.txt Reading text from file… Using user specified input encoding of utf-8 Auto detected paragraph type as single Auto detected formatting as heuristic Running text through basic conversion… Language not specified Creator not specified Building file list… Found files… HTMLFile:0🅰️’C:\Users\randy.britsch\ebook2audiobook\tmp\calibre_uanfnvl1\d_34j3hc_plumber\index.html’ Normalizing filename cases Rewriting HTML links Parsing index.html … ********* Heuristic processing HTML ********* There are 0 blank lines. 0.0 percent blank minimum chapters required are: 1 found 0 pre-existing headings Total wordcount is: 162, Average words per section is: 162, Marked up 0 chapters Hard line breaks check returned False Median line length is 74, calculated with html format Fixing hyphenated content Looking for more split points based on punctuation, currently have 0 Formatting scene breaks Forcing index.html into XHTML namespace 34% Running transforms on e-book… Merging user specified metadata… Detecting structure… Auto generated TOC with 0 entries. Flattening CSS and remapping font sizes… Source base font size is 12.00000pt Removing fake margins… Found 3 items of level: p_1 Ignoring level p_1 Cleaning up manifest… Trimming unused files from manifest… Creating EPUB Output… 67% Running EPUB Output plugin Splitting markup on page breaks and flow limits, if any… Generating default cover This EPUB file has no Table of Contents. Creating a default TOC Upgrading to EPUB 3… EPUB output written to C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574__test.epub Output saved to C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574__test.epub

NOTE: The warning “Character xx not found in the vocabulary.” MEANS THE MODEL CANNOT INTERPRET THE CHARACTER AND WILL MAYBE GENERATE (AS WELL AS WRONG PUNCTUATION POSITION) AN HALLUCINATION TO IMPROVE THIS MODEL, IT NEEDS TO ADD THIS CHARACTER INTO A NEW TRAINING MODEL. YOU CAN IMPROVE IT OR ASK TO A TRAINING MODEL EXPERT.


Downloading https://raw.githubusercontent.com/stanfordnlp/stanza-resources/master/resources_1.1.0.json: 122kB [00:00, 118MB/s] 2025-07-04 11:37:06 INFO: Downloading default packages for language: en (English)… 2025-07-04 11:37:06 INFO: File exists: C:\Users\randy.britsch\ebook2audiobook\models\stanza\en\default.zip. 2025-07-04 11:37:09 INFO: Finished downloading models and saved to C:\Users\randy.britsch\ebook2audiobook\models\stanza. 2025-07-04 11:37:09 INFO: Loading these models for language: en (English):

| Processor | Package |

| tokenize | ewt | | ner | ontonotes |

2025-07-04 11:37:09 INFO: Use device: cpu 2025-07-04 11:37:09 INFO: Loading: tokenize C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\site-packages\stanza\models\tokenize\trainer.py:85: UserWarning: Environment variable TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD detected, since theweights_only argument was not explicitly passed to torch.load, forcing weights_only=False. checkpoint = torch.load(filename, lambda storage, loc: storage) 2025-07-04 11:37:13 INFO: Loading: ner C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\site-packages\stanza\models\ner\trainer.py:116: UserWarning: Environment variable TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD detected, since theweights_only argument was not explicitly passed to torch.load, forcing weights_only=False. checkpoint = torch.load(filename, lambda storage, loc: storage) C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\site-packages\stanza\models\common\char_model.py:130: UserWarning: Environment variable TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD detected, since theweights_only argument was not explicitly passed to torch.load, forcing weights_only=False. state = torch.load(filename, lambda storage, loc: storage) 2025-07-04 11:37:13 INFO: Done loading processors! C:\Users\randy.britsch\ebook2audiobook\lib\classes\tts_engines\coqui.py:61: UserWarning: Environment variable TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD detected, since theweights_only argument was not explicitly passed to torch.load, forcing weights_only=False. xtts_builtin_speakers_list = torch.load(self.speakers_path) Loading TTS xtts model, it takes a while, please be patient… xtts Loaded! conversion 0.00%: 0/7 Block 1 containing 7 sentences… Computing speaker latents… Converting 0.00%: : 0/7 Sentence: The central idea to this book is relatively simple love as Christ loves - Converting 14.29%: : 1/7 Sentence: Christ’s life is the purest demonstration of love He asks us to emulate Him as we strive to live the two great commandments - Converting 28.57%: : 2/7 Sentence: to love God and to love our neighbor He does not withdraw His love as punishment , nor reserve it for the righteous - Converting 42.86%: : 3/7 Sentence: He showed His love by healing , teaching , mourning , forgiving , and ultimately sacrificing everything for all of us even those who reject Him - Converting 57.14%: : 4/7 Sentence: Christ invites us to follow Him by embodying this same selfless love in our own lives Just as He challenged Peter to show his love by feeding His sheep , Christ asks us to watch over each other - Converting 71.43%: : 5/7 Sentence: Just as He wept with Mary and Martha , 4 Christ asks us to mourn with those who mourn And just as He atoned for the sins of the world - Converting 85.71%: : 6/7 Sentence: regardless of who would accept Him Christ calls us to serve and love without withholding , even when others seem undeserving - Converting 85.71%: : 7/7 End of Block 1 C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\site-packages\jieba_compat.py:18: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources Input #0, concat, from ‘C:\Users\randy.britsch\ebook2audiobook\tmp\tmpck_v6y3c\chunk_0000.txt’: Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: flac, 24000 Hz, mono, s16 Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> flac (native)) Press [q] to stop, [?] for help Output #0, flac, to ‘C:\Users\randy.britsch\ebook2audiobook\tmp\tmpck_v6y3c\chunk_0000.flac’: Metadata: encoder : Lavf61.9.100 Stream #0:0: Audio: flac, 24000 Hz, mono, s16, 128 kb/s Metadata: encoder : Lavc61.26.100 flac [out#0/flac @ 000002402f8c3100] video:0KiB audio:1732KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.467255% size= 1740KiB time=00:01:03.89 bitrate= 223.1kbits/s speed=1.26e+03x Input #0, concat, from ‘C:\Users\randy.britsch\ebook2audiobook\tmp\tmpck_v6y3c\sentences_final.txt’: Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: flac, 24000 Hz, mono, s16 Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> flac (native)) Press [q] to stop, [?] for help Output #0, flac, to ‘C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\chapters\chapter_1.flac’: Metadata: encoder : Lavf61.9.100 Stream #0:0: Audio: flac, 24000 Hz, mono, s16, 128 kb/s Metadata: encoder : Lavc61.26.100 flac [out#0/flac @ 00000250f71b2dc0] video:0KiB audio:1732KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.467255% size= 1740KiB time=00:01:03.89 bitrate= 223.1kbits/s speed=2.47e+03x ********* Combined block audio file saved to C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\chapters\chapter_1.flac Combining block 1 to audio, sentence 0 to 6 Converting 85.71%: : 7/7 C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\site-packages\jieba_compat.py:18: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources Input #0, concat, from ‘C:\Users\randy.britsch\ebook2audiobook\tmp\tmp83l0ioik\chunk_0000.txt’: Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: flac, 24000 Hz, mono, s16 Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> flac (native)) Press [q] to stop, [?] for help Output #0, flac, to ‘C:\Users\randy.britsch\ebook2audiobook\tmp\tmp83l0ioik\chunk_0000.flac’: Metadata: encoder : Lavf61.9.100 Stream #0:0: Audio: flac, 24000 Hz, mono, s16, 128 kb/s Metadata: encoder : Lavc61.26.100 flac [out#0/flac @ 000001c08f2b2bc0] video:0KiB audio:1732KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.467255% size= 1740KiB time=00:01:03.89 bitrate= 223.1kbits/s speed=2.38e+03x Input #0, concat, from ‘C:\Users\randy.britsch\ebook2audiobook\tmp\tmp83l0ioik\chapters_final.txt’: Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: flac, 24000 Hz, mono, s16 Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> flac (native)) Press [q] to stop, [?] for help Output #0, flac, to ‘C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\test.flac’: Metadata: encoder : Lavf61.9.100 Stream #0:0: Audio: flac, 24000 Hz, mono, s16, 128 kb/s Metadata: encoder : Lavc61.26.100 flac [out#0/flac @ 00000233806743c0] video:0KiB audio:1732KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.467255% size= 1740KiB time=00:01:03.89 bitrate= 223.1kbits/s speed=2.12e+03x ********* total audio blocks saved to C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\test.flac Input #0, flac, from ‘C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\test.flac’: Metadata: encoder : Lavf61.9.100 Duration: 00:01:03.90, start: 0.000000, bitrate: 223 kb/s Stream #0:0: Audio: flac, 24000 Hz, mono, s16 Input #1, ffmetadata, from ‘C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\metadata.txt’: Metadata: title : test year : 2025 Duration: 00:01:03.90, start: 0.000000, bitrate: 0 kb/s Chapters: Chapter #1:0: start 0.000000, end 63.895000 Metadata: title : The central idea to this book is relatively simple love as Christ loves - Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help Output #0, mp3, to ‘C:\Users\randy.britsch\ebook2audiobook\audiobooks\gui\host\web-191b9914-7ed1-487d-be36-18f130073b91\test.mp3’: Metadata: TIT2 : test TLAN : eng year : 2025 TSSE : Lavf61.9.100 Chapters: Chapter #0:0: start 0.000000, end 63.895000 Metadata: TIT2 : The central idea to this book is relatively simple love as Christ loves - Stream #0:0: Audio: mp3, 44100 Hz, mono, fltp, 192 kb/s Metadata: encoder : Lavc61.26.100 libmp3lame [out#0/mp3 @ 000002ac50b62fc0] video:0KiB audio:1498KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.055928% size= 1499KiB time=00:01:03.90 bitrate= 192.2kbits/s speed=87.7x Adding cover C:\Users\randy.britsch\ebook2audiobook\tmp\ebook-191b9914-7ed1-487d-be36-18f130073b91\9b4594a04298dc2af4c8bb6726eaa574\test.jpg into the final audiobook file…

*********** Session: 191b9914-7ed1-487d-be36-18f130073b91 ************** Store it in case of interruption, crash, reuse of custom model or custom voice, you can resume the conversion with --session option Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File “C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\asyncio\events.py”, line 88, in _run self._context.run(self._callback, *self._args) File “C:\Users\randy.britsch\ebook2audiobook\python_env\Lib\asyncio\proactor_events.py”, line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18

Most upvoted comments

@ROBERT-MCDOWELL I really struggled consistently reproducing it. I’ll look at the v25.7.7. Thank you!

fixed in last git and v25.7.7. reopen it if it persists.