eggd800vis.py 文件源码

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

项目:eggd800 作者: rsprouse 项目源码 文件源码
def play_all():
    # create an audio object
    pya = pyaudio.PyAudio()

    # open stream based on the wave object which has been input.
    stream = pya.open(
                format = pyaudio.paInt16,
                channels = 1,
                rate = np.int16(np.round(orig_rate)),
                output = True)

    # read data (based on the chunk size)
    audata = orig_au.astype(np.int16).tostring()
    stream.write(audata)

    # cleanup stuff.
    stream.close()    
    pya.terminate()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号