Browse Source

update

master
zhaohe 2 years ago
parent
commit
69dc027fd3
  1. 2
      demo/ac_sound_capture1/ac_sound_capture1.cpp

2
demo/ac_sound_capture1/ac_sound_capture1.cpp

@ -156,7 +156,7 @@ void sound_capture_callback(int32_t* voicedata, uint32_t len) {
voicedata[i] = voicedata[i] << 8; //底层采集的数据是24位,左移8位转换成32位
}
wavWriteVoice("record.wav", 96000, 32, 1, (char*)voicedata, len * sizeof(int32_t));
wavWriteVoice("record.wav", 64000, 32, 1, (char*)voicedata, len * sizeof(int32_t));
}
int main(int argc, char const* argv[]) {

Loading…
Cancel
Save