- Knowledge Base
- Developer
- HMT Development Examples
-
Developer
-
RealWear Navigator™ 500 Series
- Overview
- Features and Specifications
- Wearing Your Device
- Device Setup
- Interacting with Your Device
- Device Power
- Battery Use
- Home Screen
- My Programs
- My Camera
- My Files
- My Training
- Safety
- Device Care
- Ownership Information
- User Guide
- FAQ
- Thermal Camera Module
- Display Technology Comparison
- Cleaning Your Device
-
RealWear Cloud
-
RealWear Releases
-
RealWear HMT-1®
-
RealWear HMT-1Z1®
-
RealWear Apps
-
Configure
-
RealWear Modules & Accessories
-
RealWear Navigator™ Series
Development Example – Audio Capture
Audio is delivered to applications using the standard Android mechanisms, so an application that records audio should work out of the box on the HMT.
It is possible to record audio in mono or stereo at the following sample rates:
8KHz
16KHz
44KHz
48KHz
The WearHF service handles microphone selection automatically and audio delivered to an application after the HMT has preformed noise cancellation, so an application simply needs to record from the microphone.
int bufferSize = AudioRecord.getMinBufferSize(
mSampleRate, monoOrStereo, AudioFormat.ENCODING_PCM_16BIT);
AudioRecord audioRecorder = new AudioRecord(
MediaRecorder.AudioSource.MIC,
8000, // Sample rate
AudioFormat.CHANNEL_IN_STEREO,
AudioFormat.ENCODING_PCM_16BIT,
bufferSize);
mAudioRecorder.startRecording();