GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - quanghd96/spectrogram-android

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.gradle
.gradle
 
 
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
local.properties
local.properties
 
 
settings.gradle
settings.gradle
 
 
spectrogram-android.iml
spectrogram-android.iml
 
 

Repository files navigation

Synopsis

[Spectrogram-Android] is a mobile application available on the Google Play store.
It was initially developed as a basic tool to study outdoor sound properties.
It is and will remain free to use and ad-free.

Key features
  • Realtime time view and frequency view of surrouding sound
  • FFT size from 32 to 65536
  • Nine windowing functions
  • Night/day and portrait/landscape modes
Snapshots

Installation and configuration

Installation
  • Install Android Studio 2.3.2, Android SDK and Android NDK
  • From the "Android SDK Manager", install the libraries
    • "Android Support Library (Obsolete)"
    • "Android Support Repository"

Congratulations, you are ready to run the application!

Implementation

The application follows Android guidelines in terms of Activity lifecycle, View inflation and Preferences management.
It uses native code (C code) to reduce FFT computation time. A JNI bridge defines the binding between Java methods and C functions.
The code is very minimalist. Below the exhaustive list of source files.

Edit:
Note that the C code and JNI bridge have been moved into the dedicated repository sound-engine-android. They are now packaged into .so files and a .jar file attached to this project.

Java side code
  • SpectrogramActivity.java (entry point of the application, renders TimeView and FrequencyView, has access to native code to process audio samples, subscribes to audio recording service)
  • PreferencesActivity.java (simple interface to manage user preferences)
  • TimeView.java (wave signal rendering, shown on top of the application)
  • FrequencyView.java (spectrogram rendering, shown below the wave signal)
  • ContinuousRecord.java (background service, continuously records audio, calls a callback for each sample recorded)
  • Misc.java (various function to ease preferences manipulation)
Native side code
  • SoundEngine.java (JNI bridge in Java, list of Java methods that are implemented in C)
  • jni.c (JNI bridge in C, allows Java calls to be routed to C functions)
  • main.c (FFT, windowing ... all sound processing functions)

Basically, an instance of ContinuousRecord is run at startup and continuously records audio samples from the microphone.
Using a callback, each sample is processed within SpectrogramActivity. Results are then sent to TimeView and FrequencyView which update their respective content.

Development

Have killer features in mind you want to implement?
You are very welcome to contribute to the project!

Todo

  • Add extra languages
  • Add frequency range filter
  • Add unit test cases (yeah I know...)
  • Add ability to play sound from the spectrogram
  • Add high resolution spectrogram export feature

License

zlib

About

No description, website, or topics provided.

Resources

Readme
License
Activity

Stars

28 stars

Watchers

3 watching

Forks

10 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.