Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: keep convert same audio #970

Open
beanredbean opened this issue Feb 10, 2025 · 0 comments
Open

[Bug]: keep convert same audio #970

beanredbean opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@beanredbean
Copy link

Project Version

3.2.8-bugfix

Platform and OS Version

window 11

Affected Devices

pc

Existing Issues

No response

What happened?

I started to use TTS to convert sentences. I tried many different sentences, but I found that it keeps converting the same sentence from the first one. I tried restarting it and even restarting my computer, but it still converts the same sentence.

Steps to reproduce

  1. tts converting

...

Expected behavior

It should convert correct voice which match the text.

Attachments

INFO: Could not find files for the given pattern(s).

To create a public link, set share=True in launch().
Converting audio 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav'...
Conversion completed at 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_rvc_output.wav' in 10.99 seconds.
Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1116, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1103, in create_connection
transport, protocol = await self._create_connection_transport(
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1133, in _create_connection_transport
await waiter
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\proactor_events.py", line 401, in _loop_writing
self._write_fut = self._loop._proactor.send(self._sock, data)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\windows_events.py", line 546, in send
ov.WSASend(conn.fileno(), buf, flags)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 29, in
asyncio.run(main())
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 24, in main
await edge_tts.Communicate(text, voice, rate=rates).save(output_file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 470, in save
async for message in self.stream():
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 316, in stream
async with aiohttp.ClientSession(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1423, in aenter
self._resp: _RetType = await self._coro
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1002, in _ws_connect
resp = await self.request(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 701, in _request
conn = await self._connector.connect(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1050, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1394, in _create_direct_connection
raise last_exc
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1363, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1124, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl:<ssl.SSLContext object at 0x000001A41D802140> [An existing connection was forcibly closed by the remote host]
Converting audio 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav'...
An error occurred during audio conversion: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.
Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 62, in load_audio_infer
audio, sr = sf.read(file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 285, in read
with SoundFile(file, 'r', samplerate, channels,
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\infer\infer.py", line 261, in convert_audio
audio = load_audio_infer(
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 81, in load_audio_infer
raise RuntimeError(f"An error occurred loading the audio: {error}")
RuntimeError: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1116, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1103, in create_connection
transport, protocol = await self._create_connection_transport(
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1133, in _create_connection_transport
await waiter
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\proactor_events.py", line 401, in _loop_writing
self._write_fut = self._loop._proactor.send(self._sock, data)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\windows_events.py", line 546, in send
ov.WSASend(conn.fileno(), buf, flags)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 29, in
asyncio.run(main())
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 24, in main
await edge_tts.Communicate(text, voice, rate=rates).save(output_file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 470, in save
async for message in self.stream():
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 316, in stream
async with aiohttp.ClientSession(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1423, in aenter
self._resp: _RetType = await self._coro
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1002, in _ws_connect
resp = await self.request(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 701, in _request
conn = await self._connector.connect(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1050, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1394, in _create_direct_connection
raise last_exc
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1363, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1124, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl:<ssl.SSLContext object at 0x000001BBF536E140> [An existing connection was forcibly closed by the remote host]
Converting audio 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav'...
An error occurred during audio conversion: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.
Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 62, in load_audio_infer
audio, sr = sf.read(file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 285, in read
with SoundFile(file, 'r', samplerate, channels,
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\infer\infer.py", line 261, in convert_audio
audio = load_audio_infer(
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 81, in load_audio_infer
raise RuntimeError(f"An error occurred loading the audio: {error}")
RuntimeError: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1116, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1103, in create_connection
transport, protocol = await self._create_connection_transport(
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1133, in _create_connection_transport
await waiter
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\proactor_events.py", line 401, in _loop_writing
self._write_fut = self._loop._proactor.send(self._sock, data)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\windows_events.py", line 546, in send
ov.WSASend(conn.fileno(), buf, flags)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 29, in
asyncio.run(main())
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 24, in main
await edge_tts.Communicate(text, voice, rate=rates).save(output_file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 470, in save
async for message in self.stream():
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 316, in stream
async with aiohttp.ClientSession(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1423, in aenter
self._resp: _RetType = await self._coro
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1002, in _ws_connect
resp = await self.request(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 701, in _request
conn = await self._connector.connect(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1050, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1394, in _create_direct_connection
raise last_exc
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1363, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1124, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl:<ssl.SSLContext object at 0x0000022CD1C12140> [An existing connection was forcibly closed by the remote host]
Converting audio 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav'...
An error occurred during audio conversion: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.
Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 62, in load_audio_infer
audio, sr = sf.read(file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 285, in read
with SoundFile(file, 'r', samplerate, channels,
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\infer\infer.py", line 261, in convert_audio
audio = load_audio_infer(
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 81, in load_audio_infer
raise RuntimeError(f"An error occurred loading the audio: {error}")
RuntimeError: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1116, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1103, in create_connection
transport, protocol = await self._create_connection_transport(
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 1133, in _create_connection_transport
await waiter
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\proactor_events.py", line 401, in _loop_writing
self._write_fut = self._loop._proactor.send(self._sock, data)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\windows_events.py", line 546, in send
ov.WSASend(conn.fileno(), buf, flags)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 29, in
asyncio.run(main())
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\ApplioV3.2.8-bugfix\env\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\ApplioV3.2.8-bugfix\rvc\lib\tools\tts.py", line 24, in main
await edge_tts.Communicate(text, voice, rate=rates).save(output_file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 470, in save
async for message in self.stream():
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\edge_tts\communicate.py", line 316, in stream
async with aiohttp.ClientSession(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1423, in aenter
self._resp: _RetType = await self._coro
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 1002, in _ws_connect
resp = await self.request(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\client.py", line 701, in _request
conn = await self._connector.connect(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1050, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1394, in _create_direct_connection
raise last_exc
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1363, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\aiohttp\connector.py", line 1124, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl:<ssl.SSLContext object at 0x000001BBBF412140> [An existing connection was forcibly closed by the remote host]
Converting audio 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav'...
An error occurred during audio conversion: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.
Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 62, in load_audio_infer
audio, sr = sf.read(file)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 285, in read
with SoundFile(file, 'r', samplerate, channels,
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "C:\ApplioV3.2.8-bugfix\env\lib\site-packages\soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ApplioV3.2.8-bugfix\rvc\infer\infer.py", line 261, in convert_audio
audio = load_audio_infer(
File "C:\ApplioV3.2.8-bugfix\rvc\lib\utils.py", line 81, in load_audio_infer
raise RuntimeError(f"An error occurred loading the audio: {error}")
RuntimeError: An error occurred loading the audio: Error opening 'C:\ApplioV3.2.8-bugfix\assets\audios\tts_output.wav': Format not recognised.

Screenshots or Videos

No response

Additional Information

No response

@beanredbean beanredbean added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant