|
請問如何讀寫寄存器
发表于 2019-3-26 11:50:27
浏览:12832
|
回复:11
打印
只看该作者
[复制链接]
楼主
測試pyaudio抓取音頻,
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 6
RATE = 8000 #44100
RECORD_SECONDS = 1.8
WAVE_OUTPUT_FILENAME = "file.wav"
chunk = 3600
audio = pyaudio.PyAudio()
stream = audio.open(format = FORMAT,
channels = CHANNELS,
rate = RATE,
input = True,
#input_device_index = SEL_INPUT_DEVICE,
frames_per_buffer = chunk)
結果出現
[92845.081231] clk_pdm_frac parent_rate(589823999) is low than rate(40960000)*20, fractional div is not allowed
請問:
1. 怎麼解決?
2. 如何讀寫寄存器? |
|