How to get audio frames from the microphone device | PyShine

How to get audio frames from the microphone device

 · 1 min read

Hi friends! Install pyshine version 0.0.6 in Windows OS as:

pip3 install pyshine==0.0.6

audio.py


import pyshine as ps
audio,context = ps.audioCapture(mode='send')
ps.showPlot(context,name='pyshine.com')
while True:
	frame = audio.get()

save audio.py file and run it:

python3 audio.py