zagum / speechrecognitionview Goto Github PK
View Code? Open in Web Editor NEW"Google Now" style animation for Speech Recognizer.
License: Apache License 2.0
"Google Now" style animation for Speech Recognizer.
License: Apache License 2.0
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.
<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.
Is it possible to change the SpeecRecognizer to Google Cloud Speech?
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:
i got this error
bind to recognition service failed
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 ':app@debug/compileClasspath': 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 ':app@debugAndroidTest/compileClasspath': 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 ':app@release/compileClasspath': 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 ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.zagum:SpeechRecognitionView:1.2.2.">Show Details</a>
I am unable to set a custom height and width (36 dp each), also unable to place the view anywhere other than at the center.
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
I am looking for a solution based on "android.media.MediaRecorder"
WhatsApp Video 2017-09-25 at 12.48.10.mp4.zip
Hi, i innest your addons into my app but sometimes the animation loop, like as the video.
in other case not start for listening voice...
can you help me?
Thanks in advance.
Hi, I was looking for 4 white dots without circular animation how I can remove that?
I have added below line
maven { url "https://jitpack.io" }
and clicked 'sync now' option but it keeps syncing for last 2 hours, still waiting to get synced completed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.