Meonardo / janus-videoroom-ios

An iOS AppRTC example for janus videoroom plugin, written in Swift.
16 stars 5 forks source link

echo/noise problem with speaker #10

Closed fukemy closed 2 years ago

fukemy commented 2 years ago

hi, i got echo problem when set speakerOn(), did u test with this case?:

let mandatoryConstraints =
            ["googEchoCancellation"        : "false",
             "echoCancellation"            : "false",
             "googNoiseSuppression"        : "false",
             "googCpuOveruseDetection"     : "false"]
        // Define media constraints. DtlsSrtpKeyAgreement is required to be true to be able to connect with web browsers.
        let constraints = RTCMediaConstraints(mandatoryConstraints: mandatoryConstraints,
                                              optionalConstraints: ["DtlsSrtpKeyAgreement": kRTCMediaConstraintsValueTrue])
Meonardo commented 2 years ago

hi, i got echo problem when set speakerOn(), did u test with this case?:

Hi, sorry for the late reply, what is your test environment?

Meonardo commented 2 years ago

googEchoCancellation ... first time I saw these constants, maybe they're not working in iOS platform(if these value turn to true). Did you accidentally have your two devices with both mic on in the same room?

fukemy commented 2 years ago

it's still make echo when 2 ios device using speaker (small closed room), i can hear the voice is double

Meonardo commented 2 years ago

2 ios device using speaker (small closed room)

that's make sense, I think its normal phenomenon. Can you try to use FaceTime audio to test this usecase?

fukemy commented 2 years ago

i tried viber, facetime, and it's work normally. only my app make echo... i'm trying to fix this by searching all issues that related to echo problem

fukemy commented 2 years ago

i think when using speaker, the voice from speaker(which send from A) is recorded then send back to A

fukemy commented 2 years ago

close because found problem