-
Notifications
You must be signed in to change notification settings - Fork 819
Closed
Description
之前用opus_encoder.h/opus_decoder.h 作实时语音通话,倒是可以传输,但是有延时(大概3秒)(https://github.com/espressif/esp-adf/issues/1537)这个延时还是没办法解决;
现在改用raw_opus_encoder.h/raw_opus_decoder.h, 代码如下
raw_opus_enc_config_t raw_opus_cfg = RAW_OPUS_ENC_CONFIG_DEFAULT();
raw_opus_cfg.sample_rate = 16000;
raw_opus_cfg.channel = 1;
raw_opus_cfg.bitrate = 32000;
raw_opus_cfg.complexity = 5;
opus_encoder = raw_opus_encoder_init(&raw_opus_cfg);
raw_opus_dec_cfg_t opus_dec_cfg = RAW_OPUS_DEC_CONFIG_DEFAULT();
opus_dec_cfg.sample_rate = 16000;
opus_dec_cfg.channels = 1;
opus_dec_cfg.enable_frame_length_prefix = false;
opus_dec_cfg.out_rb_size = 16 * 1024;
opus_dec_cfg.task_core = 1;
s_opus_decoder = raw_opus_decoder_init(&opus_dec_cfg);
但是语音声音严重不对;想知道这个raw与不带raw的区别是什么,文档上也没有说明,具体要怎么用
Metadata
Metadata
Assignees
Labels
No labels