Fresh install and I get this error when recording into the microphone
#174
Open
opened
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. It CANNOT be undone. Continue?
\gradio\processing_utils.py:239: UserWarning: Trying to convert audio automatically from int32 to 16-bit int format.
warnings.warn(warning.format(data.dtype))
It's not an error, just a warning. Does it still work?
it says Something went wrong
Unsupported audio format provided: -100
trying to generate
[1/1] Generating line: What can i do with that
Loading voice: microphone with model d1f79232
Traceback (most recent call last):
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
result = await self.call_function(
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "E:\AI\Voice\ai-voice-cloning\venv\lib\site-packages\gradio\helpers.py", line 587, in tracked_fn
response = fn(*args)
File "E:\AI\Voice\ai-voice-cloning\src\webui.py", line 91, in generate_proxy
raise e
File "E:\AI\Voice\ai-voice-cloning\src\webui.py", line 85, in generate_proxy
sample, outputs, stats = generate(**kwargs)
File "E:\AI\Voice\ai-voice-cloning\src\utils.py", line 368, in generate
settings = get_settings( override=override )
File "E:\AI\Voice\ai-voice-cloning\src\utils.py", line 232, in get_settings
settings['voice_samples'], settings['conditioning_latents'], _ = fetch_voice(voice=selected_voice)
File "E:\AI\Voice\ai-voice-cloning\src\utils.py", line 157, in fetch_voice
voice_samples, conditioning_latents = [load_audio(parameters['mic_audio'], tts.input_sample_rate)], None
File "e:\ai\voice\ai-voice-cloning\modules\tortoise-tts\tortoise\utils\audio.py", line 28, in load_audio
assert False, f"Unsupported audio format provided: {audiopath[-4:]}"
AssertionError: Unsupported audio format provided: -100
I don't have a mic so I can't check but you might need to adjust your microphone settings so that the recording sample rate is 22050.
Odd since i didnt have this issue before, not sure what changed.