Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View LuanTa-CSUN's full-sized avatar

Luan Ta LuanTa-CSUN

  • CSUN
View GitHub Profile
@LuanTa-CSUN
LuanTa-CSUN / AudioRecordActivity.java
Created September 12, 2018 21:46 — forked from kmark/AudioRecordActivity.java
An example of how to read in raw PCM data from Android's AudioRecord API (microphone input, for instance) and output it to a valid WAV file. Tested on API 21/23 on Android and API 23 on Android Wear (modified activity) where AudioRecord is the only available audio recording API. MediaRecorder doesn't work. Compiles against min API 15 and probabl…
/*
* Copyright 2016 Kevin Mark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software