question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sound Echo - iOS to iOS Voice Calls - Router is Speaker

See original GitHub issue

We are facing echoes when calling from an iOS device to another iOS device. It only works if the default sound device is not the speaker (I know because I used to see the default was Phone a long time back in the previous versions but not sure which) or call is muted. How to achieve set to Phone?

Description:

We added SDK to our project (Android & iOS) and made it work. There is no call echo when we call from iOS to Android or Android to iOS, but calling from iOS to iOS there is a huge echo because the call audio session (sound device) is set to Speaker by default.

Please note that when we mute the audio (builder.setAudioMuted(true)) and start the call and then the audio is unmuted during the call then there is no echo at all.

To conclude, we need to start the call with any router rather than the speaker. is there any way in iOS SDK to set the sound device to Phone or anything else rather than speaker?

Steps to reproduce:

  1. Call from iOS A to iOS B, default sound device is the speaker by default set by SDK on iOS device A
  2. Pick the call on iOS device B
  3. Echo happens

Expected behavior:

The expected behavior is to have no echo when calling from iOS to iOS

Client information:

  • Browser / app version: iPhone 13 pro max, iPhone 12 pro max, iPad Air 2
  • Operating System: iOS 15.3.1, iPadOS 15.0.2

Additional information:

JitsiMeet iOS SDK Version: 4.1.0

Our code to join the call:

let jitsiMeetView = JitsiMeetView()
        jitsiMeetView.delegate = self
        self.jitsiMeetView = jitsiMeetView
        let options = JitsiMeetConferenceOptions.fromBuilder { (builder) in
            builder.room = roomName.replacingOccurrences(of: "&", with: "-")
            // Settings for audio and video
            builder.setAudioOnly(!hasVideo)
            if hasVideo {
                builder.setAudioMuted(false)
                builder.setVideoMuted(false)
            }
            builder.setSubject(roomName)
            builder.userInfo = JitsiMeetUserInfo(displayName: MyProfile.shared.profile.name,
                                                 andEmail: nil,
                                                 andAvatar: MXURL(mxContentURI: MyProfile.shared.profile.defaultPicture?.path ?? "")?.contentURL())
            if let UUID = callUUID {
                builder.setCall(UUID)
            }
            builder.setCallHandle(Config.url.callHandle)

            if isDirect {
                builder.setFeatureFlag("meeting-name.enabled", withBoolean: false)
                builder.setFeatureFlag("raise-hand.enabled", withBoolean: false)
            }
            builder.setFeatureFlag("security-options.enabled", withBoolean: false)
            builder.setConfigOverride("localFlipX", withBoolean: false)
        }
        jitsiMeetView.join(options)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
saghulcommented, Mar 25, 2022

Fantastic news!

1reaction
mehrshadJalilmaircommented, Mar 23, 2022

You meant “soon” when you said “soon”! We’ve updated to v5.0.0. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Echo on speaker calls iphone 11 - Apple Community
I can hear my voice echo when i'm talking in a video call with someone and also on speaker. My husband has the...
Read more >
Troubleshooting Echo Problems between IP Phones and IOS ...
This document describes how to troubleshoot and eliminate echo where possible in IP Telephony networks with Cisco IOS? gateways.
Read more >
Phone Echoing: Common Issues & How to Fix Them
Speakerphone reverb : Sounds from the speaker are picked up by the microphone and are transmitted back as an echo on a phone...
Read more >
iOS 13.1 still won't allow me to change VO audio destination ...
When using iPhone connected to an echo, for example, VoiceOver will remain on the phone whilst the audio goes through the speaker. So...
Read more >
How to Fix Echo on Facetime on Your iPhone - Alphr
The first thing to check is your volume levels. An echo is present whenever the iPhone's microphone picks up sound over a certain...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found