SWHear.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Python-GUI-examples 作者: swharden 项目源码 文件源码
def stream_start(self):
        """adds data to self.data until termination signal"""
        self.initiate()
        print(" -- starting stream")
        self.keepRecording=True # set this to False later to terminate stream
        self.data=None # will fill up with threaded recording data
        self.fft=None
        self.dataFiltered=None #same
        self.stream=self.p.open(format=pyaudio.paInt16,channels=1,
                      rate=self.rate,input=True,frames_per_buffer=self.chunk)
        self.stream_thread_new()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号