# 需要导入模块: import alsaaudio [as 别名]# 或者: from alsaaudio importPCM_FORMAT_S32_LE[as 别名]defplay(f):device = alsaaudio.PCM() device.setchannels(f.getnchannels()) device.setrate(f.getframerate())iff.getsampwidth() ==1: device.setformat(alsaaudio.PCM_FORMAT_U8)# Otherwise we...