KoikatsuModdingToolsのEditorフォルダにテキストファイルでCreateAudioBundles.cs(ファイル名は何でもよい)を作ります。
KoikatsuModdingTools-master\Assets\Editor\CreateAudioBundles.cs
//------------------------------------------------------------------------------
using UnityEditor;
using System.IO;
推論でエラーになった
Traceback (most recent call last):
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\gradio\blocks.py", line 1006, in process_api
result = await self.call_function(fn_index, inputs, iterator, request)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\gradio\blocks.py", line 859, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\gradio\utils.py", line 408, in async_iteration
return next(iterator)
File "D:\GPT-SoVITS-beta0217\GPT_SoVITS\inference_webui.py", line 389, in get_tts_wav
wav16k, sr = librosa.load(ref_wav_path, sr=16000)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\librosa\core\audio.py", line 164, in load
y, sr_native = __soundfile_load(path, offset, duration, dtype)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\librosa\core\audio.py", line 195, in __soundfile_load
context = sf.SoundFile(path)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\soundfile.py", line 655, in __init__
self._file = self._open(file, mode_int, closefd)
File "D:\GPT-SoVITS-beta0217\runtime\lib\site-packages\soundfile.py", line 1209, in _open
raise TypeError("Invalid file: {0!r}".format(self.name))
TypeError: Invalid file: None