Android: PocketSphinx speech/voice recognition library in background.

As you know we have Google Voice for voice recognition. Here is simple way to implement offline speech recognition using PocketSphinx lib. I’ve created simple app which will run Service with speech recognition functionality. You can add one keyword here: recognizer.addKeyphraseSearch(KWS_SEARCH, KEYPHRASE); Sure PocketSphinx have multi-keyword functionality. File menuGrammar = Read more…

Send email with text file as attachment android sample

Here is little sample how to send email (send intent to Mail app) with text file as attachment. Screenshot:   And here is source code of main feature: private void sendIntentToGmailApp(File fileToSend) { if(fileToSend != null){ Intent email = new Intent(Intent.ACTION_SEND); email.putExtra(Intent.EXTRA_SUBJECT, “Send Text File As Attachment Example”); email.putExtra(Intent.EXTRA_TEXT, emailBody); email.putExtra(Intent.EXTRA_STREAM, Read more…