我的设备只具有麦克风(捕捉)功能。我想将该设备的声音录制到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
答案 0 :(得分:1)