How to make a voice assistant android apk offline? - android

I want to make an android project that can understand my voice command and can response with voice.So, are there some api or frameworks? If not, how do I analyse and translate that voice?

Stack Overflow is probably not the right place to ask for an advice, but let me answer you. CMUSphinx is probably the most popular free speach recognition library, working offline. I haven't used it, but I hope it's going to help you. Then you need also text-to-speach library working offline, so take a look at this catalog - https://android-arsenal.com/tag/100 . If you don't find a library, you can have the code of an open source project like Android Mary TTS and reuse whatever is necessary.

Related

Incorporate vuforia android SDK in a new project

I want to use vuforia sdk's text recognition module in my new app.
I have been successful in building and running their sample apps. However, having done that was apparently not enough for me to figure out how to start using vuforia android sdk in my mew project in a proper way.
The IDE is Android Studio. I have the license key for my vuforia account.
Could someone help me get started? I jist need to start using vuforia as a library in my own personal project. I do not want to start developing directly over their sample apps.
I am sorry if the context of the questions doesn't fit into that of this particular community.
I wanted to do exactly what you said. I didn't want to build on the top of their samples. I struggled to find a tutorial but there is none, at least I was not able to fine one. Turns out it is really easy. Go to the Vuforia folder(wherever you installed it) and then head to vuforia-sdk-android-X-XX-X\build\java\vuforia and copy the .jar file and paste that file to your new project in Android studio inside your libs folder. Then add this line to your Build.Gradle
compile files('libs/Vuforia.jar')
inside your dependencies. That's it. You can access all the Vuforia classes from there. Don't forget to instanciate them just like in the example with your own key from Vuforia developer console.
I don't know if this is still relevant, but... This link shows what you need to do, code-wise, for creating a new Vuforia App: How can I build a basic Vuforia app. This, along with the links you have already seen regarding the setup, should be enough for you to get started from scratch.
Instead of relying on Vuforia's module, I built my own real-time OCR from scratch, using the Camera (1) API and Google's Mobile Vision Library.
My app - Optical Dictionary & Vocabulary Teacher - performs a lot better than Vuforia's module. It does real-time scanning of words, shows them in a more friendly manner, and does way better validation of words. It even lemmatizes the words (e.g fooled -> fool, thieves -> thief etc).
Also, needless to say that this gave me complete control over my module as well.
Here is a Video Demo of my app.
If any one wants to build something similar, they can feel free to contact me for assistance.

how to integrate VoIP in android application?

I want to make free calling application through net to mobile or land line call using VoIP. I have not much knowledge of VoIP. I get inspiration from using some application like line,Skype,etc. how can I achieve domestic and international call using VoIP in android application. I search lot about but I cannot get direct and easy to understand resource to get this task. so if any one have any idea or resource then most well come to achieve this task of my application.
You can use WebRTC,and here are compiling steps Getting Started, there is an working example project, WebRTCDemo for Android, where you can check how it's working. I used it in the real program, not just googled and answered, and it works perfectly well, also has STUN, TURN support.
You may use the Android SIP API to implement VoIP : http://developer.android.com/guide/topics/connectivity/sip.html
Here is a great tutorial : http://www.basic4ppc.com/android/forum/threads/android-sip-voip-tutorial.13088/
If you want to use 3rd party libraries,this one is good : http://www.sipdroid.org/
You can look at CSipSimple source code

How to Install HTK on Android?

Similar to this question. Since I don't want to pass the voice data to a server, doing this may cost me more time. I wonder if I can use HTK to recognize the voice data locally with the Android application so that I won't need to pass that audio to the server.
Here may be the solution, but can anyone give me a more detialed tutorial on how to build HTK with android ndk? Thank you!
Maybe pocketsphinx is more suitable for you, see this tutorial: http://cmusphinx.sourceforge.net/wiki/tutorialandroid . And to build the JNI API from pocketsphinx yourself, see Building PocketSphinxAndroidDemo (from CMUSphinx project) for more details.

How to add additional drivers to android stack

I need to customize the android source code to add another secondary display for the device (this is the requirement). Hence i need to integrate the secondary display's drivers into the android stack and also add some libraries to the android stack using which the secondary display can be controlled. The driver code is readily available, so i only need to integrate it with the android stack. As i have never worked with android source code i hardly have any idea about how to proceed. Also there is no tutorial available for any kind of guidance for the same.
So far with the help of this site I'm able to setup the environment using the instructions given here: http://source.android.com/source/downloading.html
I should perform the integration on jelly Bean, so have downloaded JB source code.
Now proceeding towards integration of the drivers i have no idea how to proceed. Please provide some tutorials or useful links to do so.
Thanks in advance.

android, zxing, styling the response

alright so I've searched for quite sometime on this and I can't seem to find just the kind of answer that answers my questions...so here goes nothing! And mind you, I'm new to android dev soooo I may have stupid questions that some of you may get irritated at, but we all have to learn some how right?
I'm trying to develop an application that will allow users to scan in a QR code and then display the information that is encoded into it in a nice organized way.
It seems like ZXing doesn't like the idea of integrating their code with other applications e.g. you have to use their application from the market and point to it via intents... well if I do it this way, can I decode the contents so that I can have access to the content and do as I want with it?
What would I have to include in my project from the ZXing folder that I downloaded to make it all work? And would I have to build all of the objects with in that folder in order to use them in my project?
Any help would be greatly appreciated. Thanks!
I have decided to go other routes.
The "Android way" is to do everything via intents.. However, zxing is a special case. You can follow the intent route, or you can (as it's apache licensed), download the source code and adapt as necessary. We did that for the game Barcode Beasties ( mandatory self promoting download link here : https://market.android.com/details?id=com.fawepark.android.barcodebeasties ) and that meant we could also brand the scan page as well.
If you want use the software integrated, then just download the source and either compile it as a library or just include it in your source folder as another folder.

Categories

Resources