hudamalmsteen / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

Background noise on outgoing audio #901

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.make phone call with csipsimple
2.person on other end hears lound hissing in background
3.

What is the expected output? What do you see instead?
No bagrgound noise is expected but I get some

What version of the product are you using? On what operating system?
r800 nightly build on 2.1 on HTC magic 

Please provide any additional information below.
I don't think it is a hardware isssue as I do not have this problem with the 
3CX phone.

Original issue reported on code.google.com by dbos1...@gmail.com on 20 Apr 2011 at 7:47

GoogleCodeExporter commented 9 years ago
I have noticed the same problem on my HTC Legend, probably this issue should be 
merged with 301.
CsipSimple is the best sip client on android, but audio quality unfortunately 
is not the best, at least on some device.
I usually use CsipSimple on 3g, and at the beginning I thought the problem was 
the connection, probably what I noticed started with the changes in what I 
think is the "audio driver", to make Samsung Galaxy user experience better.
Also in my case 3CXphone, using pjsip as Regis said, performs better.

On CsipSimple I tried a lot of configuration with codec g.729/gsm with or 
without echo cancellation, using less cpu as possible, but without the 
performance of 3cx.

I hope the work on video branch brings gifts also on the audio side.

Thanks

Original comment by Gianluca...@gmail.com on 22 Apr 2011 at 4:51

GoogleCodeExporter commented 9 years ago
I'm not sure if it is the same problem as 301.   The noise is more of a 
constant background noise than popping.  People say it sounds as if I am 
outside near traffic.  Other than that I prefer CsipSimple to 3CX as well.

Original comment by dbos1...@gmail.com on 22 Apr 2011 at 5:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Similar behavior on Samsung i9003 Galaxy SL (Android 2.2.1, csipsimple r615).
When I call, the called party hears noise and extremely quiet speach. Changing 
the settings (Initial Audio Stream Volume, Codecs, etc.) does not help.
It is curios that when they call me - both parties hear each other well.

Original comment by uali...@gmail.com on 25 Apr 2011 at 1:29

GoogleCodeExporter commented 9 years ago
I should have added that I use csipsimple in the office on Wi-Fi and the call 
control is on Asterisk, the codec is G711Ulaw.

Original comment by uali...@gmail.com on 25 Apr 2011 at 1:36

GoogleCodeExporter commented 9 years ago
I have the same problem on a brand new HTC Evo 4G (Sprint).  I've tried every 
SIP client I can find including the one built into Gingerbread and all have the 
same problem.  The outgoing background noise is incredible and makes it almost 
unusable.

Are there any ideas out there on how this can be fixed?

Original comment by matt.edl...@gmail.com on 20 Jul 2011 at 12:46

GoogleCodeExporter commented 9 years ago
In CsipSimple go to Settings/Media/Micro_amplification and turn it way down (I 
have it at 0.1) and it seems to improve it  somewhat.  That's on an HTC Magic.  
 Hope that helps.

Original comment by dbos1...@gmail.com on 20 Jul 2011 at 1:26

GoogleCodeExporter commented 9 years ago
same issue with r944 & samsing I9003 gb 2.3.4 (rooted)
test env is on a lan to an asterisk box echoing (app Echo() )
I've tried with the same phone to call the asterisk box via an external sip 
number and the regular gsm phone functions of the phone, and the sound is 
perfect, so its not issue with the hardware (mic malfunction)
I've tried all the possible mic settings, no luck, the samsung hack, no luck, 
settings described in the faq, no luck

Original comment by cerien.j...@gmail.com on 25 Aug 2011 at 3:09

GoogleCodeExporter commented 9 years ago
I ocnfirm - same problem with samsung i9003 after upgrade to gb 2.3.4
sound low, and covered by a background noise

Original comment by leplong...@gmail.com on 30 Aug 2011 at 2:17

GoogleCodeExporter commented 9 years ago
I have the same problem in Motorola Atrix, Android 2.2.1, i cant make call 
because the background noise...

Original comment by batmanc...@gmail.com on 30 Aug 2011 at 6:19

GoogleCodeExporter commented 9 years ago
I am pretty sure that on Samsung 9003 it is some hardware or core issue because 
it is the same with different android versions and sip clients.

Original comment by uali...@gmail.com on 30 Aug 2011 at 7:13

GoogleCodeExporter commented 9 years ago
It happens with lots of different SIP clients for me (Evo 4g) as well, 
but it doesn't happen for normal voice calls.  My only guess is that 
the native calling software does a better job cleaning up what it gets 
from the mic (or maybe it has better access to the hardware).

Original comment by matt.edl...@gmail.com on 30 Aug 2011 at 7:16

GoogleCodeExporter commented 9 years ago
@matt : yes stock gsm app can directly bind gsm chipset to micro hardware. It 
ensure lower latency and better quality.

In fact, the android os prior to android 2.3 is not designed for voip calls. 
The only thing sip apps do is trying to workaround with the available api.
On android 2.3 things are different. The fact that google introduced a stock 
sip application also imply that there is now something in the android api to do 
voice over ip calls. But ... but... manufacturer did not managed that very 
well, and many of them didn't take the new api into account.
I was very optimistic at the begin with this new api and first I set by default 
these new settings in csipsimple. Unfortunately I noticed quickly than HTC did 
incomplete upgrade to 2.3 on this point, and that samsung (as usually with 
their audio driver), did crappy things.

