Speech To Text - Android Studio - Java
Вставка
- Опубліковано 20 вер 2024
- Android has a builtin feature i.e Speech To Text through which we can provide Speech input to your app.
In this video we will use this feature to take Voice input and convert it to a plain text and then set that plain text to a TextView.
Buy Me a Coffee: paypal.me/atif...
Watch For Kotlin: • Speech To Text - Andro...
Feel free to comment in case of any problem
Chanel:
/ mohammadatif1
Websites:
technifysoft.com/
devofandroid.b...
Apps/Games on PlayStore:
play.google.co...
If u like this video, Like, Comment, Subscribe to support us...
Tnx so much .I was searching for this tutorial to make an app that I have been thinking
I have a problem: no Activity found to handle Intent (act = android.speech.action.RECOGNIZE_SPEECH) has extra, May you help me with my problem, Thank you ?
@@sixrezon Do you have facebook account ? I need more information, please !
Thanks for video bro. Can we use this for commercial purpose? I mean publishing on Play Store with advertisements or sell this app ? Google dialog makes me confused
Yes sure, I've used it in some of my projects that are on playstore
@@AtifSayings what is the name of app..I am excited to download....& thank you for this tutorial
Perfect video. Thanks !
startActivityForResult() is deprecated. How to change?
hey did you figure it out?
Hello, first of all thank you very much, I have a question I wonder that when we click mic we can see "Hi speak something " and google icon, how can I hide this pop up window ?
Thank you
Its library by google that's why it appears like this and mlat probably not hide able
Hello
Atif Pervaiz
Can I ask a question ?
how to make TTS app but we don't need to use intent method in java ? So we can immediately show the text without click the button component
sorry, didn't tried yet. but, will try to make video on that
@@AtifSayings Oke thanks, i hope you'll make it soon
hello all right, congratulations on the video, can you help me? I wonder if there is any method for me to control the end of speech-to-text, instead of being automatic as dialogues.
thanks from 2023 😀😀
i have a problem when i type - value: "hi, say somethin"
Good day! Can i ask a question? Can it be offline? How to use it without internet. Because I tried to use it and when I click the mic button it said there that Offline Mode Unavailable. Can you help me? This is very important because I am using it for my research. Thank you!
i didn't tried for offline, but this is online
i'm not sure if it can be used offline because it has to connect to google to do the speech recognition
in my APP says network not connected
what should I do?
It works on phones
Thanks
I got error "Network not connected". What should be fixed? Thank you.
It may require working internet connection
Hi, Can you help me? When I speak it don´t recognize voice, what´s the problem? Thank you.
salam bahi. i want to ask that when i speak it dont response mean when i speak it dont write text. will i used to enable google API for it.
WaAlaikumAssalam
Did you followed video step by step?
Hi
I am getting an error on
case REQUEST_CODE_SPEECH_INPUT
It states Constant expression required
your audio will be sent to google???? wtf?? why?
Ask google 😁
Thanks for your tutorial :)
You're welcome
So i want to take the text line from the speech and save it seperately in a string...pls tell me how can i do it??
Is it possible to receive voice without internet if yes then how..?
hello can you help me sir, when i following step by step and running in my phone it works, but when i click mic button the mic page doesn't come out. when i keep clicking the mic button, the app stops.
Try connecting a real device instead of the emulator
hello , first Thank You very much but
a want to ask you the result from voice does not print in textview
how i can make this ?
Hello, thanks for the video. I followed step by step and finished, however, I get a red underline on my 'onActivityResult' function. Do you know why this may be happening?
you should paste this in onActicityResult
super.onActivityResult(requestCode, resultCode, data);
Thanks !
Welcome!
It is not showing the text after speech disappears on the main screen
Thanks a lot, it works perfect for me.
Thanks a lot, it works perfect for me, too.
You're welcome
Mic button is not even clicking for me .....can you help me
@@AtifSayings how to add voice message feature for chat app in andriod by using java .any api or packages available for this process pls help me
please , i need to know is that free ? , if i use that in video call app ? because i found on google cloud website , i have to pay if i use it for more than 60 mins but it didn't ask for a keyy
Thank you very much!!!!! ^_^
hey there. I have followed all of the steps from this video. however, i have got a problem here. when i tried to speak, the microphone did not detect my voice and also did not capture the words every time i speak. at the same time, there were no errors inside my code. can you help me please ?
You need to give microphone permission in manifest file
Heloo bro. Is there any way to develop speech recogination app for urdu language.
i don't know yet
I call a context menu on a drawable folder but don't get as much file types as in the tutorial at "New". Particularly there is no Vector Asset. How can I manage it to appear or create it in a different way? Do I need to install some additions for it to appear?
I used other Android version. It is said that "Android 4.4 (API level 20) and lower doesn't support vector drawables [directly]" in Android Studio - Vector Graphics docs. Seems like this context menu item was moved to be created in a different way.
Is it possible to hide the window that appears when it picks up sound" hi speak something"?
I think no. But you may check their documentation for confirmation
thanks mate!
Thank you for the tutorial...
How you connect to google voice to text api.?
Hello! thank your video. If speech-to-text feature is not yet available on google for my language (haitian creole), it is still possible to create it. I don't know if there is a way I can create my own data base for the language. Thank you again for your help.
what are the libraries you have imported in import section?
Thanks a lot !!
that would be great if we could have a delphi/android component for doing this...but that's another story :°(
sample and useful.
How it give feedback answers
Didn't get what exactly you want to say, elaborate
@@AtifSayings how to make a voice assistant
Where is source code?
I was looking for your Web site and found
Hey , thanks! Btw.
how can I disable the Google Toast that appears at the end???
sorry, i don't know
I found the way , you have to go "Settings -> Notifications -> And disable notifications for Google" .
@Marco Ycara Lengua bro i tried it but was not able to get it done can you please help me
Does it support the Arabic language?
Is it possible to copy the text or how can we download the test from app.
android:textIsSelectable="true
Add this property in your edittext or textview xml to make its text selectable
Make sure to have these packages imported at the top to make it work:
package ad3d.com.speechtotext;
import android.speech.RecognitionListener;
import android.speech.RecognizerIntent;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.ImageButton;
import android.view.View.OnClickListener;
import android.speech.tts.TextToSpeech;
import android.content.Intent;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.Locale;
how to import them
Thanks for this video, but I want to know how can I know if there is no speech recognized?
Qual IDE É UDADA?
Thank you
You're welcome
is there any way to make this without start runonactivityforresult ?
I think no
Thanks a lot
i dont want to view of google assistant
Nothing is happening on click it's not even clicking on the mic button only displaying the button
Same problem bro
The same problem
How I can let the app support another language to be the text in it?
i didn't tried that check documentation of the library to check if it supports other languages or not
How to save text into textfile
ua-cam.com/video/I1fLQxdxdk4/v-deo.html
Thank you (-:
¡Thank u !
You’re welcome
QUAL A IDE?
how do you run in simulator
Install AirDroid or Vysor to display/control your android device on laptop/pc screen
NO VOICE
super working
Hi there, will this work without internet sir?
I think yes since it uses google's builtin speech to text
Atif Pervaiz thank you very much sir, I was hoping that it wont need internet for the speech recog to work because we dont have internet access always here in my country 😅
please link source?
Not confirm but may be available on my blog devofandroid.blogspot.com
i love youu 😍❤
as a programmer LOL 🧐🤓😅
can you help me
How may i help you
Is there anyway of connecting speech recognition to image recognition
I got "Network not connected error" what should i do????
It may requires working network conncetion
I am not getting result in textview