• 2024-12-22使用sounddevice录制扬声器的声音和录屏
    寻找扬声器声音的可录制接口importsounddeviceassdimportwaveimportosdevices=sd.query_devices()print(devices)foriinrange(len(devices)): wf=wave.open(f'test{i}.wav','wb') wf.setnchannels(1) wf.setsampwidth(2) wf.setframerate(16000)