read_tts's People
read_tts's Issues
The last one to generate failed to remove
ERROR: _merge: Permission denied!
DEBUG:
Traceback (most recent call last):
File "E:\TEMP\git\git\Read_tts-web\Read_tts\utils.py", line 363, in _merge
remove(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'Output/xxx_xxxxxxxx (1).mp3'
Tag over limited
DEBUG code: CancellationErrorCode.RuntimeError utils.py:410
ERROR RuntimeError: utils.py:416
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ C:\ProgramData\mambaforge-pypy3\envs\main\lib\site-packages\mytts\tts.py:87 in implete │
│ │
│ 84 │ │ end_resp_pat = re.compile('Path:turn.end') │
│ 85 │ │ audio_stream:bytes = b'' │
│ 86 │ │ while(True): │
│ > 87 │ │ │ response = await websocket.recv() │
│ 88 │ │ │ if re.search(end_resp_pat, str(response)) is None: │
│ 89 │ │ │ │ if type(response) == type(bytes()): │
│ 90 │ │ │ │ │ # print("recv ({}) {}".format(req_id,response[:5])) │
│ │
│ C:\ProgramData\mambaforge-pypy3\envs\main\lib\site-packages\websockets\legacy\protocol.py:568 in │
│ recv │
│ │
│ 565 │ │ │ │ else: │
│ 566 │ │ │ │ │ # Wait until the connection is closed to raise │
│ 567 │ │ │ │ │ # ConnectionClosed with the correct code and reason. │
│ > 568 │ │ │ │ │ await self.ensure_open() │
│ 569 │ │ │
│ 570 │ │ # Pop a message from the queue. │
│ 571 │ │ message = self.messages.popleft() │
│ │
│ C:\ProgramData\mambaforge-pypy3\envs\main\lib\site-packages\websockets\legacy\protocol.py:953 in │
│ ensure_open │
│ │
│ 950 │ │ │ # CLOSING state also occurs when failing the connection. In that │
│ 951 │ │ │ # case self.close_connection_task will complete even faster. │
│ 952 │ │ │ await asyncio.shield(self.close_connection_task) │
│ > 953 │ │ │ raise self.connection_closed_exc() │
│ 954 │ │ │
│ 955 │ │ # Control may only reach this point in buggy third-party subclasses. │
│ 956 │ │ assert self.state is State.CONNECTING │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
ConnectionClosedError: received 1007 (invalid data) SSML must contain a maximum of 50 voice elements. Actual 51.; then sent 1007 (invalid data) SSML must contain a maximum
of 50 voice elements. Actual 51.
ERROR Traceback (most recent call last): utils.py:421
File "C:\ProgramData\mambaforge-pypy3\envs\main\lib\site-packages\mytts\tts.py", line 87, in implete
response = await websocket.recv()
File "C:\ProgramData\mambaforge-pypy3\envs\main\lib\site-packages\websockets\legacy\protocol.py", line 568, in recv
await self.ensure_open()
File "C:\ProgramData\mambaforge-pypy3\envs\main\lib\site-packages\websockets\legacy\protocol.py", line 953, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: received 1007 (invalid data) SSML must contain a maximum of 50 voice elements.
Actual 51.; then sent 1007 (invalid data) SSML must contain a maximum of 50 voice elements. Actual 51.
DEBUG Error utils.py:427
ERROR 原因: ResultReason.Canceled utils.py:428
DEBUG idx=233 utils.py:430
ERROR Async request error! exceptions.py:90
RE: ret.reason=ResultReason.Canceled
DEBUG exceptions.py:96
┌──────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────┐
│ E:\***\utils.py:431 in _deal │
│ │
│ 428 │ │ │ │ │ logger.error(config.lang["utils"] │
│ 429 │ │ │ │ │ │ │ │ ["ToSer"]["fail"] + str(ret.reason)) │
│ 430 │ │ │ │ │ logger.debug("idx=%d" % chapters[j].idx) │
│ > 431 │ │ │ │ │ raise RuntimeError("ret.reason=%s" % ret.reason) │
│ 432 │ │ │ │ else: │
│ 433 │ │ │ │ │ assert ret.audio_duration is not None, "Audio here should not be not │
│ available. All error should be catched below." │
│ 434 │ │ │ │ │ self.total_time += ret.audio_duration.total_seconds() / 60 │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
RuntimeError: ret.reason=ResultReason.Canceled
DEBUG audio_duration=None
Voice tag over limit(assert)
data_crypt.log
Book: 1
Chap: 390
Error detail: AssertionError("Voice tag out of limit.")
Some connection error is uncaught
Error log file:
2022-05-13 20:54:23,746 - CRITICAL - <module>: An uncaught error occurred during Main.main
Traceback (most recent call last):
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\protocol.py", line 827, in transfer_data
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\protocol.py", line 895, in read_message
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\protocol.py", line 971, in read_data_frame
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\protocol.py", line 1047, in read_frame
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\framing.py", line 133, in read
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\asyncio\streams.py", line 723, in readexactly
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\asyncio\streams.py", line 517, in _wait_for_data
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\gather.py", line 114, in wait
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\tts.py", line 105, in mainSeq
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\tts.py", line 85, in transferMsTTSData
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\protocol.py", line 509, in recv
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\websockets\protocol.py", line 812, in ensure_open
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\gather.py", line 221, in <module>
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\gather.py", line 200, in main
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\asyncio\runners.py", line 44, in run
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\asyncio\base_events.py", line 642, in run_until_complete
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\gather.py", line 185, in download
File "C:\Users\dicp\AppData\Local\Temp\ONEFIL~4\gather.py", line 121, in wait
TypeError: can only concatenate list (not "int") to list
Use subprocess
Use subprocess
instead async to speed up.
Can't download
Can't download
DEBUG - choose_book: bgn: 476 to: 489.
Downloaded files are 0 bytes, and the name is wrong.
Cut at 10min
If mp3 length is over 10min, file will be cut.
Title regular expression is not running
as Title.
In:
<Chapter idx=1 title=103_第***(1/10) (0).mp3 content=123>
Out:
1_103_第***(1/10) (0).mp3
Chapter 404
Check if chapter text is 404 before running, because of the book source.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.