Re: PJSIP Android put on Speaker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrzej,

I am using below code works file but with loudspeaker audio volume is not good. 
i also use opus codec codec for audio qualitly.
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
audioManager.setSpeakerphoneOn(isSpeakerOn);

can u tell me how audio quality can be increase when phone is on speaker mode.
Regards
Mayur

On Thu, Aug 17, 2017 at 12:49 PM, Andrzej Grajnert <frogersik@xxxxxxxxx> wrote:
Hi,
You can make it via android AudioManager, by
audioManager.setSpeakerphoneOn(value);

Br,
Andrzej

W dniu 2017-08-17 o 07:35, Tailor, Mayur pisze:
Hi all,

I am facing issue in set call on loadspeaker mode.

use following code for speaker mode on:

try{
     pjmedia_aud_dev_route route = pjmedia_aud_dev_route.PJMEDIA_AUD_DEV_ROUTE_LOUDSPEAKER;
     ep.audDevManager().setOutputRoute(route,false);
}catch (Exception e){
     Log.d("toggleSpeaker",e.getMessage());
}


But its give exception like

java.lang.Exception: Title:       pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE, &route, keep)
Code:        420008
Description: Invalid or unsupported audio capability (PJMEDIA_EAUD_INVCAP)
Location:    ../src/pjsua2/media.cpp:951

Please help on this issue.

Regards
Mayur

------------------------------------------------------------------------
/DISCLAIMER:Thise-mail and any attachment(s) transmitted with it are intended solely for the use of the intended recipient(s) and may contain confidential and privileged information. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete it from your system. Any views or opinions expressed are solely those of the sender and do not necessarily represent those of Pratham Software or its affiliates or group companies, unless sender does so with due authority from Pratham Software. Electronic Correspondence cannot be guaranteed to be secure, timely or error free. This is subject to change without notice and is intended only for employees, Licensees and/or affiliates. We do not take responsibility for acting on time-sensitive instructions sent by email. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail and attachments, if any, and/or any action taken in reliance of this e-mail, without the prior written consent of the sender is strictly prohibited. The recipient should check this e-mail and attachment(s), if any, for the presence of viruses and/or defects. Pratham Software accepts no liability for any damage caused by any virus and/or defects transmitted by this email./




_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



--
Regards, 
Mayur Tailor 
Software Engineer 
Pratham Software Inc.
G1-265-266, RIICO Industrial Area, EPIP, Sitapura, Jaipur – 302002 
Email: mayur.tailor@xxxxxxxxxx | Mob. : +91-7742850847 | Tel.: 0141-669 0000 Ext.: 1248 | Skype: mayur_ps


DISCLAIMER:This e-mail and any attachment(s) transmitted with it are intended solely for the use of the intended recipient(s) and may contain confidential and privileged information. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete it from your system. Any views or opinions expressed are solely those of the sender and do not necessarily represent those of Pratham Software or its affiliates or group companies, unless sender does so with due authority from Pratham Software. Electronic Correspondence cannot be guaranteed to be secure, timely or error free. This is subject to change without notice and is intended only for employees, Licensees and/or affiliates. We do not take responsibility for acting on time-sensitive instructions sent by email. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail and attachments, if any, and/or any action taken in reliance of this e-mail, without the prior written consent of the sender is strictly prohibited. The recipient should check this e-mail and attachment(s), if any, for the presence of viruses and/or defects. Pratham Software accepts no liability for any damage caused by any virus and/or defects transmitted by this email.
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux