1
我擁有一個具有話筒(捕捉)功能的設備。我想將該設備的聲音錄製到wav文件中。PJSIP通過會議橋錄製話筒從麥克風設備到wav文件
當我做下面的步驟
wav = pjmedia_wav_writer_port_create
snd_port = pjmedia_snd_port_create_rec (NOTE: PJMEDIA_DIR_CAPTURE only)
pjmedia_snd_port_connect(snd_port , wav)
的呼聲越來越錄製成WAV文件
但是當我做
wav = pjmedia_wav_writer_port_create
snd_port = pjmedia_snd_port_create_rec (NOTE: PJMEDIA_DIR_CAPTURE only)
conf = pjmedia_conf_create
pjmedia_snd_port_connect(snd_port , conf)
pjmedia_conf_add_port(conf, wav)
的呼聲沒有得到重新編碼成wav文件
我收到以下來自pjmedia的調試消息
sound:0 pjsip 80 samples reduced, buf_cnt=161
sound:0 pjsip 80 samples reduced, buf_cnt=161
sound:0 pjsip 80 samples reduced, buf_cnt=161
sound:0 pjsip 80 samples reduced, buf_cnt=161
sound:0 pjsip 80 samples reduced, buf_cnt=161
sound:0 pjsip 80 samples reduced, buf_cnt=161