Fixed README demo to read wav properly#31
Conversation
|
Could you send me a notebook of the example not working in colab without flattening? / with flattening? Maybe it would be a good idea to add a link to that example in the readme as well. |
|
https://colab.research.google.com/drive/1VcQvams218kGGQjFzlP1uK7F3UsDBERl |
|
Hi @awildfivreld thanks for posting. np.flatten() is taking the 2d audio (2, 200542) dimensional audio and making it 1d (401084,). If the audio is 2D and we want to convert it to mono, we would want to do something like this: |
The current readme leaves out a crucial step (dividing wav data by 32768) in order for the algorithm to work correctly. This PR fixes that for future reference. I have tested with the fish example from Google Colab. It does not work as intended without this fix.
Flatten is also added for stereo audio streams.