Giter Site home page Giter Site logo

speechrecognitionview's People

Contributors

johnkil 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

speechrecognitionview's Issues

Quick fix for height

onMeasure is not a good place for creating bars because height is not fixed yet.
I think best way is onLayout. Just remove onMeasure function and add this :

    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom)
    {
        super.onLayout(changed, left, top, right, bottom);
        if (recognitionBars.isEmpty()) {
            initBars();
        } else if (changed){
            recognitionBars.clear();
            initBars();
        }
    }

This will fix height issues.

Resizing View

<com.github.zagum.speechrecognitionview.RecognitionProgressView
android:id="@+id/recognition_animation"
android:layout_width="42dp"
android:layout_height="42dp"

android:layout_centerHorizontal="true"/>

As you can notice I am trying to resize the view with a given height and width, however this won't work. is there away to get it done, or should we wait for a new release.

Thank you.

onResults() callback is being called twice

Set a breakpoint here and you'll notice that the callback method is now being called twice:

This only started happening yesterday. I've confirmed that it happens on multiple devices.

Here's the only reference to this issue I can find online. It's a StackOverflow post from March, where this randomly started happening to them too:

https://stackoverflow.com/questions/60853257/android-recognitionlistener-onresults-being-called-twice

Getting errors on syncing dependency

I added maven in root build.gradle and trying to add dependency in build.gradle. But, when I press 'sync now' option then it gives me below error log

Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.
<a href="openFile:C:/Users/me/Downloads/MyApplication5/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:app@debug/compileClasspath&#39;: Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.">Show Details</a>

Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.
<a href="openFile:C:/Users/me/Downloads/MyApplication5/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:app@debugAndroidTest/compileClasspath&#39;: Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.">Show Details</a>

Error:Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.
<a href="openFile:C:/Users/me/Downloads/MyApplication5/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:app@release/compileClasspath&#39;: Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.">Show Details</a>

Error:Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.
<a href="openFile:C:/Users/me/Downloads/MyApplication5/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:app@releaseUnitTest/compileClasspath&#39;: Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.">Show Details</a>

How does this work with Microsoft Cognitive services speech sdk

Could you please help me understand either how to create a new one for "Microsoft Cognitive services speech sdk" or make this current solution compatible with "Microsoft Cognitive services speech sdk" ?

I see that your solution is based on

  1. android.speech.RecognitionListener
  2. android.speech.SpeechRecognizer

I am looking for a solution based on "android.media.MediaRecorder"

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.