Skip to content

Latest commit

 

History

History

audio.record

Overview

This example shows how to record audio.

Requirements

  • MICROEJ SDK 6.
  • A VEE Port that contains:
    • EDC-1.3 or higher.
    • BON-1.4 or higher.
    • FS-2.1 or higher.
    • AUDIO-1.0 or higher.

Usage

The sample records 5 seconds of audio data and saves it to a file (in build/output/filesystem folder on simulator). The file can be played with an audio software to check that the audio data is valid. For example with Audacity, the file can be imported by selecting File > Import > Raw Data..., selecting the record.raw file and selecting the correct audio format (16-bit PCM, 1 channel, 16000 Hz). If the VEE Port does not provide FS, the example can be changed to use an other way to log the recorded audio data.

By default, the sample does not load VEE Port and thus it cannot be built for a device nor ran on the simulator.

Refer to the Select a VEE Port documentation for more information.

Dependencies

All dependencies are retrieved transitively by Gradle.

Source

N/A

Restrictions

None.


Copyright 2024 MicroEJ Corp. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found with this software.