Ahmed012345 / DroidSpeech

Android library for continuous speech recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMPORTANT - This library is now obsolete, there is a 2.0 version written in kotlin.

Please migrate to DroidSpeech2.0


Android library for continuous speech recognition with localizations.

Supports from Android SDK version 16 and above.


Google's default speech recognition library doesn't allow to continuously listen to users voice and a manual stop and start mechanism is involved to use the speech recognition again. This proved to be a downfall for third party developers to optimise the user experience of having continuous speech recognition after each speech result. Adding to this the speech recognition server throws up an error when called upon frequently thus preventing an error free experience to the end user.

Droid Speech aims to close this gap and provide unparalleled optimisation of continuous speech recognition without any of the above said issues. It is developed keeping in mind all the loopholes which needs to be blocked to have the speech recognition run seamlessly in an android device.


Gradle dependency:

Add the following to your project level build.gradle:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }

Add this to your app build.gradle:

dependencies {
    compile 'com.github.vikramezhil:DroidSpeech:v2.0.3’


Add the following to the section of your pom.xml:


Add the following to the section of your pom.xml:



For a detailed documentation 📔, please have a look at the Wiki.

In your activity, initialize the droid speech class and set the droid speech listener

DroidSpeech droidSpeech = new DroidSpeech(this, null);

To start droid speech to listen to user voice call the method startDroidSpeechRecognition(),


To close droid speech operations call the method closeDroidSpeechOperations(),


The speech result will be triggered at onDroidSpeechFinalResult,

public void onDroidSpeechFinalResult(String finalSpeechResult)
  // Do whatever you want with the speech result


Copyright 2017 Vikram Ezhil

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Android library for continuous speech recognition

License:Apache License 2.0


Language:Java 100.0%