Audio Waves


Source link: https://github.com/FireZenk/AudioWaves

#Audio Waves

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

###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. 

Resources

Android SDK doesn't provide direct way to track open/close events from software keyboard. This small library does it for you.

MaskFormatter adds mask functionality to your EditText. It will prevent user from inserting not allowed signs, and format input as well.

Lock view with blur effect. Easy to customize.

Easy to create cool walkthrough page.

This library helps you to achieve a popular "drop shadow" effect.

CutIntoLayout allows you to create clear effect on your background.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes