Android Tutorial: Convert Speech To Text | Speech Recognition

Поделиться
HTML-код
  • Опубликовано: 11 апр 2017
  • Access 7000+ courses for 15 days FREE: pluralsight.pxf.io/c/1291657/...
    Android has an inbuilt feature speech to text through which you can provide speech input to your app. With this feature you can add some of the cool features to your app like adding voice navigation and it is very helpful when you are targeting disabled people.
    In the background how voice input works is, the 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. This tutorial can be followed by a beginner as the source code in github is also available.
    Github Source Code: github.com/smartherd/SpeechTo... .
    .
    Please donate and support my work
    (If you think my free tutorials are better than paid ones :)
    - Patreon: bit.ly/patreon-donate
    - Paypal/Payoneer: sriyank123@gmail.com
    - UPI (only for India): smartherd@okaxis
    :: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
    - Access my premium courses: bit.ly/sriyank-courses
    Free Programming courses:
    - Ruby Programming: bit.ly/smyt-r
    - Dart Programming: bit.ly/smyt-d
    - Kotlin Programming: bit.ly/smyt-k
    - Java Programming: bit.ly/smyt-j
    - Kotlin Coroutines: bit.ly/smyt-coru
    Free Flutter course:
    - Flutter App Development: bit.ly/2Rg7EFR
    Free Android courses:
    - Android using Kotlin: bit.ly/smyt-ka
    - Android using Java: bit.ly/smyt-ja
    - Android Material Design: bit.ly/2SMJqU6
    - Android Jetpack Architecture: bit.ly/yt-j
    - Android Multiple Screen Support: bit.ly/smyt-mss
    - Android Retrofit: bit.ly/2Ee6GHn
    More free programming courses:
    - bit.ly/smy-list
    Check out my website:
    - bit.ly/smartherd
    Let's get in touch! [Sriyank Siddhartha]
    LinkedIn: bit.ly/sriyank-linkedin
    Facebook: bit.ly/smartherd-facebook
    Instagram: bit.ly/sriyank-instagram
    Twitter: bit.ly/sriyank-twitter
    Github: bit.ly/smartherd-github
    --- Thank you for your love and support ---

Комментарии • 171

  • @terryhoran820
    @terryhoran820 7 лет назад

    Thank you Shreks & Annie for a really good video,
    I have Learned a great deal about Java, which I am new to.

  • @aditibane9229
    @aditibane9229 6 лет назад +1

    I was finding difficulty in speech to text application for creating a chat bot in eclipse using java. But as I saw this video, I just thought of doing it in android and it's working. Now I am creating my whole project in android. Thanks for the great video mann :)

  • @chandrachudgowda6928
    @chandrachudgowda6928 6 лет назад

    Thanks a lot, this really helped me for my app!

  • @techvishz2577
    @techvishz2577 4 года назад

    I have a Nice Idea for app And Your Tutorials are Helping me alot ,Thank You.

  • @sumuduathukorala1252
    @sumuduathukorala1252 7 лет назад

    Thanks man. great work (y)

  • @johndavis4693
    @johndavis4693 4 года назад

    Hi, thank you for your video, just a quick question, I did every step according to your video, at the end the app shows the ToastMessage (Your Device Doesn't Support Speech Input) in else part, but my phone is not that old I bought it last year Huawei Nova3, do you know why is like this?

  • @Lamoboos223
    @Lamoboos223 5 лет назад

    between each method and the other a line that seperates them from each other, how did you do that ?

  • @anhhoaduong4563
    @anhhoaduong4563 7 лет назад +1

    thank for tutorial but i have question for you
    i see Virtual machine genymotion can''t play it but i using avd it can play
    you can have anwer for me thank very much

  • @neogiftsebanze5752
    @neogiftsebanze5752 4 года назад

    thanks my brother,this video was helpful

  • @blackndwhite95
    @blackndwhite95 6 лет назад

    Can you do a video for Speaker Recognition also? I would really need help with a Text-Dependent Speaker Recognition app

  • @namratagaikwad751
    @namratagaikwad751 6 лет назад

    Thanks For the tutorial. But I have observed that when I set default language of my mobile as Deutsche the App is able to recognize english, french and japnese as well. why is it so...?

  • @jeetchheda8916
    @jeetchheda8916 4 года назад +1

    I just want to know a way to make this recognizer available only when the user speaks an activation command.. Like "Ok Google".

  • @wassaufkhalid8593
    @wassaufkhalid8593 6 лет назад +1

    can we hide that dialog box of speech to text? and how ?

  • @codewithmi7749
    @codewithmi7749 4 года назад

    nice video and so informative great.....and i have a question after showing the text how can we copy the text?????thanks

  • @hatzisn
    @hatzisn 5 лет назад

    What is the program you use to record the screen of your Phone AND THE CLICKS on it? How do you show this phone on the screen. PLEASE REPLY SOON. I REALLY NEED IT...

  • @sabeehbangash8016
    @sabeehbangash8016 5 лет назад

    how to find anything by voice from your gallary or from your contacts or from any where in android code
    plz could u tell me

  • @nr9590
    @nr9590 4 года назад +3

    how to remove the google speech logo when we click on the open mic button

  • @prasanthnag7453
    @prasanthnag7453 6 лет назад

    how do I pass the speech in dialogue fragment to the searchView in the menu bar?

  • @magster9605
    @magster9605 4 года назад +2

    I'll send you something when finished. thank you for your help.

  • @4youfusion
    @4youfusion 5 лет назад +1

    Thanks brother to resolve my error..keep making

  • @serdarymz
    @serdarymz 4 года назад

    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

  • @mal5256
    @mal5256 3 года назад

    thank you so much for your explanation with code

  • @androidteam6427
    @androidteam6427 5 лет назад

    for a one-minute limit on audio duration, what should i do in this code?

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

  • @sabairshad2589
    @sabairshad2589 4 года назад

    Thank You so much for your support...

  • @brijpatel237
    @brijpatel237 6 лет назад

    hey..nice video.only one question..can i hold it for more time means even if i stop talking then also app should here it and when i press a certain button then it should stop
    any answers are welcome!...thank you

  • @statusgram8592
    @statusgram8592 3 года назад +1

    bro agar ak se jayada textview ho toh kya bar bar implemnet kr na odega kya bro please reply please

  • @leilibagheri8563
    @leilibagheri8563 5 лет назад

    how can i compare the result of speech in textview with another text ?

  • @johnrazensadsad3732
    @johnrazensadsad3732 7 лет назад

    Hi thanks for your video tutorial:).But we have a project that we need to make our own library for those words.Without using the built in app like google voice??Hope you can help me with our project:)

  • @nileshtak9371
    @nileshtak9371 5 лет назад

    can i get text in different languages such as Hindi or Marathi?
    Locale does'nt shows the option of Indian languages??

  • @manikandaprabhus8573
    @manikandaprabhus8573 6 лет назад

    bro I had doubt? If we speek in tamil what it will do?or else we want to add dictionary to this file!

  • @akshatha444
    @akshatha444 5 лет назад

    hello sir, i am developing an android app which takes input as speech and generate response or output in speech. but couldnt generate output in speech, just getting text format. can u plz help me out to get output in audio format?

  • @kabariyakritesh9832
    @kabariyakritesh9832 7 лет назад

    can I speak to text control in add to background process in android studio ?....

  • @gabrielcesar568
    @gabrielcesar568 6 лет назад

    Fantastic video. You're great!

  • @SoapMacTavish2
    @SoapMacTavish2 5 лет назад +1

    Hello, would it be fine with you if i publish this to google playstore?

  •  5 лет назад

    I have a question. If we send voice file from code does it give text?

  • @sachigiable
    @sachigiable 6 лет назад

    Hey ! Can someone help me with how to convert to text a prerecorded audio file using android studio?

  • @Naruto77695
    @Naruto77695 4 года назад +2

    When I Click Mic It Show this Message Please Help ...
    Your Device Don't Support Speech Input

  • @3dprofessor520
    @3dprofessor520 2 года назад

    How do you make the speech recognition continuous?

  • @junaidabid9084
    @junaidabid9084 6 лет назад +1

    i have a problem
    when i click on mic and say something a message show that
    ( your audio is send to google to provide voice recognition service)
    plz help me

    • @SathishKumar-rk6md
      @SathishKumar-rk6md 5 лет назад

      hi @junaid javed...did you find any solution for your problem?

  • @MarianoGoni
    @MarianoGoni 4 года назад

    Not working on latest Android Studio - can you update?

  • @Effectivebasketball
    @Effectivebasketball 3 года назад +1

    Hello, I have a question is there a way to process voice continuously?
    I give you an example to draw a better picture.
    User press start.
    The app starts to listen and store voice values as a text value.
    Two ways - one continuously listens without stopping until the user manually stops the process.
    So I end up with text (String) that will be processed with any logic required after.
    The second way that might work is loop/life processing. Meaning that even the app continuously listens to user commands. App processing each word at a time, stores it as a text while listening to the next command. Again without breaks and without missing words/commands in between. Till use stop the process.
    So if you have some ideas, references and might be even examples I will be very grateful.
    Thank you.

    • @hamza-hy5rv
      @hamza-hy5rv 2 года назад

      Hello Val i am searching for the same solution. Please let me know if u have found solution to this.

  • @emulien2673
    @emulien2673 5 лет назад

    Hi
    Good job but you can only say short sentences
    What must we do to turn your code in a dictation app ?
    Regards

  • @Misssssysparkles
    @Misssssysparkles 7 лет назад

    I was looking for an app that i can use in live stream on you tube that will convert voice to text while im driving for android

  • @irisespanola560
    @irisespanola560 6 лет назад

    how do you insert ur phone interface to ur pc?

  • @devanshkhandelwal6722
    @devanshkhandelwal6722 3 года назад +1

    I want speech recognizer to take translate internal audio how can i do that???

  • @Twentizz
    @Twentizz 2 года назад

    Can I put this example in my AR application too but I don't know how to put that in the code....

  • @farrukhsaleem1400
    @farrukhsaleem1400 7 лет назад

    Hi Smartherd
    i am creating this application successfully but i want MIC on till the application is closed.
    help me please for this problem

  • @privateuse4157
    @privateuse4157 Год назад

    Any examples without opening popup i want to print it dirextly in search box

  • @hayunnir
    @hayunnir 3 года назад

    Great video brother! What if I record a phone call and now I have a file - can it also convert it to text?

  • @paarthania3694
    @paarthania3694 2 года назад

    What if i want to store the transformed text? how can i do that?

  • @siddharthbansal6271
    @siddharthbansal6271 2 года назад

    in my app the else part "this device doesn't support Speech Input" this one executes how can I resolve it

  • @rohitpaldiwal4973
    @rohitpaldiwal4973 4 года назад

    Converted text not set in text view can you please help??

  • @Shanaowz
    @Shanaowz 6 лет назад

    Is it possible to hide the dialog box?

  • @vishvajeetnimbalkar6165
    @vishvajeetnimbalkar6165 6 лет назад

    Nice...it really works good...
    N can you plz tell me what is the code for voice control car app for Arduino from Android studio...

  • @bokbokbd3555
    @bokbokbd3555 5 лет назад

    Bro, I'm facing problem while running it in emulator..Emulator is showing no internet connection!! That's why app can't take any voice input.what to do?

  • @chandraprakashshukla413
    @chandraprakashshukla413 4 года назад +1

    How can we run Speech to text in the background?

  • @jovicazores6320
    @jovicazores6320 3 года назад

    Hello Sir, greetings from the Philippines! Can I ask Sir on how to make this identify specific word and then I want it to show a dialog box after it. I stumbled upon your code to make it but unfortunately I'm not able to do so hehe. Hoping for you answer, thanks a lot!

  • @gowdafootballacademy9980
    @gowdafootballacademy9980 6 лет назад

    in offline its showing improper output.In Online its perfect....any help here

  • @kattubadi1
    @kattubadi1 5 лет назад

    great. I loved it.

  • @nguyenvanthinh9344
    @nguyenvanthinh9344 5 лет назад +1

    8:06 - My vitural device doesnt have Google voice typing. What can i do now? How can i solve this problem>

    • @lingdong8736
      @lingdong8736 4 года назад

      mình tải genymotion samsung galaxy s7 nhưng cũng k thấy phần voice typing; bạn đã có solution chưa; bạn đã
      dùng device nào mình cảm ơn

  • @AbdurRehman-nd5ui
    @AbdurRehman-nd5ui 5 лет назад

    How to convert arabic speech to a text pattern and then sync it with another voice

  • @martin2cs34
    @martin2cs34 5 лет назад

    hi bro, this code will support android 5.1.1 or not?

  • @Pooja-en4uf
    @Pooja-en4uf 4 года назад

    Hi do to English text translation can you provide I need for project

  • @user-we1ru9xt1w
    @user-we1ru9xt1w 3 года назад

    If there is no speech or the dialogue is closed via the tab, a failure occurs ... Is that not necessary to process?

  • @abdulmalikalasadi
    @abdulmalikalasadi 4 года назад +2

    23:01 Error running 'app': No target device found. how can to solve this error?

    • @liubomyr-peteliuk
      @liubomyr-peteliuk 4 года назад

      Looks like your android studio has no emulator. Go to AVD manager and download some devices (emulators)

  • @ireshrajithakalhara6452
    @ireshrajithakalhara6452 3 года назад

    what about recognizing non-dictionary word like names, address

  • @ColonelStraker
    @ColonelStraker 3 года назад

    Anyone else having this issue in 2020 Aug? On a samsung galaxy S series phone, I'm using the keyboard mic button to record text, but often there is a delay and the system returns some other person's message which shows for a brief moment and then gets erased.

  • @zakalberda6618
    @zakalberda6618 7 лет назад

    Thanks! Good work!

    • @zakalberda6618
      @zakalberda6618 7 лет назад

      Anshuman Dube I ended up just downloading Google keyboard and used that instead. The code way wasn't very accurate. Not sure exactly why.

    • @zakalberda6618
      @zakalberda6618 7 лет назад

      Anshuman Dube I personally wouldn't use this only because it doesn't work flawlessly. I couldn't find any other ways besides suggesting the user downloads the Google keyboard. The Google keyboard is free and works flawlessly. So if the user wants to use speech features they can just download and use that.

  • @Lubos-qp3ms
    @Lubos-qp3ms 6 лет назад

    Thank you very much it works but only on mobile no on virtual device. Perhaps problem with support languages. It's huge jump for me.

  • @gamboagambino7451
    @gamboagambino7451 7 лет назад

    Super. I'd like to request a series on designing layouts to fit multiple screen sizes. There seems to be none on RUclips 👍

    • @smartherd
      @smartherd  7 лет назад +1

      +Gamboa Gambino I have made videos on that though it's little old and new functionalities are now there.. But stil it will. Help. You alot

    • @deepthireddy4291
      @deepthireddy4291 7 лет назад

      Smartherd I

    • @deepthireddy4291
      @deepthireddy4291 7 лет назад

      Smartherd the
      same

    • @deepthireddy4291
      @deepthireddy4291 7 лет назад

      drgv

    • @smartherd
      @smartherd  7 лет назад

      we r different 😂😆

  • @asadwazir1012
    @asadwazir1012 5 лет назад

    can we convert audio file to text?

  • @prakhar1023
    @prakhar1023 7 лет назад

    Please, also make a tutorial on-''Adding search view to list view(contact list) ..

  • @abhijeetkharat4582
    @abhijeetkharat4582 4 года назад

    where you called for getSpeechInput

  • @dhruvnaik5317
    @dhruvnaik5317 2 года назад

    how to solve problem of not getting speech input supported?

  • @aofjirapas1091
    @aofjirapas1091 6 лет назад +1

    How can i use voice recoignition convert text to file word ? example pls

  • @dalriada33
    @dalriada33 4 года назад

    great video!

  • @watawonderfulworld
    @watawonderfulworld 6 лет назад +5

    I wanted to know if it works without Internet. You told me even before asking... thanks a lot.

    • @smartherd
      @smartherd  6 лет назад

      Well i try my best to include all your questions in the video... Haha

  • @aimubh8164
    @aimubh8164 2 года назад

    Hello can u help me with my project problem

  • @aayushsingh9622
    @aayushsingh9622 5 лет назад

    I want the recognizer to run every time it hears something from the mic rather than pressing the mic button , could anyone help me out with it.

  • @nazariistefanyshyn
    @nazariistefanyshyn 6 лет назад

    It gets me error "network not connect". But chrome is working in emulator.
    What i should do?

  • @mohamedsharfudeen4348
    @mohamedsharfudeen4348 3 года назад

    How to send the displayed text to Arduino via blue tooth

  • @devinjones3350
    @devinjones3350 4 года назад

    How to set other languages like Indian language and other ?

  • @dikshu3101
    @dikshu3101 4 года назад

    How to change Ggogle to any other String

  • @qualityteam4797
    @qualityteam4797 4 года назад

    how to achieve hindi text output ?

  • @ehtashamali821
    @ehtashamali821 5 лет назад

    Thanks for your Hardwork.. Great Work.
    Can you plz tell me... How you connect your real device with your system (laptop) ?

  • @seharimran1380
    @seharimran1380 4 года назад

    text is not displaying in textview

  • @AniketKumar-bm8gi
    @AniketKumar-bm8gi 3 года назад

    Nice video 🙏

  • @skysoh2584
    @skysoh2584 6 лет назад

    Hello there, I have an issue here. Whenever I click on the mic, it pops out "Tap to speak. Try again.". May I know how to resolve this? I have already included in the AndroidManifest.xml but it doesn't seem to be working. Need help badly. =(

  • @mangaldipd6270
    @mangaldipd6270 4 года назад

    After implementation of this code in a new dummy application a pop up is showing that "Network not connected". Could you please help me why this error has occurred ?I am run this code in both Real device and emulator

    • @_Triple-B
      @_Triple-B 4 года назад

      on an emulator it wont work at all. you will have the same error code. it is possible you have to install / activate the google speech on your device. on stackOverFlow there are some examples to get there

  • @chloecui2774
    @chloecui2774 3 года назад

    can you copy and paste code?

  • @sandeepagrawal7945
    @sandeepagrawal7945 2 года назад

    why does this does not work on samsung phone?

  • @sbtopzzzlg7098
    @sbtopzzzlg7098 3 года назад

    Nice video.

  • @xuanpham-ln6ud
    @xuanpham-ln6ud 6 лет назад

    thank you so much

  • @iloveyouallah..8643
    @iloveyouallah..8643 4 года назад

    How it possible in Notepad

  • @uzzalcontact981
    @uzzalcontact981 5 лет назад

    hello Dear, I am something problem face,
    when I speak then ok...
    but problem face I can, when I new talk the old talk is remove
    how I can solve it.........!
    Please Dear,
    I am waiting for your answer...............................................................

    • @smartherd
      @smartherd  5 лет назад

      You can verify the code. Link in the description

  • @JODECIFEENIN
    @JODECIFEENIN 5 лет назад

    is it always listening

  • @shahzaiblashari7250
    @shahzaiblashari7250 5 лет назад +1

    Superb

  • @sachinmishra4232
    @sachinmishra4232 3 года назад

    How can I convert Speech to text in hindi

  • @thesadsaintlist
    @thesadsaintlist 6 лет назад

    bro...
    i finished the project and it worked perfectly but it accepted the local languag only
    i want it to accebt one lang.
    can you fix this pleas