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...

КОМЕНТАРІ • 116

  • @nathanisrael6211
    @nathanisrael6211 4 роки тому +1

    Tnx so much .I was searching for this tutorial to make an app that I have been thinking

  • @HuynhThanhThuan
    @HuynhThanhThuan 4 роки тому +1

    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 ?

    • @HuynhThanhThuan
      @HuynhThanhThuan 4 роки тому

      @@sixrezon Do you have facebook account ? I need more information, please !

  • @serdarymz
    @serdarymz 4 роки тому +1

    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

    • @AtifSayings
      @AtifSayings  4 роки тому +1

      Yes sure, I've used it in some of my projects that are on playstore

    • @nitishkrboro6264
      @nitishkrboro6264 3 роки тому

      @@AtifSayings what is the name of app..I am excited to download....& thank you for this tutorial

  • @vladsakun6904
    @vladsakun6904 4 роки тому +2

    Perfect video. Thanks !

  • @albertocassio2854
    @albertocassio2854 3 роки тому +1

    startActivityForResult() is deprecated. How to change?

  • @bugrahanbal1716
    @bugrahanbal1716 3 роки тому +1

    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

    • @AtifSayings
      @AtifSayings  3 роки тому

      Its library by google that's why it appears like this and mlat probably not hide able

  • @prototipehellocode7240
    @prototipehellocode7240 5 років тому +1

    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

    • @AtifSayings
      @AtifSayings  5 років тому

      sorry, didn't tried yet. but, will try to make video on that

    • @prototipehellocode7240
      @prototipehellocode7240 5 років тому +1

      @@AtifSayings Oke thanks, i hope you'll make it soon

  • @abrancaeopreto4669
    @abrancaeopreto4669 4 роки тому +1

    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.

  • @yildiz.mehmetemin
    @yildiz.mehmetemin Рік тому +1

    thanks from 2023 😀😀

  • @frnds_-hd8wn
    @frnds_-hd8wn Рік тому

    i have a problem when i type - value: "hi, say somethin"

  • @ROGUEOFFICIALPH
    @ROGUEOFFICIALPH 5 років тому +1

    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!

    • @AtifSayings
      @AtifSayings  5 років тому

      i didn't tried for offline, but this is online

    • @hotshot2472010
      @hotshot2472010 4 роки тому

      i'm not sure if it can be used offline because it has to connect to google to do the speech recognition

  • @bawanBJQ001
    @bawanBJQ001 4 роки тому +1

    in my APP says network not connected
    what should I do?

  • @kanuengnijkubola7125
    @kanuengnijkubola7125 4 роки тому +1

    I got error "Network not connected". What should be fixed? Thank you.

    • @AtifSayings
      @AtifSayings  4 роки тому

      It may require working internet connection

  • @ruiferreira4920
    @ruiferreira4920 3 роки тому

    Hi, Can you help me? When I speak it don´t recognize voice, what´s the problem? Thank you.

  • @ozairkhan7639
    @ozairkhan7639 5 років тому +1

    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.

    • @AtifSayings
      @AtifSayings  5 років тому

      WaAlaikumAssalam
      Did you followed video step by step?

  • @vishalagarwal3741
    @vishalagarwal3741 4 роки тому

    Hi
    I am getting an error on
    case REQUEST_CODE_SPEECH_INPUT
    It states Constant expression required

  • @NN-dq2rj
    @NN-dq2rj Рік тому +1

    your audio will be sent to google???? wtf?? why?

  • @egiaggata6219
    @egiaggata6219 5 років тому +2

    Thanks for your tutorial :)

  • @Smoothballoon
    @Smoothballoon 4 роки тому

    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??

  • @aryanbhaskar7872
    @aryanbhaskar7872 3 роки тому

    Is it possible to receive voice without internet if yes then how..?

  • @dizaulia
    @dizaulia 3 роки тому

    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.

    • @poisedhoneii5524
      @poisedhoneii5524 3 роки тому

      Try connecting a real device instead of the emulator

  • @suhaibshanaa508
    @suhaibshanaa508 4 роки тому

    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 ?

  • @shakilali4124
    @shakilali4124 4 роки тому +2

    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?

    • @vivekchauhan7680
      @vivekchauhan7680 4 роки тому

      you should paste this in onActicityResult
      super.onActivityResult(requestCode, resultCode, data);

  • @saikatdas7277
    @saikatdas7277 3 місяці тому

    Thanks !

  • @amritakumari369
    @amritakumari369 4 роки тому

    It is not showing the text after speech disappears on the main screen

  • @olehmazur5755
    @olehmazur5755 4 роки тому

    Thanks a lot, it works perfect for me.

  • @philm2k1
    @philm2k1 4 роки тому +1

    Thanks a lot, it works perfect for me, too.

    • @AtifSayings
      @AtifSayings  4 роки тому

      You're welcome

    • @bavi000
      @bavi000 4 роки тому

      Mic button is not even clicking for me .....can you help me

    • @deepak5283
      @deepak5283 4 роки тому

      @@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

  • @anwerammar6021
    @anwerammar6021 4 роки тому

    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

  • @ionita8345
    @ionita8345 5 років тому +1

    Thank you very much!!!!! ^_^

  • @ahmaddanish2664
    @ahmaddanish2664 2 роки тому

    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 ?

    • @alokgohiya
      @alokgohiya Рік тому

      You need to give microphone permission in manifest file

  • @hashaamkhurshid3614
    @hashaamkhurshid3614 5 років тому +1

    Heloo bro. Is there any way to develop speech recogination app for urdu language.

  • @user-jf6xz6sh1k
    @user-jf6xz6sh1k 4 роки тому

    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?

    • @user-jf6xz6sh1k
      @user-jf6xz6sh1k 4 роки тому

      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.

  • @bayanalmoqati715
    @bayanalmoqati715 2 роки тому

    Is it possible to hide the window that appears when it picks up sound" hi speak something"?

    • @AtifSayings
      @AtifSayings  2 роки тому

      I think no. But you may check their documentation for confirmation

  • @emirk8064
    @emirk8064 3 роки тому +1

    thanks mate!

  • @asifbinlatif
    @asifbinlatif 4 роки тому

    Thank you for the tutorial...

  • @ariisnaeni114
    @ariisnaeni114 3 роки тому

    How you connect to google voice to text api.?

  • @jimmyclerge5535
    @jimmyclerge5535 5 років тому

    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.

    • @rituparnaroy0811
      @rituparnaroy0811 5 років тому

      what are the libraries you have imported in import section?

  • @nelsonantonio5870
    @nelsonantonio5870 5 років тому +1

    Thanks a lot !!

  • @iu5hes
    @iu5hes 3 роки тому

    that would be great if we could have a delphi/android component for doing this...but that's another story :°(

  • @petarheinrich8318
    @petarheinrich8318 4 роки тому +1

    sample and useful.

  • @shijinrejiabraham6806
    @shijinrejiabraham6806 3 роки тому +1

    How it give feedback answers

  • @le-ze8543
    @le-ze8543 3 роки тому

    Where is source code?
    I was looking for your Web site and found

  • @marcoycaza1920
    @marcoycaza1920 5 років тому +1

    Hey , thanks! Btw.
    how can I disable the Google Toast that appears at the end???

    • @AtifSayings
      @AtifSayings  5 років тому +1

      sorry, i don't know

    • @marcoycaza1920
      @marcoycaza1920 5 років тому +2

      I found the way , you have to go "Settings -> Notifications -> And disable notifications for Google" .

    • @mriduldubey6060
      @mriduldubey6060 4 роки тому

      @Marco Ycara Lengua bro i tried it but was not able to get it done can you please help me

  • @rahaf6487
    @rahaf6487 3 роки тому

    Does it support the Arabic language?

  • @vishalagarwal3741
    @vishalagarwal3741 4 роки тому

    Is it possible to copy the text or how can we download the test from app.

    • @AtifSayings
      @AtifSayings  4 роки тому

      android:textIsSelectable="true
      Add this property in your edittext or textview xml to make its text selectable

  • @Origamiztec
    @Origamiztec 5 років тому +3

    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;

  • @zaheraabuhantash9146
    @zaheraabuhantash9146 3 роки тому

    Thanks for this video, but I want to know how can I know if there is no speech recognized?

  • @amirmohammed3291
    @amirmohammed3291 5 років тому +1

    Thank you

  • @d3zar
    @d3zar 4 роки тому

    is there any way to make this without start runonactivityforresult ?

  • @marouaneazza3519
    @marouaneazza3519 4 роки тому

    Thanks a lot

  • @nr9590
    @nr9590 4 роки тому

    i dont want to view of google assistant

  • @nishmithashetty9760
    @nishmithashetty9760 5 років тому

    Nothing is happening on click it's not even clicking on the mic button only displaying the button

  • @fatimaafifi2210
    @fatimaafifi2210 5 років тому

    How I can let the app support another language to be the text in it?

    • @AtifSayings
      @AtifSayings  5 років тому

      i didn't tried that check documentation of the library to check if it supports other languages or not

  • @anuragkumargupta7506
    @anuragkumargupta7506 5 років тому +1

    How to save text into textfile

    • @AtifSayings
      @AtifSayings  5 років тому

      ua-cam.com/video/I1fLQxdxdk4/v-deo.html

  • @ad_am_t
    @ad_am_t 5 років тому +1

    Thank you (-:

  • @corruptedgripht9941
    @corruptedgripht9941 4 роки тому +1

    ¡Thank u !

  • @gwyrabebeamba
    @gwyrabebeamba Рік тому

    QUAL A IDE?

  • @arunabhbisht2311
    @arunabhbisht2311 5 років тому +1

    how do you run in simulator

    • @AtifSayings
      @AtifSayings  5 років тому

      Install AirDroid or Vysor to display/control your android device on laptop/pc screen

  • @mansisuchak7436
    @mansisuchak7436 3 роки тому

    NO VOICE

  • @subagarail4321
    @subagarail4321 5 років тому +1

    super working

  • @lancelottheknight7126
    @lancelottheknight7126 4 роки тому

    Hi there, will this work without internet sir?

    • @AtifSayings
      @AtifSayings  4 роки тому

      I think yes since it uses google's builtin speech to text

    • @lancelottheknight7126
      @lancelottheknight7126 4 роки тому

      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 😅

  • @xala_ayman01
    @xala_ayman01 3 роки тому

    please link source?

    • @AtifSayings
      @AtifSayings  3 роки тому

      Not confirm but may be available on my blog devofandroid.blogspot.com

  • @hasanalsayyed914
    @hasanalsayyed914 4 роки тому

    i love youu 😍❤

  • @nr9590
    @nr9590 4 роки тому +1

    can you help me

  • @subulwasitimela3334
    @subulwasitimela3334 4 роки тому

    Is there anyway of connecting speech recognition to image recognition

  • @preranaattarde8297
    @preranaattarde8297 4 роки тому +1

    I got "Network not connected error" what should i do????

    • @AtifSayings
      @AtifSayings  4 роки тому

      It may requires working network conncetion

  • @divyasrivastava495
    @divyasrivastava495 3 роки тому

    I am not getting result in textview