• Stars
    star
    814
  • Rank 55,571 (Top 2 %)
  • Language
    Java
  • Created almost 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Shows a graphic representation of the sounds captured by the microphone on Android

Audio Waves

Shows a graphic representation of the sounds captured by the microphone on Android

android_audio_waves

GRADLE:

Add this to your app/build.gradle

repositories {
    	...
    	maven { url 'https://github.com/FireZenk/maven-repo/raw/master/'}
}
dependencies {
		...
        compile 'org.firezenk:audiowaves:1.1@aar'
}

USAGE:

  1. Add permission to record audio (into your Manifest)

    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    
  2. Add the new xmls to your layout parent widget

    xmlns:aw="http://schemas.android.com/apk/res-auto"
    
  3. Add AudioWeaves to your layout and configure it

    <org.firezenk.audiowaves.Visualizer
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        aw:aw_format="vertical_lines"
        aw:aw_gravity="center"
        aw:aw_width="100"
        aw:aw_height="200"
        aw:aw_num_waves="10"
        aw:aw_line_with="30"
        aw:aw_line_min_with="30"
        aw:aw_line_height="30"
        aw:aw_line_min_height="30"
        aw:aw_line_spacing="10"
        aw:aw_line_border_radius="50"
        aw:aw_ball_diameter="30"
        aw:aw_color_uniform="@color/YOUR_COLOR_HERE"
        aw:aw_color_is_gradient="true"
        aw:aw_color_gradient_start="@color/YOUR_START_COLOR"
        aw:aw_color_gradient_end="@color/YOUR_END_COLOR" />
    
  4. Start (and stop) the listener

    ((Visualizer) findViewById(R.id.visualizer)).startListening(); //to stop: .stopListening()
    
  5. (Optional) Also you can configure AudioWeaves by code

    void setFormat(int format);
    
    void setGravity(int gravity);
    
    void setDimens(int width, int height);
    
    void setWidth(int width);
    
    void setHeight(int height);
    
    void setNumWaves(int waves);
    
    void setLineDimens(int width, int height);
    
    void setLineWidth(int width);
    
    void setLineHeight(int height);
    
    void setLineMinDimens(int minWidth, int minHeight);
    
    void setLineMinWidth(int minWidth);
    
    void setLineMinHeight(int minHeight);
    
    void setLineSpacing(int spacing);
    
    void setLineBorderRadius(int borderRadius);
    
    void setBallDiameter(int ballDiameter);
    
    void setColor(int color);
    
    void setIsGradient(boolean isGradient);
    
    void setGradient(int startColor, int endColor);
    
    void setGradientColorStart(int color);
    
    void setGradientColorEnd(int color);
    

MORE INFO:

Go to sample module

LICENSE

The MIT License (MIT)

Copyright (c) 2015 Jorge Garrido Oval <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

More Repositories

1

language-lua

Lua language support in Atom
66
star
2

FireZenk-s-ProgressBar

A highly customizable progress bar for Android
Java
53
star
3

zimit

The consistent HTML5 + LESS framework
CSS
48
star
4

BubbleEmitter

Shows fancy animated bubbles as an Android view
Kotlin
40
star
5

Naviganto

A small routing library for android
Java
29
star
6

html5player

Fully featured HTML5 music player
JavaScript
24
star
7

FireZenk-s-TickerText

Android ticker text for real
Java
19
star
8

RecyclerViewSyncedAnimations

Demo project to show how sync animations from different rows
Java
14
star
9

Love2D-boilerplate

A simple start point to create Lรถve2D based games
Lua
9
star
10

ComicWorld

Pet project for Android-Kotlin DSL talk
Kotlin
8
star
11

Tabbels

A crazy idea about bringing functional programming to Java, in an elegant way
Java
8
star
12

DSLPlayground

Project to be worked in the Kotlin DSL Workshop
Kotlin
7
star
13

Kartographer

An Android routing library for Kotlin based on Naviganto
Kotlin
6
star
14

bigot

๐Ÿ‡ช๐Ÿ‡ธ A little 'moustache inspired' template engine but more semantic
CoffeeScript
4
star
15

HeyBirthday

Birthday reminders bot for Discord app
Kotlin
4
star
16

LD27

10 seconds to escape, a game for Ludum Dare #27
Lua
3
star
17

Img2Base64

Easy image to base64 script
Groovy
3
star
18

tumblr-bootstrap-template

A tumblr template based on twitter bootstrap
3
star
19

arce

ARCE: Android remote command executor
Kotlin
2
star
20

ShortcutsDSL

A little lib to easily create Android app shortcuts with Kotlin
Kotlin
1
star
21

GoldenBeetle

Something with Android and Arduino
C++
1
star
22

september-blog

A node.js powered blog system
CoffeeScript
1
star
23

dokifytest

PHP
1
star
24

firezenk

My profile
1
star
25

RxOracle-Kata

https://github.com/varokas/kata-rx/wiki/Kata-RX-Oracle
HTML
1
star
26

Love2DtoCoronaSDK

An easy template to port Love2D games to CoronaSDK
1
star
27

grunt-contrib-bigot

Grunt plugin to automate Bigot template compilation
JavaScript
1
star
28

Kompose2D

A minimal game library based on Compose, written in Kotlin and inspired by Love2D
Kotlin
1
star