mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
bugfix rest 32bit -> 16bit
This commit is contained in:
parent
dadab1ad13
commit
85dfaff25f
@ -39,9 +39,8 @@ class MMVC_Rest_VoiceChanger:
|
||||
# struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav)
|
||||
# )
|
||||
|
||||
unpackedData = np.array(
|
||||
struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav)
|
||||
)
|
||||
unpackedData = np.array(struct.unpack("<%sh" % (len(wav) // struct.calcsize("<h")), wav)).astype(np.int16)
|
||||
# print(f"[REST] unpackedDataType {unpackedData.dtype}")
|
||||
|
||||
self.tlock.acquire()
|
||||
changedVoice = self.voiceChangerManager.changeVoice(unpackedData)
|
||||
|
Loading…
Reference in New Issue
Block a user