之前一直使用3.0.4版本
调用tuya_voice_upload_media_start接口无异常,SDK输出正常日志如下:
[12-06 11:13:19:260 TUYA D][tuya_voice_upload.c:19] type: 2, channels: 1, sample_freq: 16000, bit_depth: 16.
[12-06 11:13:19:260 TUYA D][speaker_encode.c:99] encode_type:2 channels:1 rate:16000 bits_per_sample:16
[12-06 11:13:19:260 TUYA D][speaker_encode.c:117] start encode handler
[12-06 11:13:19:265 TUYA D][speex_encode.c:149] rate:16000 bitrate:16800 frame_size:320 encode_frame_size:42
[12-06 11:13:19:265 TUYA D][tuya_speaker_voice_upload.c:109] mqtt-upload send topic:v/m/o/6c8c9cfb6126cb18cbjeri
[12-06 11:13:19:269 TUYA D][tuya_speaker_voice_upload.c:60] req id:2
[12-06 11:13:19:270 TUYA D][tuya_speaker_voice_upload.c:119] message_id: 1670296399270
[12-06 11:13:19:270 TUYA D][tuya_speaker_voice_upload.c:139] upload media start. media_encode:2 session_id: -->> target:0
升级到3.4.3版本后
同样调用相同接口,出现异常,SDK输出异常日志如下:
[12-06 11:05:10:944 TUYA D][tuya_voice_upload.c:35] type: 2, channels: 1, sample_freq: 16000, bit_depth: 16.
[12-06 11:05:10:944 TUYA D][tuya_voice_upload.c:38] dialogue current session_id: [].
[12-06 11:05:10:944 TUYA D][speaker_encode.c:114] encode_type:0 channels:0 rate:0 bits_per_sample:0
[12-06 11:05:10:944 TUYA E][speaker_encode.c:99] don't find type 0 valid encoder
[12-06 11:05:10:945 TUYA E][speaker_upload.c:41] speaker_encode_start error:-1
[12-06 11:05:10:945 TUYA E][tuya_voice_upload.c:57] speaker_intf_upload_media_start, -1
请问这是什么原因造成的,如何解决,谢谢。