Git Product home page Git Product logo

audiowaves's Introduction

Hi I'm Jorge 👋

  • 👂 Helping people to improve their hearing at Jacoti
  • 👀 Check my CV here: Manfred & LinkedIn
  • 🌍 Working remotely from Spain
  • 🌱 I’m currently learning Unity
  • 💬 Ask me about Android development, Kotlin, and app architecture
  • 🗜️ Passionate about 3d design and printing
  • 📫 How to reach me: [email protected]

audiowaves's People

Contributors

bryant1410 avatar firezenk avatar gamebusterz avatar msoner1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audiowaves's Issues

Sensitivity

Nice project.

a)
How would one Increase the sensitivity as it currently does not fire very well with normal conversation.
b)
Would it be possible to slow down the vertical drop of each bar so it has a better visual effect ?
Currently the spikes disappear very quickly so it is almost difficult to see them.

thanks

Failed to resolve org.firezenk:audiowaves:1.1

I tried :

  1. Adding maven { url 'https://github.com/FireZenk/maven-repo/raw/master/'} in build.gradle (Project) [No errors] but can't add Visualizer to Layouts.
  2. Also adding compile 'org.firezenk:audiowaves:1.1@aar' in build.gradle (Module) . [Error] Failed to resolve org.firezenk:audiowaves:1.1
  3. Only adding compile 'org.firezenk:audiowaves:1.1@aar' in build.gradle (Module). [Error] same as above.

Media Recorder Issuse

I have also a conflict .When I use Media Recorder along with this lib,IIegalStateException is occurred and I cannot record the voice.

How to use your library when recording audio using mic?

Hello!

Thank you for sharing your work!

I am struggling to make it work in parallel with audio recording. I get MediaRecorder IllegalState exception again and again.

I am using your visualiser this way:

 private void startRecording() {
        mRecorder = new MediaRecorder();
        mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
        mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
        mRecorder.setOutputFile(mFileName);
        mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_WB);

        try {
            mRecorder.prepare();
        } catch (IOException e) {
            Timber.e("prepare() failed");
        }
       mRecorder.start();
       mVisualizer.startListening();
    }

    private void stopRecording() {
        mVisualizer.stopListening();
        mRecorder.stop();
        mRecorder.release();
        mRecorder = null;
    }

What do I do wrong?

NullPointerException

when build sample on my phone (api17) , return null for dispatcher in prepare and crashed sample,

01-05 16:32:57.105 32068-32068/org.firezenk.audiowaves.sample E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.firezenk.audiowaves.sample/org.firezenk.audiowaves.sample.MainActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class org.firezenk.audiowaves.Visualizer
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
at android.app.ActivityThread.access$600(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5391)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class org.firezenk.audiowaves.Visualizer
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
at org.firezenk.audiowaves.sample.MainActivity.onCreate(MainActivity.java:15)
at android.app.Activity.performCreate(Activity.java:5122)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) 
at android.app.ActivityThread.access$600(ActivityThread.java:165) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:194) 
at android.app.ActivityThread.main(ActivityThread.java:5391) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:525) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249) 
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106) 
at org.firezenk.audiowaves.sample.MainActivity.onCreate(MainActivity.java:15) 
at android.app.Activity.performCreate(Activity.java:5122) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) 
at android.app.ActivityThread.access$600(ActivityThread.java:165) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:194) 
at android.app.ActivityThread.main(ActivityThread.java:5391) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:525) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.NullPointerException
at org.firezenk.audiowaves.Visualizer.prepare(Visualizer.java:290)
at org.firezenk.audiowaves.Visualizer.init(Visualizer.java:152)
at org.firezenk.audiowaves.Visualizer.(Visualizer.java:71)
at java.lang.reflect.Constructor.constructNative(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 
at android.view.LayoutInflater.createView(LayoutInflater.java:587) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249) 
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106) 
at org.firezenk.audiowaves.sample.MainActivity.onCreate(MainActivity.java:15) 
at android.app.Activity.performCreate(Activity.java:5122) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) 
at android.app.ActivityThread.access$600(ActivityThread.java:165) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:194) 
at android.app.ActivityThread.main(ActivityThread.java:5391) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:525) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
at dalvik.system.NativeStart.main(Native Method) 

Insufficient Entropy CWE ID 331

Standard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().

Cannot use the library in my android project due to some limitations and bugs. (ver1.1)

Hi,
I'd love to use your library in my android app but I have played a little bit with it and I found some problems.

The first is connected to the issue #1 :

  • starting with Android 5.0 we have to manage the runtime permissions and so, due to the fact that your widget uses the microphone when the layout gets inflated, it will fails every time you starts the app on Android 5.0 (the first time you don't have any permission like RECORD_AUDIO when you start the app the first time ). Have you ever try the library in this scenario?

The second is connected to the issue #3 :

  • I think the point here is that if the widget starts to use the microphone when it gets inflated (method prepare()) you will never had the possibility to use the microphone for something else like in my case a voice recognition activity. It could be ideal to have the possibility to start and stop the entire service whenever we need to avoid multiple concurrency on the same resource (microphone). And by the way even with the current implementation it seems that the stopListening() method is not working at all.

I like the graphical part, I think is one of the best "on the market" at the moment (maybe the only one) so I really appreciate your work. Do you think we can improve it? Let me know if you need help, I will be happy to give you an hand!

Thanks!

want to attache it with playing audio not mic

This sample example is working fine but I want to attach it with playing media not with microphone, which means if the user is using earphones then also it will work as it is working with built in speaker(because right now mic captures sound coming from built in speakers). is there any possibility of doing so with this library?

Can't stop listening

Hi!

Thank you a lot for your sharing your work!

stopListening() does nothing. The visualizer is still updated.

Context :
I want to start listening when I click on the start button, then stop when I click on another button.

Did anybody face this behavior?

public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
    view = inflater.inflate(R.layout.record_sound, container, false);
    visualizer = view.findViewById(R.id.visualizer);

    view.findViewById(R.id.start).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            visualizer.startListening();
        }
    });

    view.findViewById(R.id.stop).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            visualizer.stopListening();
        }
    });
    return view;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.