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

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

  • @SandipBhattacharya
    @SandipBhattacharya  Год назад +1

    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

  • @muhriddingayratov1791
    @muhriddingayratov1791 2 года назад +1

    Thanks you, Sandip
    I changed to Uzbek language. Working...

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

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

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

      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.

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

    How should I implement it for Android 11 ? Because it says device doesn't support speech to text... in each Android 11 phone.

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

      Hello, I have tested the app in an AVD (Nexus 5X) running Android 11 (API 30) and it works perfectly.

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

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

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

    startActivityForResult(intent, RESULT_SPEECH) is deprecated. can you help me? thanks

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

      also my problem, have you figured it out?

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

      Same problem for me, have you solve this issue ? Thanks

  • @cherychaen1239
    @cherychaen1239 2 года назад +1

    Thanks a bunch, it helped a lot for my DSP group project

    • @SandipBhattacharya
      @SandipBhattacharya  2 года назад +1

      Glad I was able to help! 🙂
      Best of luck for your learning.

    • @21BCA07Gokulapriya
      @21BCA07Gokulapriya 7 месяцев назад

      ​@@SandipBhattacharya
      Hi sir I have a error in startActivityForResult it was striked through 😢how to rectify the error sir

  • @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 google icon, how can I hide this pop up window ?
    Thank you

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

    sir its show " your device not support " than what can i do for support this ?

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

    plz give me idea on hearing aid application

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

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

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

      Check if the text returned is empty.

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

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

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

      Try using the SpeechRecognizer interface.

  •  3 года назад

    Is it possible to use this mechanism on the server side (e.g. by activating the application via an emulator)?

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

    dear sir can you help me on sound amplifer hearing aid application using android studio

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

      I will try

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

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

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

    bhai agar ak se jyada edittext ho toh kya kare please

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

      No problem. Just click the btnSpeak multitple times and each time set it's text (text.get(0)) with different EditTexts.

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

    What is the max length that it can print?
    Which format is used in it?.
    Pls tell bro...

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

      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.

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

    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

    • @21BCA07Gokulapriya
      @21BCA07Gokulapriya 7 месяцев назад

      I have a same problem.. 😢 what is thr the solution to the striked

  • @bonfaceosuka
    @bonfaceosuka Год назад +1

    thank you for this

  • @industrialengineeringcompu9683

    how can i add bangla language in this app

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

    how can i fill edittexts with voice command?

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

      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));

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

    does this app require to be online or it maybe offline app ?

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

    bro how can i add tamil language

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

    Where's the link to this code?

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

    How to run the code?

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

      You can build an APK, transfer it to your mobile and run the App.

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

    ❤️❤️❤️

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

    hello help me

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

    app is not opening