We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import numpy as np audio = AudioSegment.from_file("example.wav", "wav") arr = nbp.array(audio.get_array_of_samples()) print(arr.dtype)
The data type of the array is uint8.
The data type of the array is int8.
The text was updated successfully, but these errors were encountered:
for 8 bit audio, I think uint8 is correct - I think that is just an accident of history (as discussed here, they blame bill gates but who knows https://www.dsprelated.com/showthread/comp.dsp/71057-1.php )
Sorry, something went wrong.
Thank you for the reply. As you mentioned uint8 is correct, but the returned type was "signed" int8.
ah, I misunderstood - thank you for the PR
No branches or pull requests
Steps to reproduce
import numpy as np
audio = AudioSegment.from_file("example.wav", "wav")
arr = nbp.array(audio.get_array_of_samples())
print(arr.dtype)
Expected behavior
The data type of the array is uint8.
Actual behavior
The data type of the array is int8.
The text was updated successfully, but these errors were encountered: