SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

En vedette

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
 

En vedette (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
 

Dernier

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Dernier (20)

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

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