SHARE
TWEET

Untitled

a guest Nov 8th, 2019 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. duration = 5.5  # seconds
  2.  
  3. def callback(indata, outdata, frames, time, status):
  4.     if status:
  5.         print(status)
  6.     outdata[:] = indata
  7.  
  8. with sd.RawStream(channels=2, dtype='int24', callback=callback):
  9.     sd.sleep(int(duration * 1000))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top