SlideShare a Scribd company logo
1 of 15
VoIP on Android



Wednesday 7 April 2010
Johan Cloetens
                                  @belgianwaves
                    • background interest since start
                    • huge android fan since oct. 2008
                    • free applications on Android Market:
                         SipAgent, ShootMe/PicMe, OnAir, ...
                    • professional android consultant since feb.
                         2009
                    • Escaux, Philips, Cherry, ...
Wednesday 7 April 2010
VoIP
                                why should i care?

                    • isn’t this boring?
                    • break free / save costs
                    • market trends
                    • bringing voice in the network allows
                         enriched experiences
                    • Android is the ideal platform
Wednesday 7 April 2010
Android (overview)




Wednesday 7 April 2010
Android (ipc)

              • Intents               • Services
               • loose coupling        • tight coupling
               • asynchronous          • synchronous
               • hash-like messages    • aidl / corba-like

Wednesday 7 April 2010
Android (audio)

                                     AudioTrack
                         App
                                     AudioRecord
                                                   MediaServer




Wednesday 7 April 2010
Android (audio)
                         APPLICATIONS               Audio Apps



                         APP FRAMEWORK AudioTrack /           MediaPlayer /
                                          AudioRecord         Recorder Class

                         RUNTIME -> NATIVE              JNI

                         NATIVE LIBRARIES
                                                        Media
                                                        Library
                                                    IPC binding
                                 MediaPlayer                        Audio Flinger
                                 Service (Native)                   (Native)



                             PV OpenCore Player/
                             Author Engine                 IPC binding


                                                                         HAL of Audio
                          PV Audio Enc/     PV Media
                          Dec Node          In/Out Node

                                               PV MIO
                                               I/F
                                                                         Alsa user Lib
                                                    Android Audio
                                                    I/O Wrapper



                         LINUX KERNEL
                                                                    Alsa Driver




Wednesday 7 April 2010
AudioTrack

                         AudioTrack t = new AudioTrack(AudioManager.STREAM_VOICE_CALL,
                             	   	   	   	   	   	     8000,
                             	   	   	   	   	   	     AudioFormat.CHANNEL_CONFIGURATION_MONO,
                         	   	   	   	   	   	   	     AudioFormat.ENCODING_PCM_16BIT,
                         	   	   	   	   	   	   	     bufferSizeOut(),
                         	   	   	   	   	   	   	     AudioTrack.MODE_STREAM);
                         	   	   t.play();
                         	   	   	   byte buffer[] = new byte[BUFFER_SIZE];
                         	   	   	   while (!stopped()) {
                         	   	   	   	   int read = fetchIn(buffer);
                         	   	   	   	   if (read > 0) {
                         	   	   	   	   	   t.write(buffer, 0, read);
                         	   	   	   	   }
                         	   	   	   }
                         	   	   t.stop();




Wednesday 7 April 2010
AudioRecord

                     AudioRecord r = new AudioRecord(MediaRecorder.AudioSource.MIC,
                     	   	  	   	   	   	   	  	     8000,
                     	   	  	   	   	   	   	  	     AudioFormat.CHANNEL_CONFIGURATION_MONO,
                     	   	  	   	   	   	   	  	     AudioFormat.ENCODING_PCM_16BIT,
                     	   	  	   	   	   	   	  	     bufferSizeIn());
                     	   	  r.startRecording();
                     	   	  	   byte buffer[] = new byte[BUFFER_SIZE];
                     	   	  	   while(!stopped()) {
                     	   	  	   	   int read = r.read(buffer, 0, BUFFER_SIZE);
                     	   	  	   	   if (read > 0) {
                     	   	  	   	   	   pushOut(buffer, read);
                     	   	  	   	   }
                     	   	  	   }
                     	   	  r.stop();




Wednesday 7 April 2010
It’s easy ;-)
                                  choices left

                    • compliancy to protocols (sip & iax)
                    • codecs (ulaw, alaw, gsm, g729, ...)
                    • java versus native
                    • to silo or not to silo...
                    • gotcha’s

Wednesday 7 April 2010
Gotchas

                    • fragmentation
                    • room for interpretation api’s
                    • hardware dependency / buffer hints
                    • latency
                    • bugs
                    • floating point support
Wednesday 7 April 2010
Demos




Wednesday 7 April 2010
To silo or not to silo
                            that is the question...


                    • basic functionality easier to integrate
                    • enriched experience asks for silo
                    • how to blend experience / look & feel?
                    • ( what has Google in the pipe? )

Wednesday 7 April 2010
Conclusion
                    • VoIP on Android is a reality
                    • could be easier
                    • will improve
                    • enriched communication experience only
                         limited by your imagination
                    • Android is platform of choice, plenty of
                         options


Wednesday 7 April 2010
Feedback
                         belgianwaves@gmail.com




Wednesday 7 April 2010

More Related Content

Viewers also liked

VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...imec.archive
 
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017imec.archive
 
Psychological Illness @ IPM on 3.4.11
Psychological Illness @ IPM on 3.4.11Psychological Illness @ IPM on 3.4.11
Psychological Illness @ IPM on 3.4.11Rikaz Sheriff
 
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo   Gert VerdocnkIct Sd01 Checklist Ict And Human Capital In Kmo   Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnkimec.archive
 
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value  Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value imec.archive
 
ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012imec.archive
 
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
A2 Bforum P1 04   Kh Lim   Nele Mentens   StresA2 Bforum P1 04   Kh Lim   Nele Mentens   Stres
A2 Bforum P1 04 Kh Lim Nele Mentens Stresimec.archive
 
Ecrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov PaperEcrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov Paperimec.archive
 
