How to Build a Speech to Text App in Android Studio
HTML-код
- Опубликовано: 6 сен 2024
- Master programming and take your career to new heights with clear, concise C, Android, and Web Development courses for just Rs. 999 / $ 12. Get lifetime access and certificate. Click here to enroll: courses.sandip...
In this video, I'll show you how to how to implement speech-to-text functionality in an android app. Try this app in a silent place for the best result. Mainly, we need the SpeechRecognizer class in our app to be able to use speech to text.
Source Code for this video
github.com/san...
| -------------------------------------------------------------------- |
👍 Subscribe to the Channel
www.youtube.co...
Check out other Playlists
► Introduction to Programming with C (2 hours of video content)
• C Programming Tutorial...
► Android App Development for Beginners (8+ hours of video content)
• Android Apps and Games...
► Build a Complete Quiz App for Android
• Build a Complete Quiz ...
► Android SQLite Programming for Beginners (2.5 hours of video content)
• Android SQLite Program...
► Android Game Development in Android Studio: Build Games for Absolute Beginners (3+ hours of video content)
• Android Game Developme...
► Android Game Development - Create Your First Mobile Game
• Android Game Developme...
► Android Game Development Tutorial
• Android Game Developme...
► Programming Flappy Bird for Android
• Programming Flappy Bir...
► Object Oriented Programming Fundamentals
• Object Oriented Progra...
► jQuery for Beginner to Advanced
• jQuery for Beginner to...
► PHP MySQL CRUD Tutorial (Create, Read, Update, Delete) (1+ hour of video content)
• PHP MySQL CRUD Tutoria...
❤️ You can donate by clicking here
PayPal: paypal.me/Crea...
For Indians: www.instamojo....
✉️ For Business Inquiries
sandip.bhattacharya16@gmail.com
📣 Follow me on other sites
→ Website: SandipBhattach...
→ Udemy: bit.ly/SandipUdemy
→ Skillshare: bit.ly/SandipSk...
→ Google Play: bit.ly/SandipPlay
→ Facebook Page: bit.ly/SandipFa...
→ Facebook Group: bit.ly/PWSGroup
→ LinkedIn Group: bit.ly/PWSGroupLI
→ Twitter: bit.ly/SandipTw...
→ GitHub: bit.ly/SandipGi...
Master programming and take your career to new heights with clear, concise C, Android, and Web Development courses for just Rs. 999 / $ 12. Get lifetime access and certificate. Click here to enroll: courses.sandipbhattacharya.com/s/store
Thanks you, Sandip
I changed to Uzbek language. Working...
@Muhriddin, Thanks, really appreciate your feedback. 👍
i want this in bangla language
Hi, Can you help me? When I speak it don´t recognize voice, what´s the problem? Thank you.
Hi @Rui What language are you using? If your device doesn't have the language installed, it, obviously, can't play it. Also test with another device.
How should I implement it for Android 11 ? Because it says device doesn't support speech to text... in each Android 11 phone.
Hello, I have tested the app in an AVD (Nexus 5X) running Android 11 (API 30) and it works perfectly.
@@SandipBhattacharya
I used >>
if(intent.resolveActivity(getPackageManager())!=null){
startActivityForResult(intent, 10);
} else {
} Instead of try/catch.
intent.resolveActivity(getPackageManager())!=null does not work on Android11,
After using try/catch It's solved now. Thank you.
startActivityForResult(intent, RESULT_SPEECH) is deprecated. can you help me? thanks
also my problem, have you figured it out?
Same problem for me, have you solve this issue ? Thanks
Thanks a bunch, it helped a lot for my DSP group project
Glad I was able to help! 🙂
Best of luck for your learning.
@@SandipBhattacharya
Hi sir I have a error in startActivityForResult it was striked through 😢how to rectify the error sir
Hello, first of all thank you very much, I have a question I wonder that when we click mic we can see google icon, how can I hide this pop up window ?
Thank you
You are welcome. Let me check if it's possible.
sir its show " your device not support " than what can i do for support this ?
Use a device having TTS engine.
plz give me idea on hearing aid application
Thanks for this video, but I want to know how can I know if there is no speech recognized?
Check if the text returned is empty.
@@SandipBhattacharya if there is no speech it will keep open and ask you to make anther iteration, and I could not check if the text is empty or not until l close it or if there is a speech. So my question is how to know if the text is empty from the first iteration and without the need to close it?? Thanks in advanced.
Try using the SpeechRecognizer interface.
Is it possible to use this mechanism on the server side (e.g. by activating the application via an emulator)?
dear sir can you help me on sound amplifer hearing aid application using android studio
I will try
@@SandipBhattacharya ok but i want for now since my project will remain only one weeks to presentation ...so sir help me the source code for this application using android
bhai agar ak se jyada edittext ho toh kya kare please
No problem. Just click the btnSpeak multitple times and each time set it's text (text.get(0)) with different EditTexts.
What is the max length that it can print?
Which format is used in it?.
Pls tell bro...
Some data on the internet indicates, that, there is a maximum time limit of around 60 seconds for an individual Speech Recognition session. It takes real-time audio recording and doesn't allow you to provide your own sound data.
startActivityForResult is striked through for me
but i don't know why so. Even i downloaded the source code from github same occured. some one help me
I have a same problem.. 😢 what is thr the solution to the striked
thank you for this
You're welcome!
how can i add bangla language in this app
how can i fill edittexts with voice command?
It's simple. Create an EditText object in XML. Get the handle in onCreate(). In onActivityResult() method, set the EditText like this:
myEditText.setText(text.get(0));
does this app require to be online or it maybe offline app ?
offline
bro how can i add tamil language
Where's the link to this code?
Link in description.
How to run the code?
You can build an APK, transfer it to your mobile and run the App.
❤️❤️❤️
hello help me
app is not opening
Did you check your Logcat statements for any errors?
@@SandipBhattacharya no errors at all