mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 05:36:42 +08:00
fix string/bytes issues
This commit is contained in:
@@ -41,7 +41,7 @@ def load(fileobj):
|
||||
|
||||
|
||||
def loads(data):
|
||||
x = np.fromstring(str(data), dtype='int16')
|
||||
x = np.frombuffer(data, dtype='int16')
|
||||
x = x / scaling
|
||||
return x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user