Your channel viewers will see links here, including "subscribe" and "add as friend".
Profile
Name
Mark Jay
Description
Welcome!
This channel focused on python tutorials across many topics such as machine learning, AI, data science, and signal processing. The goal is to teach python by doing interesting project.
This channel focused on python tutorials across many topics such as machine learning, AI, data science, and signal processing. The goal is to teach python by doing interesting project.
Subscribers
21.6K
Subscriptions (6)
Friends
Channel Comments
|
betr8
(5 years ago)
TIME TO MAKE MY FLYING ARROW CONTROLLED BY WHISTLE
|
|
jkrigelman
(7 years ago)
The data format over the audio channel you requested is a signed short value (Int16). But when you sed struct you tried to convert it to unsigned chars (UInt8). You should be able to get the data with struct if you change it to unpack your sample size as signed short data.
|
|
Marcin648
(7 years ago)
Great series!
|
|
luisdanielosa
(8 years ago (edited))
This is great. Thanks a lot for posting it. Setting data_np = np.frombuffer(data, dtype = np.int16) works a lot better (no need to subsample, pywave datatype es int16). You'd need to readjust ax.set_ylim(-2**15, 2**15)
|
|
darrenramsook3717
(9 years ago)
Loving this!
|
|
betojasz
(7 years ago)
Perfect!! Thankss!!
|
|
UrThysis
(8 years ago)
i'd really wanna see some DSP and more audio tutorials with python because i've tried to learn JUCE for C++ but it's way more syntax heavy than python so I started with Py
|
|
gasperstucin7860
(8 years ago)
if you are still getting weird display of your audio stream after adding 127, try adding 128 instead
|
|
computervisiondev
(4 years ago)
Many thanks!!
|
|
rubenmata73
(5 years ago)
Woow! Great!
|
|
TheBontenbal
(4 years ago)
Great script. I had to enter %matplotlib notebook to the cell to get it working properly in Jupyter.
|
|
shreytripathi5683
(5 years ago)
are you that guy from this is your daily dose of internet?
|
|
pisoiorfan
(7 years ago)
The chart is choppy at 8:00 because you unpack two byte integers into array of single bytes.
|
|
williamstanton6599
(8 years ago)
Bytes are 8 bits and ints are 16 bits. Converting from bytes to ints adds a zero byte to the front, doubling the size of the data. Also with signed bytes everything from 128 -255 is considered negative.
|
|
martinkopecky8334
(7 years ago)
I found the solution to the ploting problem, it's indeed 16-bit integer, SIGNED -> data_int = struct.unpack(str(2*lenght_of_data_chunk) + 'h', data)
|
Add comment



















































