skshadan / TTS-RVC-API

Text to Speech using Coqui TTS + RVC
MIT License
87 stars 18 forks source link

AttributeError: 'NoneType' object has no attribute 'dtype' #8

Closed R-E-Y-Z-I-K closed 5 months ago

R-E-Y-Z-I-K commented 5 months ago

Hello, when I run your code I get the error indicated in the title, how can I solve it? In addition, I would like to use this repository for TTS in other languages ​​or in general multilingual, I tried changing the TTS model from coquiTTS, but I still get "Artifact voice" when using a text other than English. How can I fix this? (Machine translation was used)

`500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\middleware\base.py", line 108, in call response = await self.dispatch_func(request, call_next) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AssistProj\TTS-RVC-API-main\app\main.py", line 70, in log_requests response = await call_next(request) ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\middleware\base.py", line 84, in call_next raise app_exc File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\middleware\base.py", line 70, in coro await self.app(scope, receive_or_disconnect, send_no_error) File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call raise e File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call await self.app(scope, receive, send) File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\routing.py", line 276, in handle await self.app(scope, receive, send) File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\starlette\routing.py", line 66, in app response = await func(request) ^^^^^^^^^^^^^^^^^^^ File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\fastapi\routing.py", line 273, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\fastapi\routing.py", line 190, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AssistProj\TTS-RVC-API-main\app\routers\full.py", line 23, in generate rvc_speaker_id, wav = server( ^^^^^^^ File "D:\AssistProj\TTS-RVC-API-main\app\routers\tts.py", line 88, in server write(wav, wav_opt[1][0], wav_opt[1][1]) File "D:\AssistProj\TTS-RVC-API-main\venv\Lib\site-packages\scipy\io\wavfile.py", line 771, in write dkind = data.dtype.kind ^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'dtype'

During handling of the above exception, another exception occurred:

EdVollmond commented 1 month ago

@R-E-Y-Z-I-K , bro, how did you fix this problem?