Skip to main content

Posts

Speech to Text - Android Tutorial

This tutorial explains how to use an android inbuilt feature ' speech to text ' through which you can provide speech input to your app. How voice input works? T he speech input will be streamed to a server, on the server voice will be converted to text and finally text will be sent back to our app. I have created a simple app to demonstrate this tutorial. Below is the screenshot of the app which contains a simple button to invoke speech input and a Text-View to display the converted speech text. Now follow the coding to develop this simple application   1. stt_layout.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@drawable/bg_gradient"     android:orientation="vertical" >  ...

Text To Speech - Android Tutorial

This tutorial explains how to work with android text to speech or android speech synthesis. Also explained changing the language type, pitch level and speed level. I developed a simple interface with one input field and a button to trigger a event that will take text from input field and speaks out. Now follow the coding to develop this simple application 1. tts_layout.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".TextToSpeechActivty"      android:background="@drawable/ddd">     <Button         android:id="@+id/button1"         android:layout_width="wrap_content"         style="@style/Button"       ...

AGE CALCULATOR - ANDROID

In this Android tutorial let us learn about how to create a nice small Android app which will help  you to find out your age by year, month and days. Above screen shows the simple layout of an age calculator application, here select your date of birth by touch the Date of Birth button. Now the screen will looks like below Now your age got calculated and display in result field and also pop up as toast as given below Now follow the coding to develop this simple application 1. Age Calculator Layout (mainactivity.xml) <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@color/whatzappBorder" > //apply your favourite color           <Button       ...