From 41e03e04330b7ca889901c16b11c959fbc055cd5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Oct 2024 15:39:23 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/tts.py b/src/calibre/ebooks/oeb/polish/tts.py index dbc339e37f..c171cdec7b 100644 --- a/src/calibre/ebooks/oeb/polish/tts.py +++ b/src/calibre/ebooks/oeb/polish/tts.py @@ -501,8 +501,8 @@ def embed_tts(container, report_progress=None, callback_to_download_voices=None) snum = 0 size_of_audio_data = 0 mmap = {container.href_to_name(item.get('href'), container.opf_name):item for item in container.manifest_items} - duration_map = {} for name, pfd in name_map.items(): + duration_map = {} audio_map: dict[Sentence, tuple[bytes, float]] = {} for (lang, voice), sentences in pfd.key_map.items(): texts = tuple(s.text for s in sentences)