Simple Visualizer from mic input for Android.

Overview

Voice Recording Visualizer

License Download Android Arsenal

Simple Visualizer from mic input for Android.

Usage

    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ...
        VisualizerView visualizerView = (VisualizerView) findViewById(R.id.visualizer);

        RecordingSampler recordingSampler = new RecordingSampler();
        recordingSampler.setVolumeListener(this);  // for custom implements
        recordingSampler.setSamplingInterval(100); // voice sampling interval
        recordingSampler.link(visualizerView);     // link to visualizer

        recordingSampler.startRecording();
    }
    
    @Override
    protected void onPause() {
        mRecordingSampler.stopRecording();
        super.onPause();
    }
    
    @Override 
    protected void onDestroy() { 
        mRecordingSampler.release();
        super.onDestroy(); 
    } 

VisualizerView

<com.tyorikan.voicerecordingvisualizer.VisualizerView
                android:id="@+id/visualizer"
                android:layout_width="100dp"
                android:layout_height="100dp"
                android:background="@android:color/black"
                app:numColumns="4"
                app:renderColor="@color/renderColor"
                app:renderRange="top" />

VisualizerView attrs

Params format value
numColumns integer num of visualizer column (ex. 5, 20, 100)
renderColor color visualizer color (ex. #EFEFEF, @color/light_blue)
renderRange enum render direction top (default), bottom, both
renderType flag render type bar (default), pixel, fade

demo

IMAGE demo

Samples

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.tyorikan:voice-recording-visualizer:1.0.3@aar'
}

License

Copyright 2015 tyorikan

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
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
A simple library to add Emoji support to your Android Application
A simple library to add Emoji support to your Android Application

Emoji A library to add Emoji support to your Android app. Emojis can be picked in a PopupWindow. In order to edit and display text with Emojis this li

An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.

SortableTableView for Android An Android library providing a TableView and a SortableTableView. Minimum SDK-Version: 11 | Compile SDK-Version: 25 | La

A Simple Android LabelView.
A Simple Android LabelView.

#FlycoLabelView ####中文版 A Simple Android LabelView. ##Demo ##Gradle dependencies{ compile 'com.flyco.labelview:FlycoLabelView_Lib:1.0.2@aar' } ##A

SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.

Smiley Rating SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. Drawn completely using android canvas Insp

Dead simple Android Tooltip Views
Dead simple Android Tooltip Views

TooltipView A dead simple way to to add tooltips to your Android app. com.venmo.view.TooltipView android:layout_width="wrap_content"

A simple and Elegant Showcase view for Android
A simple and Elegant Showcase view for Android

Tuto Showcase A simple and Elegant Showcase view for Android TutoShowcase.from(this) .setContentView(R.layout.tuto_sample) .on(R.id.about) //

Simple and powerful library to emulate iOS's
Simple and powerful library to emulate iOS's "3D Touch" preview functionality on Android.

Android 3D Touch - PeekView iOS uses 3D Touch as a way to "peek" into full content, such as emails, pictures, web searches, etc. While they have dedic

Simple and fantastic wheel view in realistic effect for android.
Simple and fantastic wheel view in realistic effect for android.

Overview ![Size](https://img.shields.io/badge/Size-17 KB-e91e63.svg) Contact Preview Demo WheelPicke.APK Include Compile compile 'cn.aigestudio.wheelp

Implement a simple and funny Android animation —— the emoji rain in WeChat app.
Implement a simple and funny Android animation —— the emoji rain in WeChat app.

中文版文档 Emoji Rain Hey, it's raining emoji! This is a really simple and funny animation for Android. You could find similar animations when sending "Hap

Comments
  • How to use VisualizerView without RecordingSampler

    How to use VisualizerView without RecordingSampler

    Is there a way to use VisualizerView without RecordingSampler because there is An API handling the voice recording but there an Audio level received for each second or frame recorder.

    opened by smidaharoun 0
  • Compile issue

    Compile issue

    Hi, thanks for the great component,

    I have faced a serious problem which can't be compiled on my Android studio . I imported this sample project and tried to run it but i got this kind of error .

    "failed to find build tools revision 23.0.3"

    I am new to Android studio and your component , So i don't have any idea how to solve this issue. Hope you will help me .

    Regards

    opened by bairisin 0
Owner
Takayuki Yorikane
Takayuki Yorikane
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out

FabricView - A new canvas drawing library for Android. The library was born as part of a project in SD Hacks (www.sdhacks.io) on October 3rd. It is cu

Antwan Gaggi 1k Dec 13, 2022
Takes the input from the Android MediaPlayer and displays visualizations, like in iTunes or WinAmp

Android Visualizer A View subclass that Takes the input from the Android MediaPlayer and displays visualizations, like in iTunes or WinAmp The Visuali

null 798 Dec 22, 2022
Floating label input widgets

Android Floating Label Widgets A set of input widgets with a hint label that floats when input is not empty. Demo A demo of the widget is worth a thou

MarvinLabs 450 Nov 25, 2022
Simple and lightweight UI library for user new experience, combining floating bottom navigation and bottom sheet behaviour. Simple and beautiful.

Simple and lightweight UI library for user new experience, combining floating bottom navigation and bottom sheet behaviour. Simple and beautiful.

Rizki Maulana 118 Dec 14, 2022
Android Library to implement simple touch/tap/swipe gestures

SimpleFingerGestures An android library to implement simple 1 or 2 finger gestures easily Example Library The library is inside the libSFG folder Samp

Arnav Gupta 315 Dec 21, 2022
Snake View is a simple and animated linear chart for Android.

Snake View Snake library is a simple and animation line chart for Android. Latest Version How to use Configuring your project dependencies Add the lib

Txus Ballesteros 339 Dec 14, 2022
Horizon - Simple visual equaliser for Android

Horizon - Simple visual equaliser for Android This project aims to provide pretty cool equaliser for any Android audio project. Made in [Yalantis] (ht

Yalantis 2.2k Dec 11, 2022
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.

Note: we are not actively responding to issues right now. If you find a bug, please submit a PR. Android Sliding Up Panel This library provides a simp

Umano: News Read To You 9.4k Dec 31, 2022
[] A simple way to "badge" any given Android view at runtime without having to cater for it in layout

Android ViewBadger A simple way to "badge" any given Android view at runtime without having to cater for it in layout. Note: If your aim is to replica

Jeff Gilfelt 3k Nov 28, 2022
A simple, customizable and easy to use swipeable view stack for Android.

SwipeStack A simple, customizable and easy to use swipeable view stack for Android. QuickStart Include the Gradle dependency dependencies { compil

Frederik Schweiger 1.5k Dec 30, 2022