mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
80c74e54cc
commit
41e03e0433
@ -501,8 +501,8 @@ def embed_tts(container, report_progress=None, callback_to_download_voices=None)
|
|||||||
snum = 0
|
snum = 0
|
||||||
size_of_audio_data = 0
|
size_of_audio_data = 0
|
||||||
mmap = {container.href_to_name(item.get('href'), container.opf_name):item for item in container.manifest_items}
|
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():
|
for name, pfd in name_map.items():
|
||||||
|
duration_map = {}
|
||||||
audio_map: dict[Sentence, tuple[bytes, float]] = {}
|
audio_map: dict[Sentence, tuple[bytes, float]] = {}
|
||||||
for (lang, voice), sentences in pfd.key_map.items():
|
for (lang, voice), sentences in pfd.key_map.items():
|
||||||
texts = tuple(s.text for s in sentences)
|
texts = tuple(s.text for s in sentences)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user