pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/aahlenst/android-audiorecord-sample

gin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-b48faa60c69660fa.css" /> GitHub - aahlenst/android-audiorecord-sample: Demonstrates how to record audio using Android's AudioRecord · GitHub
Skip to content

aahlenst/android-audiorecord-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android AudioRecord Sample

This is a sample project that demonstrates how to record audio on an Android device using the AudioRecord class.

Details

The sample contains multiple Activities, each demonstrating a different scenario to keep the code easily digestable:

  • AudioRecordActivity: Records PCM using the internal microphones
  • BluetoothRecordActivity: Records PCM using a Bluetooth HFP device

To launch the desired Activity, change the AndroidManifest.xml accordingly.

The output is written to the device's SD card and can be downloaded from there using adb:

adb pull /sdcard/recording.pcm ~/Desktop/recording.pcm

To listen to the PCM use Audacity or a similar software. To import a PCM into Audacity use the menu File > Import > RAW data. The endianness of the PCM is usually Little Endian on Android devices (x86, ARM).

License

This software is licensed under the terms of the Apache License, Version 2.0.

About

Demonstrates how to record audio using Android's AudioRecord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy