Mageia Bugzilla – Attachment 14393 Details for
Bug 32848
Mageia depot must be updated to python3-pyAudio 0.2.14
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
File to prove the error
test_FFT_MGA.py (text/x-python3), 659 bytes, created by
papoteur
on 2024-02-17 18:08:42 CET
(
hide
)
Description:
File to prove the error
Filename:
MIME Type:
Creator:
papoteur
Created:
2024-02-17 18:08:42 CET
Size:
659 bytes
patch
obsolete
>#!/usr/bin/python3 > >import pyaudio >import numpy as np >import matplotlib.pyplot as plt > >pa = pyaudio.PyAudio() # interface à portaudio > >cbOut = [] >reçu = False > >def cb( in_data, nb, time_info, flag): > global reçu > reçu = False > cbOut = [] > cbOut.append( np.frombuffer( in_data, dtype = np.int16)) > reçu = True > return None,pyaudio.paContinue > > ># pour lire un microphone >flux = pa.open( format = pyaudio.paInt16, > channels = 1, > rate = 44100, > output = False, > input = True, > stream_callback = cb) > > >import time; time.sleep(1) >breakpoint() >pass >stream.close() >pa.terminate()
#!/usr/bin/python3 import pyaudio import numpy as np import matplotlib.pyplot as plt pa = pyaudio.PyAudio() # interface à portaudio cbOut = [] reçu = False def cb( in_data, nb, time_info, flag): global reçu reçu = False cbOut = [] cbOut.append( np.frombuffer( in_data, dtype = np.int16)) reçu = True return None,pyaudio.paContinue # pour lire un microphone flux = pa.open( format = pyaudio.paInt16, channels = 1, rate = 44100, output = False, input = True, stream_callback = cb) import time; time.sleep(1) breakpoint() pass stream.close() pa.terminate()
View Attachment As Raw
Actions:
View
Attachments on
bug 32848
: 14393