Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NotificationsYou must be signed in to change notification settings

FireZenk/AudioWaves

Repository files navigation

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

android_audio_waves

GRADLE:

Add this to yourapp/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 <firezenk@gmail.com>Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 INTHE SOFTWARE.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp