:sound: [Android Library] Easily generate pure audio tone of any frequency in android

Related tags

Video/Audio zentone
Overview

Image

Maven Central API

Android Arsenal

Twitter Follow

Android library to easily generate audio tone in android.

Generating pure tone of an specific frequency was never that easy. ZenTone does all the heavy lifting for you.

Go build awesome stuff with it! πŸ˜„

Checkout the app using it

playstore

Changelog

Starting with 1.0.3, Changes exist in the releases tab.

Usage Docs/Wiki

For more detailed usage, check the Wiki

Including in your project

  • Zentone is available in the MavenCentral, so getting it as simple as adding it as a dependency
compile 'com.github.nisrulz:zentone:1.0.3'

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match coding style (braces, spacing, etc.) This is best achieved using CMD+Option+L (Reformat code) on Mac (not sure for Windows) with Android Studio defaults.
  2. If its a feature, bugfix, or anything please only change code to what you specify.
  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
  4. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.
  5. Check for existing issues first, before filing an issue.
  6. Have fun!

Created & Maintained By

Nishant Srivastava (@nisrulz)

You might also like...
Library for Instagram Image/Video Downloader for Android

Insta Downloader Simple Instagram Image Video Downloader Library for Android Implementation Step 1. Add the JitPack repository to your build file Add

The official Android client library for api.video
The official Android client library for api.video

api.video Android client api.video is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing

A simple library for parsing and playing links from YouTube, YouTube Music, Vimeo and Rutube is WebView without the need to connect api data services. Request caching is available now
A simple library for parsing and playing links from YouTube, YouTube Music, Vimeo and Rutube is WebView without the need to connect api data services. Request caching is available now

Android Oembed Video A simple library for parsing and playing links from YouTube, YouTube Music, Vimeo and Rutube and others in the WebView without th

AudLibPlayer is a library that allows a client to play from a collection of public domain audiobooks hosted on a web service

AudLibPlayer is a library that allows a client to play from a collection of public domain audiobooks hosted on a web service

This is a basic demo application for exoplayer library.
This is a basic demo application for exoplayer library.

ExoPlayer Demo Application This is a basic demo application for exoplayer library. It can stream these types of file: MP3 MP4 DASH HLS You can minimiz

The Madman library (Media Ads Manager) enables you to advertise video contents with video ads.
The Madman library (Media Ads Manager) enables you to advertise video contents with video ads.

Madman (Media ads manager) is a high performance alternative to Google's standard IMA android SDK. If you have your own VAST server and want to render video ads and have full control over the UI, then this library is for you.

mpv-android is a video player for Android based on libmpv.

mpv-android is a video player for Android based on libmpv.

FFmpeg compiled for Android. Execute FFmpeg commands with ease in your Android app.
FFmpeg compiled for Android. Execute FFmpeg commands with ease in your Android app.

FFMPEG video operations FFmpeg compiled for Android. Execute FFmpeg commands with ease in your Android app. Getting Started This project is provide in

Echo is a lightweight and minimal music player for Android, built with Android Studio and written in Kotlin
Echo is a lightweight and minimal music player for Android, built with Android Studio and written in Kotlin

Echo - Echo, A light-weight, minimal music player for Android, with shuffle, favorites and audio visualization

Comments
  • Migrate to Maven Central

    Migrate to Maven Central

    JFrog just announced that they'll be shutting down JCenter: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

    Key dates are:

    February 28th: No more submissions will be accepted to Bintray, JCenter May 1st: Bintray, JCenter services will no longer be available

    Hence need to migrate to another maven repository like Maven central.

    opened by nisrulz 1
  • Can't generate two frequency at the same

    Can't generate two frequency at the same

    Can't generate two tone frequency at the same time

    ZenTone.getInstance().generate(300, 2, 0.5f, toneStoppedListener());

    ZenTone.getInstance().generate(500, 2, 0.5f, toneStoppedListener());

    opened by nrbKarlo 1
  • Remove Duration

    Remove Duration

    What a wonderful library. Very easy to use. kudos

    Just a suggestion, can we remove the duration? We will just generate the tune on MotionEvent.ACTION_DOWN and stop the tune until the user unpressed the button (MotionEvent.ACTION_UP).

    `  findViewById(R.id.play_tune_button).setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View view, MotionEvent motionEvent) {
                if (motionEvent.getAction() == MotionEvent.ACTION_DOWN){
                    Log.w("Pressed", "Button ACTION_DOWN1");               
                    generateSound(261);
                }
    
                else if (motionEvent.getAction() == MotionEvent.ACTION_UP){
                    Log.w("Pressed", "Button ACTION_UP1");
                    stopSound();
                }
                return false;
            }
        });`
    
    opened by nrbKarlo 1
Releases(2.1.0)
  • 2.1.0(Feb 14, 2022)

  • 2.0.0(Feb 14, 2022)

    Changelog

    • βœ… Switched to Kotlin

    • πŸ‘€ Uses coroutines

    • 🧹 Reworked API

    • ⚠️ ZenToneis no more a singleton thus allowing running multiple instances of it.

    • ⚠️ minSdk = 18

    • ❌ Time duration cannot be set anymore. This is now dependent on when one calls stop on ZenTone instance.

    Source code(tar.gz)
    Source code(zip)
  • 1.0.3(Aug 1, 2016)

    Changelog

    • βœ… Updated code to handle volume
    • 🧹 Replace maven-push.gradle file with the one from github repo
    • πŸ“ƒ Added Java Docs
    • 🧰 Code cleanup and updated dependencies
    Source code(tar.gz)
    Source code(zip)
Owner
Nishant Srivastava
non-GDE Android Engineer crushing code πŸ‘¨πŸ»β€πŸ’»
Nishant Srivastava
Silky - Android application to convert videos from applications such as YouTube, Facebook, Twitter into audio (.mp3)

Silky EspaΓ±ol (actualmente la app se encuentra en desarrollo ) Descripcion Aplic

null 2 Aug 24, 2022
Video/Audio Downloader for Android, written with Jetpack Compose.

Seal Video/Audio Downloader for Android, written with Jetpack Compose.

junkfood 2.1k Dec 29, 2022
A fork of audio-analyzer-for-android in Google code, with a lot of enhancement.

Audio Spectrum Analyzer for Android A fork of Audio spectrum Analyzer for Android (See README.old for its original readme) This software shows the fre

null 74 Jan 1, 2023
A radio player mobile application which streams audio from Radio Sai Global Harmony.

A radio player mobile application which streams audio from Radio Sai Global Harmony.

Sai Rajendra Immadi 11 Nov 26, 2022
Fermata Media Player is a free, open source audio and video player with a simple and intuitive interface.

Fermata Media Player About Fermata Media Player is a free, open source audio and video player with a simple and intuitive interface. It is focused on

Andrey 227 Jan 6, 2023
Radio Player - A Flutter plugin to play streaming audio content with background support and lock screen controls.

A Flutter plugin to play streaming audio content with background support and lock screen controls. Installation To use this package, add

Ayotunde abdulsalam 1 Mar 14, 2022
ZExoRecyclerPlayer is an Android library that allows developers to easily create RecyclerView with Exoplayer .

ZExoRecyclerPlayer Description ZExoRecyclerPlayer is an Android library that allows developers to easily create RecyclerView with Exoplayer . Please f

mohammed alzoubi 4 Dec 12, 2022
An easy way of recording any discussion or sounds without ads or internet access

Simple Voice Recorder Ever wished you remember what the other person said? Or the task they gave you at a meeting? Wish no more. With this simple reco

Simple Mobile Tools 291 Jan 7, 2023
An easy to use Instagram Video Downloader library for android apps.

Instagram-Video-Downloader-Library An easy to use library for directly download videos from ig reels, igtv. Implementation Step 1. Add the JitPack rep

Abhay 16 Dec 7, 2022