bugfix rest 32bit -> 16bit

This commit is contained in:
w-okada 2023-11-13 00:38:43 +09:00
parent dadab1ad13
commit 85dfaff25f

View File

@ -39,9 +39,8 @@ class MMVC_Rest_VoiceChanger:
# struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav) # struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav)
# ) # )
unpackedData = np.array( unpackedData = np.array(struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav)).astype(np.int16)
struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav) # print(f"[REST] unpackedDataType {unpackedData.dtype}")
)
self.tlock.acquire() self.tlock.acquire()
changedVoice = self.voiceChangerManager.changeVoice(unpackedData) changedVoice = self.voiceChangerManager.changeVoice(unpackedData)