音视频通话,1对1通话,一方有声音,一方没声音

音视频通话,1对1通话,一方有声音,一方没声音

麻烦先完成文档中的自检操作,确认问题是否已解决:
https://docs.agora.io/cn/faq/audio_noaudio

若问题仍然存在,请提供以下信息,方便我们定位问题:

  • 用户无法听到声音的频道号
  • 该频道内哪些用户无法听到声音,请提供他们的 UID
  • 用户无法听到声音的时间段

本地录音了。发现录音也没声音,但是我录音权限是开着的。手机是小米9

两边用的是同一套代码吗?提供下小米手机上的 SDK log 呗?

是的,都一套代码。好的,log怎么过滤

Local Date: Mon Nov 11 16:35:53 2019
Build info: Oct 17 2019 19:17:42 r

INFO (16:35:53:850 | 0) 14442; [AudioRoute] audio routing changed to Speakerphone
INFO (16:35:53:850 | 0) 14442; [AudioRoute] Monitor start: default routing: Speakerphone, current routing: Speakerphone
ERROR (16:35:53:850 | 0) 14442; [AudioRoute] default routing: Speakerphone bluetooth false, current routing: Speakerphone, actual system routing: Speakerphone
INFO (16:35:53:850 | 0) 14442; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Speakerphone, target routing: Speakerphone, actual system routing: Speakerphone
INFO (16:35:53:850 | 0) 14698; [rp] {“che.audio.output.routing”:3}
INFO (16:35:53:850 | 0) 14698; [rp] {“che.audio.output.routing”:3}
INFO (16:35:53:851 | 1) 14442; [AudioRoute] Monitor reset: default routing: Speakerphone, current routing: Speakerphone
INFO (16:35:53:854 | 3) 14698; doStopLastmileProbeTest
INFO (16:35:53:855 | 1) 14698; CALL BEGIN: appid:'c6*************************9c’ cname:‘4258534384659849’ info:‘Extra Optional Data’ sid:‘B46CF4B4A2CE49ACB459A0AF9F5D79D1’
INFO (16:35:53:855 | 0) 14698; addRef of media engine, ref=1
INFO (16:35:53:855 | 0) 14698; [che] create chat engine, ctx:0x6fe98fe720
ERROR (16:35:53:855 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 0
ERROR (16:35:53:855 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 161
INFO (16:35:53:855 | 0) 14698; use android JNI device recording
INFO (16:35:53:855 | 0) 14698; [MYDEBUG] large group call false
INFO (16:35:53:855 | 0) 14698; ChatEngineParameterHelper::applyMediaEngineMode:
INFO (16:35:53:855 | 0) 14698; applyMediaEngineMode(): Hardware encoding false Hardware decoding false
INFO (16:35:53:855 | 0) 14698; engine git commit version:560923657 and branch:(HEAD
INFO (16:35:53:856 | 1) 14698; set audiolayer 0
INFO (16:35:53:856 | 0) 14698; output: kPlatformDefaultAudio
INFO (16:35:53:856 | 0) 14698; audio jitterbuffer new smooth
INFO (16:35:53:856 | 0) 14702; Thread with name:AudioFileDecoderThread started
INFO (16:35:53:856 | 0) 14698; OutputMixer: start audio file decoder thread successfully
INFO (16:35:53:856 | 0) 14698; OS info: Android
INFO (16:35:53:857 | 1) 14698; [JNI] InitSampleRate Recording 16000
INFO (16:35:53:857 | 0) 14698; [JNI] InitSampleRate playout 16000 , res = 48000
INFO (16:35:53:859 | 2) 14703; Thread with name:jni_audio_capture_thread started
INFO (16:35:53:859 | 0) 14704; Thread with name:jni_audio_render_thread started
INFO (16:35:53:859 | 0) 14698; [JNI] playback device is set to 0
INFO (16:35:53:860 | 1) 14698; Set stereo playback available = 0
INFO (16:35:53:860 | 0) 14698; StereoPlayoutIsAvailable(), output: available=0
INFO (16:35:53:860 | 0) 14698; StereoRecordingIsAvailable(), output: available=0
INFO (16:35:53:863 | 3) 14705; Thread with name:EngineMonitorThread started
INFO (16:35:53:863 | 0) 14698; setMuteStatus, muted: Off
INFO (16:35:53:863 | 0) 14698; setMuteOutput, muted: false
INFO (16:35:53:863 | 0) 14442; [AudioRoute] Bluetooth SCO device disconnected
ERROR (16:35:53:863 | 0) 14442; [AudioRoute] default routing: Speakerphone bluetooth false, current routing: Speakerphone, actual system routing: Speakerphone
INFO (16:35:53:864 | 1) 14442; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Speakerphone, target routing: Earpiece, actual system routing: Speakerphone
INFO (16:35:53:864 | 0) 14442; [AudioRoute] set audio output routing from Speakerphone to Earpiece
INFO (16:35:53:864 | 0) 14706; Thread with name:AudioAsyncTask started
INFO (16:35:53:864 | 0) 14698; Audio Engine Init success
INFO (16:35:53:864 | 0) 14698; [che] chat engine initialized
INFO (16:35:53:864 | 0) 14698; [time] process EngineInitialize takes 9
INFO (16:35:53:864 | 0) 14698; [tactics] config json version:20150101-0000 duallinkd:true poor:u
INFO (16:35:53:864 | 0) 14698; [tactics] parse config for beckon error for tactics size:18
INFO (16:35:53:865 | 1) 14442; [AudioRoute] audio routing changed to Earpiece
INFO (16:35:53:866 | 1) 14698; [vocs] vocs initialized
INFO (16:35:53:866 | 0) 14698; [ap] selected: 47.244.4.122:8000
INFO (16:35:53:867 | 1) 14698; connecting to 47.244.4.122:8000 handle b0f62800, 146
INFO (16:35:53:867 | 0) 14698; [ap] creating channel with 47.244.4.122:8000, ts 2066419, flag: 2
INFO (16:35:53:867 | 0) 14698; [ap] selected: 106.14.12.130:1080
INFO (16:35:53:867 | 0) 14698; [ap] creating channel with 106.14.12.130:1080, ts 2066419, flag: 2
INFO (16:35:53:867 | 0) 14698; [ap] selected: 54.223.118.211:25000
INFO (16:35:53:867 | 0) 14698; [ap] creating channel with 54.223.118.211:25000, ts 2066419, flag: 2
ERROR (16:35:53:867 | 0) 14442; [AudioRoute] default routing: Speakerphone bluetooth false, current routing: Earpiece, actual system routing: Earpiece
INFO (16:35:53:867 | 0) 14698; add ping address 192.168.0.1
INFO (16:35:53:867 | 0) 14698; PING 192.168.0.1:0 16(44) bytes of data
INFO (16:35:53:868 | 1) 14698; CacheManager: save cache to storage elapsed 0
INFO (16:35:53:868 | 0) 14698; [cm] emit join channel signal, size=4
INFO (16:35:53:868 | 0) 14698; [cm] connection state changed from 1 to 2
INFO (16:35:53:868 | 0) 14698; [vocs] lookup channel…
INFO (16:35:53:868 | 0) 14698; [vocs] selected: 118.190.148.38:8000
INFO (16:35:53:868 | 0) 14442; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Earpiece, target routing: Earpiece, actual system routing: Earpiece
INFO (16:35:53:868 | 0) 14698; connecting to 118.190.148.38:8000 handle b0f64380, 175
INFO (16:35:53:868 | 0) 14698; [vocs] report bitrate: a/v/t: 48/400/448
INFO (16:35:53:868 | 0) 14698; [vocs] creating channel with 118.190.148.38:8000, ts 1573461353868…
INFO (16:35:53:869 | 1) 14698; [vocs] selected: 101.201.199.195:1080
INFO (16:35:53:869 | 0) 14698; [vocs] report bitrate: a/v/t: 48/400/448
INFO (16:35:53:869 | 0) 14698; [vocs] creating channel with 101.201.199.195:1080, ts 1573461353869…
INFO (16:35:53:869 | 0) 14698; [vocs] selected: 52.194.158.59:25000
INFO (16:35:53:869 | 0) 14698; [vocs] report bitrate: a/v/t: 48/400/448
INFO (16:35:53:869 | 0) 14698; [vocs] creating channel with 52.194.158.59:25000, ts 1573461353869…
INFO (16:35:53:869 | 0) 14698; [rp] {“rtc.audio.enabled”:true,“che.audio.enable.recording.device”:true}
INFO (16:35:53:869 | 0) 14698; [rp] {“che.audio.output.routing”:1}
INFO (16:35:53:869 | 0) 14698; [rp] {“che.audio.output.routing”:1}
INFO (16:35:53:869 | 0) 14698; [ap/t] tcp connected with 0x6fb0f08180
INFO (16:35:53:869 | 0) 14698; [ap] CdsTdsRequest, session_id: 1E38DACDC6A543DB8B5C5F731AE53651, detail: xiaomi/mi 9/cepheus/cepheus/29/4.14.117-perf-gd7c9fa5, vendor: c645a288dd6a46f895b6b24ade34a89c, system: Android/10, version: 2.9.2, install_
INFO (16:35:53:869 | 0) 14698; [ap] tcp - creating channel with 47.244.4.122:8000, ts 0, flag: 64
INFO (16:35:53:869 | 0) 14698; [ap/u] **responsed from 47.244.4.122:8000, TDS(64).
INFO (16:35:53:869 | 0) 14698; [ap] onAPTdsRes success with config: {“Opensl Test for v2.4.1”:{“A”:{“che.audio.highQuality.enableOpenSL”:false,“che.audio.morph.earsback”:true,“che.audio.opensl”:true}}}, size: 1
INFO (16:35:53:869 | 0) 14698; CacheManager: save cache to storage elapsed 0
INFO (16:35:53:869 | 0) 14698; [rp-tds-Opensl Test for v2.4.1-A] {“che.audio.highQuality.enableOpenSL”:false,“che.audio.morph.earsback”:true,“che.audio.opensl”:true}
INFO (16:35:53:870 | 1) 14706; routing change 1
INFO (16:35:53:870 | 0) 14706; SetHowlingControl enable = 0
INFO (16:35:53:870 | 0) 14706; Application Config module: Route 1, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:35:53:870 | 0) 14706; MID = 29, Routing = 1
INFO (16:35:53:879 | 9) 14698; [ap/t] tcp connected with 0x6fb0f08400
INFO (16:35:53:879 | 0) 14698; [ap] tcp - creating channel with 47.244.4.122:8000, ts 2066419, flag: 2
INFO (16:35:53:888 | 9) 14698; [ap/u] **responsed from 106.14.12.130:1080, TDS(64).
INFO (16:35:53:888 | 0) 14698; [ap/u] **responsed from 54.223.118.211:25000, TDS(64).
INFO (16:35:53:896 | 8) 14698; [rlbs/u] responsed from 54.223.118.211:9700 with servers 14.17.81.121:8913
INFO (16:35:53:896 | 0) 14698; [rs] updateServers 14.17.81.121:8913, priority 3
INFO (16:35:53:896 | 0) 14698; [rs] updateServers 114.236.93.137:8913, priority 3
INFO (16:35:53:896 | 0) 14698; [rs] updateServers 117.21.184.25:8913, priority 3
INFO (16:35:53:912 | 16) 14698; [vocs/t] tcp create channel connected with 0x6fb0f08680
INFO (16:35:53:912 | 0) 14698; [vocs] report bitrate: a/v/t: 48/400/448
INFO (16:35:53:912 | 0) 14698; [vocs] tcp - creating channel with 118.190.148.38:8000, ts 1573461353912…
INFO (16:35:53:928 | 16) 14698; [vocs/u] **responsed from 101.201.199.195:1080, 3 vos, elapsed 79, server ts 1573461354186, wan ip 61.140.94.99
INFO (16:35:53:928 | 0) 14698; [vos] added server: 14.17.127.83:4007
INFO (16:35:53:928 | 0) 14698; [vos] added server: 14.17.81.117:4004
INFO (16:35:53:928 | 0) 14698; [ch0] vos initialized
INFO (16:35:53:928 | 0) 14698; [vos] selected: 14.17.81.117:4004
ERROR (16:35:53:929 | 1) 14698; [ch0] login strategy=2
INFO (16:35:53:929 | 0) 14698; [ds]: ver 1 ds ‘{“streamType”:1}’
INFO (16:35:53:929 | 0) 14698; [ch0] Login VOS (proto:12, cid:136423072, uid:1404802960, ts:1573461353929, ticket size:104 detail size: 302 ds:1 stream:+A-V) 2: 14.17.81.117:4004
INFO (16:35:53:929 | 0) 14698; add ping address 61.140.94.99
INFO (16:35:53:929 | 0) 14698; PING 61.140.94.99:0 16(44) bytes of data
INFO (16:35:53:930 | 1) 14698; [ap/t] **responsed from 47.244.4.122:8000, STUN(2).
INFO (16:35:53:930 | 0) 14698; [stun] added server: 144.123.11.22:7000
INFO (16:35:53:930 | 0) 14698; [stun] added server: 115.239.228.109:7000
INFO (16:35:53:930 | 0) 14698; [stun] added server: 119.84.82.45:7000
INFO (16:35:53:931 | 1) 14698; [stun] selected: 119.84.82.45:7000
INFO (16:35:53:931 | 0) 14698; [stun10] login strategy=2
INFO (16:35:53:931 | 0) 14698; [stun10] localip is 192.168.0.122, address: 0.0.0.0:37261, port: 37261, combined: 192.168.0.122:37261, ip: 2046863552, port: 36241
INFO (16:35:53:931 | 0) 14698; [stun] selected: 115.239.228.109:7000
INFO (16:35:53:931 | 0) 14698; [stun11] login strategy=2
INFO (16:35:53:931 | 0) 14698; [stun11] localip is 192.168.0.122, address: 0.0.0.0:37261, port: 37261, combined: 192.168.0.122:37261, ip: 2046863552, port: 36241
INFO (16:35:53:936 | 5) 14698; [ap/u] **responsed from 47.244.4.122:8000, STUN(2).
INFO (16:35:53:937 | 1) 14442; [AudioRoute] onServiceConnected 1 =? headset(1)
INFO (16:35:53:937 | 0) 14442; [AudioRoute] on BT service connected: 1 android.bluetooth.BluetoothHeadset@bfa50c2
INFO (16:35:53:948 | 11) 14698; [ap/u] **responsed from 54.223.118.211:25000, STUN(2).
INFO (16:35:53:954 | 6) 14698; [ap/u] **responsed from 106.14.12.130:1080, STUN(2).
INFO (16:35:53:955 | 1) 14698; [vocs/u] **responsed from 118.190.148.38:8000, 3 vos, elapsed 106, server ts 1573461354199, wan ip 61.140.94.99
INFO (16:35:53:968 | 13) 14698; [stun11] onLoggedIn with code: 0
INFO (16:35:53:970 | 2) 14706; routing change 1
INFO (16:35:53:970 | 0) 14706; SetHowlingControl enable = 0
INFO (16:35:53:970 | 0) 14706; Application Config module: Route 1, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:35:53:970 | 0) 14706; MID = 29, Routing = 1
INFO (16:35:53:975 | 5) 14698; [stun10] onLoggedIn with code: 0
INFO (16:35:53:986 | 11) 14698; updateActiveVosList: [“14.17.81.117:4004”]
INFO (16:35:53:986 | 0) 14698; [cm] connection state changed from 2 to 3
INFO (16:35:53:986 | 0) 14698; [che] start call begins
INFO (16:35:53:986 | 0) 14698; opensl 1 android ver 29 banned level 22
INFO (16:35:53:986 | 0) 14698; reset objects active 1 opensl 1
INFO (16:35:53:986 | 0) 14698; reset objects active 1 opensl 1
ERROR (16:35:53:986 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 1
ERROR (16:35:53:986 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 170
ERROR (16:35:53:986 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 1
ERROR (16:35:53:986 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 158
INFO (16:35:53:986 | 0) 14698; use android OPENSL device recording
INFO (16:35:53:987 | 1) 14698; output: NOT_SUPPORTED
INFO (16:35:53:987 | 0) 14698; Output: audioLayer=0
INFO (16:35:53:987 | 0) 14698; ADM solution changed,but ADM initialized , restart ADM
INFO (16:35:54: 19 | 0) 14698; ADM solution changed,but ADM initialized , restart ADM switch layer 0 0
INFO (16:35:54: 19 | 0) 14698; output: kAndroidOpenslAudio
INFO (16:35:54: 22 | 3) 14698; OS info: Android
INFO (16:35:54: 23 | 1) 14698; StereoPlayoutIsAvailable(), output: available=0
INFO (16:35:54: 23 | 0) 14698; StereoRecordingIsAvailable(), output: available=0
INFO (16:35:54: 24 | 1) 14707; Thread with name:EngineMonitorThread started
INFO (16:35:54: 24 | 0) 14698; Update settings: mode 3, rec_source 7, rec_fs 16000, builtin aec 0
INFO (16:35:54: 24 | 0) 14698; Set Application Mode in RTC Engine to No. 0 UC 0
INFO (16:35:54: 24 | 0) 14698; SetCodec by type : No. 75
INFO (16:35:54: 25 | 1) 14698; build AEC 1 SL = 1 simulator = 0 route = -1 in SR =16000 out SR = 16000 src = 7 stereo=1 streamType = 0 audiomode = 3
INFO (16:35:54: 74 | 49) 14698; audioMode (Opensl) is set to 3
INFO (16:35:54: 74 | 0) 14698; [che] start call returns 0, elapsed 87
INFO (16:35:54: 74 | 0) 14698; [time] process EngineStartCall takes 87
INFO (16:35:54: 74 | 0) 14706; opensl playback rate : 16000, channels : 2
INFO (16:35:54: 74 | 0) 14698; setNetEQMinimumPlayoutDelay delay(0)
INFO (16:35:54: 74 | 0) 14698; join channel success: cname ‘4258534384659849’ uid 1404802960 elapsed 226
INFO (16:35:54: 74 | 0) 14698; CacheManager: save cache to storage elapsed 0
INFO (16:35:54: 75 | 1) 14698; audio setPeerAudioMuteStatus: uid 4182522828 muted 0
ERROR (16:35:54: 75 | 0) 14698; onPeerAudioMuteStatus: uid -112444468 already unmuted
INFO (16:35:54: 75 | 0) 14698; [pm] peer 4182522828 is online
INFO (16:35:54: 75 | 0) 14698; [che] onPeerJoined: m_validPeers.insert uid 4182522828, m_validPeers.size() 1
INFO (16:35:54: 75 | 0) 14698; onFirstRemoteAudioFrame uid 4182522828 codec 85 elapsed 226
INFO (16:35:54: 75 | 0) 14698; onTracerFirstRemoteAudio uid 4182522828 codec 85 elapsed 226
INFO (16:35:54: 75 | 0) 14698; audio jitterbuffer new smooth
INFO (16:35:54: 75 | 0) 14698; invoked by unmute, ignore. uid = 4182522828
INFO (16:35:54: 76 | 1) 14698; [ch0] **VOS response to login request (res 0 elapsed 228, server ts 1573461354269, s-c:193) from 14.17.81.117:4004, and current dest server 14.17.81.117:4004
INFO (16:35:54: 77 | 1) 14698; updateActiveVosList: [“14.17.81.117:4004”]
INFO (16:35:54: 77 | 0) 14698; CacheManager: save cache to storage elapsed 0
INFO (16:35:54: 77 | 0) 14698; [stun11] onNotified with 2
INFO (16:35:54: 77 | 0) 14698; [rp] {“che.audio.output.routing”:1}
WARN (16:35:54: 77 | 0) 14698; unrecognized uri 23 from server 119.84.82.45:7000
INFO (16:35:54: 77 | 0) 14698; [stun10] onNotified with 1
INFO (16:35:54: 78 | 1) 14698; [peer20] try to touch peer: 4182522828 with lan: 192.168.0.110:55504, wan: 61.140.94.99:26296
INFO (16:35:54: 78 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:54: 78 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:54: 78 | 0) 14698; [stun10] onNotified with 1
INFO (16:35:54: 78 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:54: 78 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:54: 85 | 7) 14698; [ch0] rtt: 10
INFO (16:35:54: 89 | 4) 14706; opensl Player object created, play_SR = 16000 play_channel = 2 music = 0
INFO (16:35:54: 93 | 4) 14698; [peer20] 192.168.0.110:55504 - rtt: 16
INFO (16:35:54: 93 | 0) 14698; [peer20] connected with peer uid: 4182522828
INFO (16:35:54: 94 | 1) 14698; [peer20] sync dataset, version: 1, type: 1
INFO (16:35:54: 95 | 1) 14698; [stun10] onNotified with 1
INFO (16:35:54: 95 | 0) 14698; [stun10] onNotified with 1
INFO (16:35:54: 97 | 2) 14709; Thread with name:opensl_play_thread started
INFO (16:35:54: 97 | 0) 14706; StartPlayout complete
INFO (16:35:54: 97 | 0) 14706; StartSend
INFO (16:35:54: 97 | 0) 14706; opensl recording rate : 16000, channels : 1
WARN (16:35:54: 97 | 0) 14709; Audio playout underrun: id 1 msg 1
INFO (16:35:54:102 | 5) 14698; [peer20] sync dataset, version: 1, type: 1
INFO (16:35:54:103 | 1) 14698; [p2p] sdp: received capabilities: 0: [0,1],
INFO (16:35:54:106 | 3) 14698; [peer20] recv sync dataset, version 0 to 1, type 0 to 1
INFO (16:35:54:124 | 18) 14698; [pm] peer 4182522828 has enabled local video
INFO (16:35:54:129 | 5) 14698; [stun11] start response, threshold: 0, label:
INFO (16:35:54:129 | 0) 14698; [p2p] start response with label: , threshold: 0
INFO (16:35:54:134 | 5) 14698; [stun10] start response, threshold: 0, label:
INFO (16:35:54:166 | 32) 14706; opensl recorder object created, rec_SR = 16000 rec_channel = 1 source = 7
INFO (16:35:54:166 | 0) 14706; Starting recording thread
INFO (16:35:54:167 | 1) 14714; Thread with name:opensl_rec_thread started
ERROR (16:35:54:173 | 6) 14442; [AudioRoute] default routing: Speakerphone bluetooth false, current routing: Earpiece, actual system routing: Earpiece
INFO (16:35:54:175 | 2) 14698; [stun11] onNotified with 1
INFO (16:35:54:177 | 2) 14706; SetLocalState: state 1 error 0
INFO (16:35:54:177 | 0) 14706; StartRecording complete
INFO (16:35:54:179 | 2) 14706; routing change 1
INFO (16:35:54:179 | 0) 14706; SetHowlingControl enable = 0
INFO (16:35:54:179 | 0) 14706; Application Config module: Route 1, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:35:54:179 | 0) 14706; MID = 29, Routing = 1
INFO (16:35:54:179 | 0) 14706; output: NOT_SUPPORTED
INFO (16:35:54:179 | 0) 14706; Output: audioLayer=7
INFO (16:35:54:180 | 1) 14706; routing change 1
INFO (16:35:54:180 | 0) 14706; SetHowlingControl enable = 0
INFO (16:35:54:180 | 0) 14706; Application Config module: Route 1, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:35:54:180 | 0) 14706; MID = 29, Routing = 1
INFO (16:35:54:183 | 3) 14442; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Earpiece, target routing: Earpiece, actual system routing: Earpiece
INFO (16:35:54:303 | 120) 14710; SetLocalState: state 2 error 0
INFO (16:35:54:303 | 0) 14698; TRACER: onFirstLocalAudioFrame codec 75 elapsed 455
INFO (16:35:54:310 | 7) 14698; [stun11] onNotified with 1
INFO (16:35:54:368 | 58) 14698; [stun10] onNotified with 1
INFO (16:35:54:368 | 0) 14698; [stun10] onNotified with 1
INFO (16:35:54:469 | 101) 14698; [stun11] onNotified with 1
INFO (16:35:54:644 | 175) 14698; [stun10] onNotified with 1
INFO (16:35:54:644 | 0) 14698; [stun10] onNotified with 1
INFO (16:35:54:692 | 48) 14698; [stun11] onNotified with 1
INFO (16:35:55: 15 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:56: 10 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:56: 15 | 5) 14698; [stun10] onNotified with 1
WARN (16:35:56:182 | 167) 14710; captured signal all 0s
WARN (16:35:56:182 | 0) 14710; audio device captured signal all 0s
WARN (16:35:56:282 | 100) 14710; captured signal too small
WARN (16:35:56:282 | 0) 14710; audio device captured signal too small
INFO (16:35:57:278 | 0) 14442; API call to setEnableSpeakerphone to true
ERROR (16:35:57:286 | 8) 14442; [AudioRoute] default routing: Speakerphone bluetooth false, current routing: Earpiece, actual system routing: Earpiece
INFO (16:35:57:288 | 2) 14442; [AudioRoute] reset(force) audio routing, default routing: Speakerphone, current routing: Earpiece, target routing: Speakerphone, actual system routing:Earpiece
INFO (16:35:57:288 | 0) 14442; [AudioRoute] set audio output routing from Earpiece to Speakerphone
INFO (16:35:57:291 | 3) 14442; [AudioRoute] audio routing changed to Speakerphone
INFO (16:35:57:293 | 2) 14698; [rp] {“che.audio.output.routing”:3}
INFO (16:35:57:293 | 0) 14698; [rp] {“che.audio.output.routing”:3}
INFO (16:35:57:293 | 0) 14706; routing change 3
INFO (16:35:57:293 | 0) 14706; SetHowlingControl enable = 1
INFO (16:35:57:293 | 0) 14706; Application Config module: Route 3, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:35:57:293 | 0) 14706; MID = 29, Routing = 3
INFO (16:35:57:393 | 100) 14706; routing change 3
INFO (16:35:57:394 | 1) 14706; SetHowlingControl enable = 1
INFO (16:35:57:394 | 0) 14706; Application Config module: Route 3, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:35:57:394 | 0) 14706; MID = 29, Routing = 3
INFO (16:35:58: 2 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:58: 7 | 5) 14698; [stun10] onNotified with 1
WARN (16:35:58:186 | 179) 14710; captured signal all 0s
WARN (16:35:58:186 | 0) 14710; audio device captured signal all 0s
INFO (16:35:58:526 | 340) 14710; near-end signal is suppressed by NLP of AEC
WARN (16:35:58:527 | 1) 14710; captured signal too small
WARN (16:35:58:527 | 0) 14710; audio device captured signal too small
INFO (16:35:58:840 | 313) 14698; [rs] **report stats: seq: 50, report list size 0, tx/rx: 8535/2400, cache size: 0
INFO (16:35:58:840 | 0) 14698; [rs] report server1: 14.17.81.121:8913
INFO (16:35:58:855 | 15) 14699; [dns] parsed ip 67.228.235.93
INFO (16:35:58:869 | 14) 14699; [dns] parsed ip 14.215.177.38
INFO (16:35:58:869 | 0) 14699; [dns] parsed ip 14.215.177.39
INFO (16:35:58:946 | 77) 14698; [dns] parsed ip 118.190.148.38
INFO (16:35:58:946 | 0) 14698; [dns] parsed ip 101.201.199.195
INFO (16:35:58:946 | 0) 14698; [ap] onParsedDns with err 0, 118.190.148.38, 101.201.199.195,
INFO (16:35:58:947 | 1) 14698; CacheManager: save cache to storage elapsed 1
INFO (16:35:58:949 | 2) 14699; [dns] parsed ip 118.190.148.38
INFO (16:35:58:949 | 0) 14699; [dns] parsed ip 101.201.199.195
INFO (16:35:59: 26 | 0) 14698; [stun11] onNotified with 1
INFO (16:35:59: 31 | 5) 14698; [stun10] onNotified with 1
INFO (16:36: 0: 79 | 48) 14698; [peer20] touch timedout with 61.140.94.99:26296
INFO (16:36: 0:121 | 42) 14709; Audio statistics - play count: playout count = 200 signal level: far_in = 109
WARN (16:36: 0:198 | 77) 14710; captured signal all 0s
WARN (16:36: 0:198 | 0) 14710; audio device captured signal all 0s
INFO (16:36: 0:198 | 0) 14710; Audio statistics - rec count: record count = 200 signal level: near_in = 0, near_out = 59 encode_in = 0
WARN (16:36: 0:540 | 342) 14710; captured signal too small
WARN (16:36: 0:540 | 0) 14710; audio device captured signal too small
INFO (16:36: 1: 9 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 1: 14 | 5) 14698; [stun10] onNotified with 1
INFO (16:36: 2: 6 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 2: 12 | 6) 14698; [stun10] onNotified with 1
WARN (16:36: 2:198 | 186) 14710; captured signal all 0s
WARN (16:36: 2:198 | 0) 14710; audio device captured signal all 0s
INFO (16:36: 2:539 | 341) 14710; near-end signal is suppressed by NLP of AEC
WARN (16:36: 2:540 | 1) 14710; captured signal too small
WARN (16:36: 2:540 | 0) 14710; audio device captured signal too small
INFO (16:36: 3: 11 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 3: 16 | 5) 14698; [stun10] onNotified with 1
INFO (16:36: 3:848 | 832) 14442; API call to setEnableSpeakerphone to false
ERROR (16:36: 3:854 | 6) 14442; [AudioRoute] default routing: Speakerphone bluetooth false, current routing: Speakerphone, actual system routing: Speakerphone
INFO (16:36: 3:855 | 1) 14442; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Speakerphone, target routing: Earpiece, actual system routing: Speakerphone
INFO (16:36: 3:855 | 0) 14442; [AudioRoute] set audio output routing from Speakerphone to Earpiece
INFO (16:36: 3:866 | 11) 14698; [rp] {“che.audio.output.routing”:1}
INFO (16:36: 3:866 | 0) 14442; [AudioRoute] audio routing changed to Earpiece
INFO (16:36: 3:867 | 1) 14706; routing change 1
INFO (16:36: 3:867 | 0) 14706; SetHowlingControl enable = 0
INFO (16:36: 3:867 | 0) 14706; Application Config module: Route 1, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:36: 3:867 | 0) 14706; MID = 29, Routing = 1
INFO (16:36: 3:867 | 0) 14698; [rp] {“che.audio.output.routing”:1}
INFO (16:36: 3:867 | 0) 14706; routing change 1
INFO (16:36: 3:867 | 0) 14706; SetHowlingControl enable = 0
INFO (16:36: 3:867 | 0) 14706; Application Config module: Route 1, NS on, AEC on, AGC on, BSS off, HC on
INFO (16:36: 3:867 | 0) 14706; MID = 29, Routing = 1
INFO (16:36: 4: 11 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 4: 17 | 6) 14698; [stun10] onNotified with 1
INFO (16:36: 4:709 | 692) 14714; Opensl recorder thread callbacks freq 103.38Hz
WARN (16:36: 4:711 | 2) 14710; captured signal too small
WARN (16:36: 4:711 | 0) 14710; audio device captured signal too small
INFO (16:36: 6: 12 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 6: 18 | 6) 14698; [stun10] onNotified with 1
INFO (16:36: 6:709 | 691) 14710; near-end signal is suppressed by NLP of AEC
WARN (16:36: 6:710 | 1) 14710; captured signal too small
WARN (16:36: 6:710 | 0) 14710; audio device captured signal too small
INFO (16:36: 7: 5 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 7: 9 | 4) 14698; [stun10] onNotified with 1
INFO (16:36: 8: 5 | 0) 14698; [stun11] onNotified with 1
INFO (16:36: 8: 10 | 5) 14698; [stun10] onNotified with 1
INFO (16:36: 8:132 | 122) 14709; Audio playout glitch detected, will lower CPU complexity
WARN (16:36: 8:207 | 75) 14710; captured signal all 0s
WARN (16:36: 8:207 | 0) 14710; audio device captured signal all 0s
INFO (16:36: 8:384 | 177) 14698; [pm] peer 4182522828 is offline: quit(0)
INFO (16:36: 8:384 | 0) 14698; [che] onPeerOffline: uid 4182522828 STOPPED by OFFLINE, and to be erased, m_validPeers.size() 1
INFO (16:36: 8:384 | 0) 14698; [che] clearPeerInMap: uid 4182522828 to be removed
INFO (16:36: 8:384 | 0) 14698; audio setPeerAudioMuteStatus: uid 4182522828 muted 1
INFO (16:36: 8:384 | 0) 14698; audio flushPeerNetEQBuffer: uid 4182522828
INFO (16:36: 8:384 | 0) 14698; [pm] unsetPeerLocalMuteVideoState uid: 4182522828, priority: 1
INFO (16:36: 8:384 | 0) 14698; [pm] unsetPeerExpectedVideoStreamType uid: 4182522828, priority: 1
INFO (16:36: 8:394 | 10) 14442; API call to leave channel
INFO (16:36: 8:394 | 0) 14442; [AudioRoute] Monitor stop state, reset
INFO (16:36: 8:395 | 1) 14442; [AudioRoute] Monitor stopped
INFO (16:36: 8:395 | 0) 14442; Detach external video source from pipeline
INFO (16:36: 8:395 | 0) 14442; android destroy
INFO (16:36: 8:395 | 0) 14698; [cm] emit leave channel signal
WARN (16:36: 8:711 | 316) 14710; captured signal too small
WARN (16:36: 8:711 | 0) 14710; audio device captured signal too small
INFO (16:36: 8:719 | 8) 14698; [che] stopCall begins
INFO (16:36: 8:719 | 0) 14698; Stopping recorder thread
INFO (16:36: 8:823 | 104) 14714; Opensl recorder thread callbacks freq 82.28Hz
INFO (16:36: 8:823 | 0) 14714; Opensl recorder thread exit as requested
INFO (16:36: 8:837 | 14) 14698; Opensl recorder destroyed
INFO (16:36: 8:837 | 0) 14698; SetLocalState: state 0 error 0
INFO (16:36: 8:837 | 0) 14698; StopRecording complete
INFO (16:36: 8:837 | 0) 14698; Stopping opensl player thread
INFO (16:36: 8:838 | 1) 14709; Opensl player thread exit as requested
INFO (16:36: 8:853 | 15) 14698; StopPlayout complete
INFO (16:36: 8:901 | 48) 14698; audioMode (Opensl) is set to 0
INFO (16:36: 8:901 | 0) 14698; [che] stop call returns 0, elapsed 183
INFO (16:36: 8:901 | 0) 14698; [time] process EngineStopCall takes 183
INFO (16:36: 8:902 | 1) 14698; [rs] **report stats: seq: 67, report list size 5, tx/rx: 11575/2976, cache size: 0
INFO (16:36: 8:902 | 0) 14698; [rs] report server1: 14.17.81.121:8913
INFO (16:36: 8:902 | 0) 14698; [cm] connection state changed from 3 to 1
INFO (16:36: 8:902 | 0) 14698; **CALL STATS: duration 14s, tx 145.296K bytes, rx 70.644K bytes, total 215.940K bytes
INFO (16:36: 8:903 | 1) 14698; CacheManager: save cache to storage elapsed 0
INFO (16:36: 8:904 | 1) 14698; [ch0] vos destroyed
INFO (16:36: 8:904 | 0) 14698; delRef of media engine, ref=0
INFO (16:36: 8:904 | 0) 14698; [che] chat engine destroying
INFO (16:36: 8:904 | 0) 14698; [che] stopCall begins
INFO (16:36: 8:904 | 0) 14698; [che] stop call returns -1, elapsed 0
INFO (16:36: 8:924 | 20) 14698; Stopping opensl player thread
INFO (16:36: 8:924 | 0) 14698; Stopping recorder thread
INFO (16:36: 8:924 | 0) 14698; Opensl recorder destroyed
ERROR (16:36: 8:936 | 12) 14698; VoiceEngine::SetAndroidObjects engine context 1
ERROR (16:36: 8:936 | 0) 14698; VoiceEngine::SetAndroidObjects engine context 170
INFO (16:36: 8:936 | 0) 14698; [che] chat engine destroyed
INFO (16:36: 8:937 | 1) 14698; ***CALL END
INFO (16:36: 8:937 | 0) 14698; onAudioStatusChanged enable audio
INFO (16:36: 8:938 | 1) 14698; [MIO] media io controller destroyed
INFO (16:36: 8:938 | 0) 14442; async task worker thread exited gracefully
INFO (16:36: 8:938 | 0) 14442; [API] userManagerClearUserViews

你在 joinChannel 前,调用一下:

mRtcEngine.setParameters("{\"che.audio.opensl\": false}");

加上去了。还是录音失败。

能不能提供下完整 sdk log?日志前半部分不全。

如果调用了上述接口后还是有问题,那可能就是录音权限获取逻辑有问题了。需要在 joinChannel 前,就获取到 录音权限,你那边的处理逻辑,是这样的吗?能否提供下这部分的具体代码?

或者你先直接用 example,测试看下正常否
https://download.agora.io/sdk/release/Agora_Native_SDK_for_Android_v2_9_2_VOICE.zip?_ga=2.263644172.1644038905.1573438199-1327888702.1570587411