Git Product home page Git Product logo

androidnativerecorder's Introduction

This is an android app that can do stereo recording on Galaxy nexus 4.2.2

Dependency:

  1. rooted phone
  2. busybox: https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
  3. alsa-mixer: https://play.google.com/store/apps/details?id=com.skvalex.alsamixer&hl=en

=========================================================================================================== Usage:

  1. for simply stereo audio recording:

start audio recording by clicking 'a' to 'z' buttons, not the ('start-only recording audio') button.

When finishing recording (recording time is set by program, not user, default is 5 seconds) , a notification will pop up and the result file will be stored at: /sdcard/nativeRecorder/ with the file name same as the button pressed ('a' to 'z')

  1. To exit the program: click 'exit' button

  2. To change the recording length, frequency and wav file endian, change assets/script.jpg in this project:

default command: /system/xbin/alsa_aplay -C -D hw:0,1 -c 2 -r 48000 -d 5 -f S16_LE

the above command uses hardware 0,1 to record 2 channels (-c), at 48000Hz (-r), 5 seconds (-d), and the output .wav file is in little endian (-f) Details on formats of command above, refer to: http://linux.die.net/man/1/aplay

=============================================================================================================== Default Recording Settings (IMPORTANT): 2 channels, 5 seconds, little endian for output .wav file

=============================================================================================================== How it works: This app essentially issues alsa_amixer commands to bypass android OS and HAL to enable recording directly

=============================================================================================================== Updates: I'm planning on making it user-friendly (terrible right now).... need some time... We'll see

================================================================================================================ Contact Author: JJ Wang [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.