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

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Dernier (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

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