Mark Jay
Mark Jay's Channel
 
 
How To Install Anaconda!
1,353
My Complete Atom For Python Setup Tutorial!
980
Image Detection with YOLO-v2 (pt.1) Render Video
860
My Complete VS Code For Python Tutorial!
760
Getting Started with Plotly and Jupyter!
6,066
Learn Jupyter Notebooks (Pt. 1) Plotting
5,933
ThinkPad eGPU Budget Deep Learning Build - Part 1
5,733
How To Install Tensorflow-GPU (1.8) on Ubuntu 18.04
4,733
How To Use Pip and Install Wheel files
4,000
Managing Python Environments with Conda
3,933
Pickling Data With Python!
3,266
Learn Jupyter Notebooks (pt.1a) Hydrogen with Atom
2,866
Learn Jupyter Notebooks (Pt.3) Animated Plotting
2,733
How To Completely Update Your Conda Environments!
2,600
 
Mark Jay
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.
Subscribers
21.6K
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)