So, now things are very fuzzy, and I'm not really able to tell for a given 
device what are the best settings. However, you as user, can try to hack. 
CSipSimple has an expert setting mode (see the wiki page about that), that 
allow to tweak how the application use the audio driver.
It should allow you to do everything that can be done with your device. The 
problem is that there is many options ;)
But worth to try first :
* micro source option : "default" is the legacy one that should work for most 
device. Then depending on device, "mic" and "camcorder" can correspond to 
different micro on the device. "voice_call" is the one used for voice calls (on 
many implementations it plug directly micro to the gsm chipset which mean that 
the application is not able to get the frames from the micro). 
"voice_communication" which is valid only for 2.3 and upper, is the one from 
the new api. According to docs, it should be very good for voice over ip calls, 
and should even do hardware echo cancellation. For now the only device I found 
that really do that very well is the acer iconia tab.

* Mode audio for sip calls : "normal" is the legacy one even if on some device 
in order to get routing to earpiece it is necessary to use "in_call" (but on 
other device in_call also plug micro to gsm chipset and the app can't record 
audio frames from mic). "in_communication" is the mode of the new (android 2.3) 
api. It should also optimize the way routing is done for voice over ip 
application.

BTW, if you have a look to the stock android application code, you'll notice 
that the stock sip application use *_communication modes and mic source. So 
that's the ~good~ way to do things... but unfortunately manufacturer not always 
added the stock sip application and so not always did a clean implementation of 
this new api.

Also, what could help is to try with latest version from nightly builds server. 
It includes a new echo canceller (from google's webRTC project) which should be 
better. I'll try to add to this echo canceller the noise suppressor from the 
same project (I have to study how to do that but should be possible and may 
possibly help with this issue).
Another point, echo canceller can on the other side have bad effect on noise 
and on micro level. If echo is too high, echo canceller can produce low mic 
level. In this case, you can try to play with micro amplification option.

Unfortunately, these kind of expert option, is really all a sip application can 
do. Who should be blame for this kind of issue are manufacturers. But anyway, 
if you find something interesting and think you have settings that should be 
integrated by default for your device, I can integrate that to the application 
(this is already done for many many devices cause there is many many different 
implementations from each manufacturer -- and usually samsung do a new 
implementation per device ;) ).

Original comment by r3gis...@gmail.com on 30 Aug 2011 at 8:09

GoogleCodeExporter commented 9 years ago
I've downloaded & tried the r1015-ginger on my I9003. Selecting echo 
cancellation = webrtc, there might be some small improvement - but the 
background noise is still loud, and seems to be generated whenever there is 
some voice captured by the mic. 

I would hope as well that noise reduction will probably help, so I am longing 
to see this ! 

Just for info (and laugh), I placed a call to samsung support line - they first 
asked me to reset the phone, then a sweet lady with an accent that prevented 
her from being understood eventually told me it was the application... I wasnt 
really expecting anything different !

Original comment by cerien.j...@gmail.com on 31 Aug 2011 at 1:35

GoogleCodeExporter commented 9 years ago
forgot to add.... logs are available, as well as audio recording of a call - 
just let me know if this can help.

Original comment by cerien.j...@gmail.com on 31 Aug 2011 at 1:37

GoogleCodeExporter commented 9 years ago
Thank you r3gis your solution worked.

I only had to use the first part of your solution and it worked perfectly. I 
alsochecked the Samsung Galaxy hack which I think also did the trick.

Original comment by z...@xervecom.com on 5 Sep 2011 at 11:43

GoogleCodeExporter commented 9 years ago
I`m confirming issue was resolved by checking both hacks (galaxy & tone) on my 
GT-i9003 (galaxy SL) on XXKPH (GB 2.3.4) FW.

Original comment by matas...@gmail.com on 17 Oct 2011 at 2:34

GoogleCodeExporter commented 9 years ago
I also have the same issue. I dont think its the hardware issue, coz skype 
voice clarity is excellent also actiovoip/mobile voip apps give better audio 
output. I was using Xperia X8 before and CsipSimple was perfect on that.

Original comment by musthafa...@gmail.com on 4 Dec 2011 at 7:49

GoogleCodeExporter commented 9 years ago
Hi. I think I'm facing a similar issue. I'm using csipsimple + Android 2.3.3 
(Gingerbread) on a Samsung Galaxy S (I9000).

The background noise isn't loud, but "it is always there". Even when I'm alone 
in a room without any noise. Is there some noise reduction feature in 
csipsimple?

Thanks in advance.

Original comment by daniel.h...@gmail.com on 6 Dec 2011 at 11:28

GoogleCodeExporter commented 9 years ago
I also have the same issue.no out going call

Original comment by sandeeps...@yahoo.com on 17 Mar 2013 at 1:28

GoogleCodeExporter commented 9 years ago
I also have the same issue.no out going call

Original comment by sandeeps...@yahoo.com on 17 Mar 2013 at 1:30