Open c4zhutia opened 1 month ago
For me i comment these code and in the livekitSample class i add the type of microphone when create rtcSource in the pulishMicrophone function and then it works well and no echoes. Maybe it is the problem of sampleRate, but I am not very familiar with audio. I'm glad to discuss any further.
Thank you. Did you test the echo on andriod? or IOS? I found the code: Only on IOS, DefaultMirophoneSampleRate differs from DefaultSampleRate.
Hello,
I have an agent and a participant in the room, and the participant can talk to the agent and the agent will talk back to the participant. However, if a participant is using speaker inside of earphone, the voice of agent will be recorded by microphone and send the voice to agent back. Once the agent hear the voice, it will stop current conversation and instantly talk back to the participant. This kind of ping-pong situation makes my app totally unusable.
I have checked that the newAudioSource.Options.EchoCancellation is set to true. It seems like it does not work.