Did I find the right examples for you? yes no

All Samples(89)  |  Call(86)  |  Derive(0)  |  Import(3)

src/c/h/chaco-HEAD/examples/demo/vtk/spectrum.py   chaco(Download)
        # The stream is always closed (if it was opened) in a try finally
        # block at the end of this file,
        pa = pyaudio.PyAudio()
        _stream = pa.open(format=pyaudio.paInt16, channels=1,
                          rate=SAMPLING_RATE,

src/c/h/chaco-HEAD/examples/demo/advanced/spec_waterfall.py   chaco(Download)
def get_audio_data():
    pa = pyaudio.PyAudio()
    stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RATE,
                     input=True, frames_per_buffer=NUM_SAMPLES)
    audio_data  = fromstring(stream.read(NUM_SAMPLES), dtype=short)

src/c/h/chaco-HEAD/examples/demo/advanced/spectrum.py   chaco(Download)
def get_audio_data():
    global _stream
    if _stream is None:
        pa = pyaudio.PyAudio()
        _stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RATE,

src/g/r/gr-0.5.0/examples/spectrum.py   gr(Download)
def get_spectrum():
    global mic
    if mic is None:
        pa = pyaudio.PyAudio()
        mic = pa.open(format=pyaudio.paInt16, channels=1, rate=FS,

src/g/r/gr-0.5.0/examples/oscilloscope.py   gr(Download)
def get_audio_data():
    global mic
    if mic is None:
        pa = pyaudio.PyAudio()
        mic = pa.open(format=pyaudio.paInt16, channels=1, rate=FS,

src/g/r/gr-0.5.0/examples/audio_ex.py   gr(Download)
wf = wave.open(os.path.join(os.path.dirname(os.path.realpath(__file__)),
                            'Monty_Python.wav'), 'rb')
pa = pyaudio.PyAudio()
stream = pa.open(format=pa.get_format_from_width(wf.getsampwidth()),
                 channels=wf.getnchannels(), rate=wf.getframerate(), output=True)

src/p/y/PySSTV-0.2.5/pysstv/examples/pyaudio_sstv.py   PySSTV(Download)
    def __init__(self, sstv):
        self.pa = pyaudio.PyAudio()
        self.sstv = sstv
        self.fmt = '<' + SSTV.BITS_TO_STRUCT[sstv.bits]
 

src/n/e/NeuroTools-0.2.0/examples/single_neuron/playing_with_simple_single_neuron.py   NeuroTools(Download)
        chunk = 1024
        wf = wave.open(cfilename, 'rb')
        p = pyaudio.PyAudio()
 
        # open stream

src/n/u/nupic-HEAD/examples/audiostream/audiostream_tp.py   nupic(Download)
    Creating the audio stream from our mic
    """
    p = pyaudio.PyAudio()
    self.inStream = p.open(format=pyaudio.paInt32,channels=1,rate=rate,input=True,frames_per_buffer=self.buffersize)
 

src/p/y/PyWit-HEAD/examples/recorded_stream_input_example.py   PyWit(Download)
def record_and_stream():
    p = pyaudio.PyAudio()
 
    stream = p.open(
        format=FORMAT, channels=CHANNELS, rate=RATE,

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next