PoohWoah

Results 3 comments of PoohWoah

在我从阿里云服务器进行语音合成接口的测试时,我发现服务器发来的数据永远播放不了最后一帧 随后我进行了测试,挂载了usb host,进行文件下载,可以完整识别到的,不会丢失最后一帧数据。那么说明问题出在播放管道解码过程。 服务器发送数据如下: 发送了1008bytes数据*n个数据包,最后一包数据位879bytes(丢失的数据包)。 具体配置如下: `player_pipeline_handle_t player_pipeline_open(void) { ESP_LOGI(TAG, "%s", __func__); player_pipeline_handle_t player_pipeline = audio_calloc(1, sizeof(struct player_pipeline_t)); AUDIO_MEM_CHECK(TAG, player_pipeline, goto _exit_open); player_pipeline->player_state = PIPE_STATE_IDLE; s_player_pipeline = player_pipeline; ESP_LOGI(TAG, "Create...

是MP3的方式下行的, audio_element_handle_t create_player_decoder_stream(void) { audio_element_handle_t decoder_stream = NULL; ESP_LOGI(TAG, "Create aac decoder"); mp3_decoder_cfg_t mp3_dec_cfg = DEFAULT_MP3_DECODER_CONFIG(); mp3_dec_cfg.task_core = 1; decoder_stream = mp3_decoder_init(&mp3_dec_cfg); return decoder_stream; } 这是我的配置,没有任何更改