31032010 we bbt workshop project management
31032010 we bbt workshop project management31032010 we bbt workshop project management
31032010 we bbt workshop project managementimec.archive
 
Brokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaBrokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaimec.archive
 
2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]imec.archive
 
Qo E E2 E2 Project Overview Antoine Dejonghe
Qo E E2 E2   Project Overview   Antoine DejongheQo E E2 E2   Project Overview   Antoine Dejonghe
Qo E E2 E2 Project Overview Antoine Dejongheimec.archive
 
2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]imec.archive
 
T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들Chanil Park
 
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 SeriesWorkshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Seriesimec.archive
 
6 deus leaflet wp5
6 deus leaflet wp56 deus leaflet wp5
6 deus leaflet wp5imec.archive
 
Use of social media to facilitate dissemination of medical knowledge
Use of social media to facilitate dissemination of medical knowledgeUse of social media to facilitate dissemination of medical knowledge
Use of social media to facilitate dissemination of medical knowledgeRikaz Sheriff
 

Viewers also liked (18)

VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
 
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
 
Psychological Illness @ IPM on 3.4.11
Psychological Illness @ IPM on 3.4.11Psychological Illness @ IPM on 3.4.11
Psychological Illness @ IPM on 3.4.11
 
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo   Gert VerdocnkIct Sd01 Checklist Ict And Human Capital In Kmo   Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
 
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value  Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
 
ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012
 
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
A2 Bforum P1 04   Kh Lim   Nele Mentens   StresA2 Bforum P1 04   Kh Lim   Nele Mentens   Stres
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
 
Ecrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov PaperEcrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov Paper
 
31032010 we bbt workshop project management
31032010 we bbt workshop project management31032010 we bbt workshop project management
31032010 we bbt workshop project management
 
Family
FamilyFamily
Family
 
Brokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaBrokerage 2007 presentation multimedia
Brokerage 2007 presentation multimedia
 
2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]
 
Qo E E2 E2 Project Overview Antoine Dejonghe
Qo E E2 E2   Project Overview   Antoine DejongheQo E E2 E2   Project Overview   Antoine Dejonghe
Qo E E2 E2 Project Overview Antoine Dejonghe
 
2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]
 
T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들
 
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 SeriesWorkshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
 
6 deus leaflet wp5
6 deus leaflet wp56 deus leaflet wp5
6 deus leaflet wp5
 
Use of social media to facilitate dissemination of medical knowledge
Use of social media to facilitate dissemination of medical knowledgeUse of social media to facilitate dissemination of medical knowledge
Use of social media to facilitate dissemination of medical knowledge
 

Recently uploaded

Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxFIDO Alliance
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfalexjohnson7307
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxFIDO Alliance
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctBrainSell Technologies
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!Memoori
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxFIDO Alliance
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform EngineeringMarcus Vechiato
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 

Recently uploaded (20)

Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 

droidcon_voip_android

  • 2. Johan Cloetens @belgianwaves • background interest since start • huge android fan since oct. 2008 • free applications on Android Market: SipAgent, ShootMe/PicMe, OnAir, ... • professional android consultant since feb. 2009 • Escaux, Philips, Cherry, ... Wednesday 7 April 2010
  • 3. VoIP why should i care? • isn’t this boring? • break free / save costs • market trends • bringing voice in the network allows enriched experiences • Android is the ideal platform Wednesday 7 April 2010
  • 5. Android (ipc) • Intents • Services • loose coupling • tight coupling • asynchronous • synchronous • hash-like messages • aidl / corba-like Wednesday 7 April 2010
  • 6. Android (audio) AudioTrack App AudioRecord MediaServer Wednesday 7 April 2010
  • 7. Android (audio) APPLICATIONS Audio Apps APP FRAMEWORK AudioTrack / MediaPlayer / AudioRecord Recorder Class RUNTIME -> NATIVE JNI NATIVE LIBRARIES Media Library IPC binding MediaPlayer Audio Flinger Service (Native) (Native) PV OpenCore Player/ Author Engine IPC binding HAL of Audio PV Audio Enc/ PV Media Dec Node In/Out Node PV MIO I/F Alsa user Lib Android Audio I/O Wrapper LINUX KERNEL Alsa Driver Wednesday 7 April 2010
  • 8. AudioTrack AudioTrack t = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSizeOut(), AudioTrack.MODE_STREAM); t.play(); byte buffer[] = new byte[BUFFER_SIZE]; while (!stopped()) { int read = fetchIn(buffer); if (read > 0) { t.write(buffer, 0, read); } } t.stop(); Wednesday 7 April 2010
  • 9. AudioRecord AudioRecord r = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSizeIn()); r.startRecording(); byte buffer[] = new byte[BUFFER_SIZE]; while(!stopped()) { int read = r.read(buffer, 0, BUFFER_SIZE); if (read > 0) { pushOut(buffer, read); } } r.stop(); Wednesday 7 April 2010
  • 10. It’s easy ;-) choices left • compliancy to protocols (sip & iax) • codecs (ulaw, alaw, gsm, g729, ...) • java versus native • to silo or not to silo... • gotcha’s Wednesday 7 April 2010
  • 11. Gotchas • fragmentation • room for interpretation api’s • hardware dependency / buffer hints • latency • bugs • floating point support Wednesday 7 April 2010
  • 13. To silo or not to silo that is the question... • basic functionality easier to integrate • enriched experience asks for silo • how to blend experience / look & feel? • ( what has Google in the pipe? ) Wednesday 7 April 2010
  • 14. Conclusion • VoIP on Android is a reality • could be easier • will improve • enriched communication experience only limited by your imagination • Android is platform of choice, plenty of options Wednesday 7 April 2010
  • 15. Feedback belgianwaves@gmail.com Wednesday 7 April 2010