python录制音频
作者:互联网
python录制、保存音频
1、导入pyaudio库
pip install pyaudio
2、录制、保存音频
# !/usr/bin/python
# -*- coding: utf-8 -*-
"""
@contact: 微信 1257309054
@file: 录制声音.py
@time: 2022/1/6 17:04
@author: LDC
"""
import wave
import pyaudio as pyaudio
def audio_record(out_file, rec_time):
'''
用Pyaudio库录制音频
:param o
标签:python,音频,录制,file,import,pyaudio 来源: https://blog.csdn.net/lm_is_dc/article/details/122348836