magnusjwatson2786 / srt-audio Goto Github PK
View Code? Open in Web Editor NEWSubtitle to Audio Converter using Pyttsx3
License: MIT License
Subtitle to Audio Converter using Pyttsx3
License: MIT License
There is no sound for full.wav when combine.
When I'm trying to synthesize a subtitle with accented words, I got this error.
~@MacBook-Pro SRT-Audio % python3 ./tts.py Traceback (most recent call last): File "~/Documents/Software/Git/SRT-Audio/./tts.py", line 12, in <module> parsesrt.parse(srtpath) File "~/Documents/Software/Git/SRT-Audio/parsesrt.py", line 20, in parse tsmp[int(part[0])]=part[1].decode("utf-8") ^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: b'\xef\xbb\xbf1'
Fails on Linux:
ERROR: Could not find a version that satisfies the requirement pywin32==301 (from versions: none)
ERROR: No matching distribution found for pywin32==301
Originally posted by @faveoled in #3 (comment)
I use Windows, and I replace the values for srtpath and sppath variables in the tts.py file and then run “python tts.py”.
But it turns out as follows:
Traceback (most recent call last):
File "tts.py", line 9, in
parsesrt.parse(srtpath)
File "D:\SRT-Audio-master\parsesrt.py", line 22, in parse
ln+=b" "
UnboundLocalError: local variable 'ln' referenced before assignment
Refrencing issue pointed out by @waxweb
I'm still having version problems with python and requirements...
immediately there is a pywintypes error [ImportError: No system module
'pywintypes' (pywintypes38.dll)], which should be in pywin32..
could I ask you exactly what version of python you are using, and if I
should set any specific version of pywin32 in the requirements?
Thank you! I am very eager to try this...
here is the full error:
Traceback (most recent call last):
File "tts.py", line 12, in
engine = pyttsx3.init()
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3_init_.py",
line 22, in init
eng = Engine(driverName, debug)
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3\engine.py",
line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName,
debug)
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3\driver.py",
line 50, in init
self.module = importlib.import_module(name)
File
"C:\Users\David\AppData\Local\Programs\Python\Python38\lib\importlib_init.py",
line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in
_find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in
exec_module
File "", line 219, in
_call_with_frames_removed
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3\drivers\sapi5.py",
line 10, in
import pythoncom
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pythoncom.py",
line 2, in
import pywintypes
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\win32\lib\pywintypes.py",
line 105, in
import_pywin32_system_module("pywintypes", globals())
File
"C:\Users\David\AppData\Roaming\Python\Python38\site-packages\win32\lib\pywintypes.py",
line 87, in import_pywin32_system_module
raise ImportError("No system module '%s' (%s)" % (modname,
filename))
ImportError: No system module 'pywintypes' (pywintypes38.dll)
Originally posted by @waxweb in #2 (comment)
when I try to install the requirements, I get:
ERROR: Could not find a version that satisfies the requirement pywin32==301 (from versions: 302, 303)
I am on Python 3.10 on Windows 10 64... do I need to do something like make a specific 32 bit install of Python, or something like that? Please help :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.