Flutter Tutorial - Speech To Text & Voice Recognition

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 102

  • @HeyFlutter
    @HeyFlutter  Рік тому +1

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/speech_to_text_example

  • @fabiovokrri517
    @fabiovokrri517 4 роки тому +7

    How do you make so simple to understand such a complicated thing? AMAZING!

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

    So consistent ❤️

  • @Android-um8pe
    @Android-um8pe 3 роки тому +1

    Hi, Thank you very much for this wonderful video. I shall be very much grateful if you could tell me how to navigate between different screens in the mobile app using the methods you have explained in the video.

  • @mischak.605
    @mischak.605 2 роки тому +1

    Hello Johannes! One more question! I am using this plugin, but need to toggle microphone by a wake word. Is it somehow possible? Now I am using shake detector but this is not an option. Maybe to use google assistant which calls the function toggleRecording from speech_to_text package? How would you handle this?
    Thank you!

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

    As usual !!!!
    Amazing tuts :)

  • @therootsoftaste
    @therootsoftaste 3 роки тому +2

    Hi Johannes! I'm trying to recreate your tutorial, but I get 2 errors. There is an error in the main.dart at home: HomePage (), and another error at home_page.dart onPressed: toggle ... Could you possibly help me?

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

      Das ist der Fehler. Allerdings gibt es noch einen weiteren Fehler im home_page.dart bei onPressed: toggleRecording, - The named parameter 'onPressed' isn't defined. Deine Tutorials sind wirklich toll, ich habe daraus sehr viel gelernt. Ich würde mich sehr über deine Hilfe freuen.
      Launching lib\main.dart on SM G780G in debug mode...
      Running Gradle task 'assembleDebug'...
      lib/main.dart:27:15: Error: The getter 'HomePage' isn't defined for the class 'MyApp'.
      - 'MyApp' is from 'package:speech_to_text_example_app/main.dart' ('lib/main.dart').
      Try correcting the name to the name of an existing getter, or defining a getter or field named 'HomePage'.
      home: HomePage,
      ^^^^^^^^
      FAILURE: Build failed with an exception.
      * Where:
      Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070
      * What went wrong:
      Execution failed for task ':app:compileFlutterBuildDebug'.
      > Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      * Get more help at help.gradle.org
      BUILD FAILED in 19s
      Exception: Gradle task assembleDebug failed with exit code 1

  • @dreamrealty4243
    @dreamrealty4243 3 роки тому +2

    Hi. When do you plan to implement null safety? That would be awesome.

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

    dude u are so underrated

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

    Is there a way to make it continues ? It works but if the user doesn't speak after a few second then the app wont listen to their speech anymore.

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

    Awesome. Even for non-native English speakers :)

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

    Johannes it works fine on Android devices 10+ , but it doesn't work on android 7 and android 8 . they clicked on record button and persmission doesn't pop up for them and record isn't working with them., how can we fix this please?

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

    @Johannes Milke Hello thank you for all your videos, but in my case without an internet the plugin din't work, what can i do for work offline, can you help me please

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

    I love this short simple videos

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

    thank you very much ... awesome tutorial .. next video recommendation: check the flutter_sound once, please .. it is an all in one package related to sound and recording but complicated to implement .. or if anybody know any alternative to this please let me know

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

    thank you so much for replying, bro!
    it is limitted ?
    if app user used too much speeing to text...
    it cannot be used?...
    or unlimitted to use ?
    thank you so much

  • @kadirhakan-le3sz
    @kadirhakan-le3sz 11 місяців тому

    Thanks very much for the video. How can I do this in the form of constant listening? Or how can I run it in the background as an assistant application? Thank you again.

    • @HeyFlutter
      @HeyFlutter  11 місяців тому

      Thanks for the idea @kadirhakan-le3sz 😀, i have added it in my list of future videos

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

    Can you make a social downloader app where the user can browse social media and download videos and images to local storage,

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

    Hello Johannes,
    I am working on an app that needs voice recognition in different "areas". I read that we can use "speechtotext Provider" to do so. Could you explain how we can use this? I am having trouble deciding where to initialize the provider ? as early as in the main file ?

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

      @@HeyFlutter I did study the example... but it creates an app in itself, and when I try to adapt it to my own app, it just doesn't work... and they don't really mention "speechtoTextProvider"...any advice ?

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

    how to count how many times a word in coming in a string or in a paragraph?

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

    thank you for teaching .
    is this plugin limitted?
    is this plugin using google speech? or.....

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

    I love you Johannes Milke

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

    I think the whole point of story was that speech to text library but also thanks for your videos keep it up.

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

    Hi! Can speech to text work together with the voice recorder on the phone?

  • @mischak.605
    @mischak.605 2 роки тому

    What is about special characters? Like underscore, or * / ?

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

    Thank you so much for this. It was very helpful 🙌.
    One question the mic doesn't do the required task if there are multiple screens in the app. It will only do the task once and the 2nd time it won't do the task when I go back to that screen. (Though it recognizes the voice)
    I think it's because setState(() => this.isListening = isListening); [in the home_page.dart] is not called again when we go from one screen to another because of which
    if (!isListening) {
    Future.delayed(Duration(seconds: 1), () {
    Utils.scanText(text);
    });
    doesn't execute.
    So is there any way where it works?

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

      @@HeyFlutter Thank you for this. Will surely check it out 😄

    • @Android-um8pe
      @Android-um8pe 3 роки тому

      @@aqua6150 Hey did you find a solution for this? I am struggling here too

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

      @aQua
      @Johannes Milke i have similar problem, how to solve it

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

    Very clearly presented.

  • @user-vq7du3in2x
    @user-vq7du3in2x 3 роки тому

    Can you please make a video of text to speech when pressing a button

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

    thanks a lot for the vid,
    i have a problem however in running the app on the android emulator ( it starts with updating the compileSdkVersion ten updating the ext.kotlin_version etc, i tried doing so but to no avail )

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

      Hello, Mehdi tun! Follow this link: stackoverflow.com/questions/65697787/flutter-app-run-not-work-after-change-compilesdkversion
      I hope it will solve your problem. Thank You 🙂

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

    Open isn't working , when i say open whatsapp it get me choices to choose between difrent web browsers .

  • @MuhammadArshad-of8ts
    @MuhammadArshad-of8ts 3 роки тому

    Sir can you make video on "Text To Speech"?

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

    Is there a way to specify the amount of time before it Stops listening nice tutorial btw

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

    I have implemented this plugin in my android app but I want that it should recognize the voice up to a certain longer period. But when I searched on that I found that by default this plugin in android recognizes voice up to 2-3 seconds and works fine in IOS device. So can anyone help me to find any other option so that I can implement a voice recognition feature recognizes very long sentences.

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

    How can i use different URLs to open on browser

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

    Bro, the app is building correctly but it always displays the speech recognition is not available on this device message on the terminal. can you help with it plz.

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

    thank you for this amazing video. may i ask if the source code still run today?

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

      Thank You @laurencethegreat2813!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

  • @mischak.605
    @mischak.605 2 роки тому

    One question! Does it work offline as well? When I don't have any connection it seems not to work

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

    What about for converting another languages

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

    Is it possible to do something that user can just say the voice command in the app to trigger a function without pressing any button?

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

    you are awesome ........ thank you soo nuch

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

    Johannes. Great work so why doesnt have subtitles ?

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

    Thank you 😁😁

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

      You are welcome, Chipeko Wasa!

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

    Hi bro! thanks for the video!!! how can i run this in 2022?

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

      Thank You Lemonadi! Follow this link: pub.dev/packages/speech_to_text
      I hope you will get your answer 🙂

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

    im getting this error ~ bind to system recognition service failed with error 10

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

    how to work flutter_tts pkg in flutter when app is in background or phone is locked?

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

      Thanks for the idea, Qurat ul ain! 🙂 I have added it to my list of ideas for future videos!

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

    Make more and more videos I subbed ✌🏻✌🏻

  • @الادهم-ص2ظ
    @الادهم-ص2ظ Рік тому

    how to save recordes as list in listviw?

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

      Thank You @user-qr9pe5hw7d! Follow this link: stackoverflow.com/questions/71651944/flutter-how-to-save-data-from-elements-of-listview
      I hope you will get your answer 🙂

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

    Can you teach how we can. do the flutter voice note animations like whatsapp

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

    And what if you just won't tell anything? How to make animation stop?(i mean, you press on button, and then wait, recording will stop but glowing will continue)

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

      @@HeyFlutter I didn't

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

    This speech2text plugin has a lot of problem...
    This plugin doesn't allow tiny little pause during the speech.

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

    This is nice. I can use it an name it GLC open.

  • @BO-nn9up
    @BO-nn9up 3 роки тому

    Could I change the detected language?

    • @BO-nn9up
      @BO-nn9up 3 роки тому

      @@HeyFlutter Thanks a lot for quick answer! it is what I wanted! god bless

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

      @@BO-nn9up @Johannes Milke I can't see your answer. I would be glad if you help:)

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

    I have problem with compileSdkVersion

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

      Hey, @sergioveliz6854 🙂 what problem are you having ?

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

    Awesome tutorial👌👌
    Thank you sir🙏🏽
    If possible share the flutter_riverpod package in using
    - dark/light theme app (chnage theme whole app page)
    - shoping cart
    #greatwork #flutter #deepdrive #godblesyou #happycoding

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

      @@HeyFlutter waiting sir❣️😊

  • @ΓιώργοςΠρονοΐτης
    @ΓιώργοςΠρονοΐτης 2 роки тому

    can do this at and android emulator ?

    • @ΓιώργοςΠρονοΐτης
      @ΓιώργοςΠρονοΐτης 2 роки тому

      @@HeyFlutter Although I have modified AndroidManifest.xml with the appropriate permissions, it displays the error 'No speech recognition awailable on this device (I run it on an android emulator that downloaded from android studio)

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

    How to download facebook video or get the direct link ?

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

      @@HeyFlutter
      I have already used this package and didn't work
      Also have used direct_link and returned : []

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

    Great very nice

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

    Mine doesnt work .... the text does not update and the commands also doesnt work

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

      Works fine now...Thanks😁

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

      @@philip_abakah Can you say how you corrected it? It doesn't work for me either

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

      @@simonium0 i was actually having slow internet speed at that moment...that is whi y the text wasn't updating...but it worked when i refreshed the network.... if it doesn't please check your code well

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

    Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true

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

      @@HeyFlutter it's working now... actually I am using an emulator offered by Android Studio. In the emulator settings we need to enable the mic first. Your implementation is 🔥.

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

    is Real Time ?

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

      @@HeyFlutter Very thanks. Be happy :)

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

      @@HeyFlutter Hey please some help. I need change speech change. How I can ?

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

      @@HeyFlutter Hello thank you for all your video, but in my case without an internet the plugin din't work, what can i do for work offline

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

    Make seri app man it will be cool 😎

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

      @@HeyFlutter build some simple biggner games using flutter it will be more fun.

  • @الادهم-ص2ظ
    @الادهم-ص2ظ 3 роки тому

    when itry to build apk ------------You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
    If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
    To generate an app bundle, run:
    flutter build appbundle --target-platform android-arm,android-arm64,android-x64
    Learn more on: developer.android.com/guide/app-bundle
    To split the APKs per ABI, run:
    flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
    Learn more on: developer.android.com/studio/build/configure-apk-splits#configure-abi-split
    WARNING: [Processor] Library 'C:\Users\20102\.gradle\caches\modules-2\files-2.1\io.flutter\flutter_embedding_release\1.0.0-2c956a31c0a3d350827aee6c56bb63337c5b4e6e\d16762b6784c6a5a7b5da4ab52be9bd1ca53ba16\flutter_embedding_release-1.0.0-2c956a31c0a3d350827aee6c56bb63337c5b4e6e.jar' contains references to both AndroidX and old support
    library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
    Example of androidX reference: 'androidx/annotation/NonNull'
    Example of support library reference: 'android/support/annotation/NonNull'
    WARNING: [Processor] Library 'C:\Users\20102\.gradle\caches\modules-2\files-2.1\io.flutter\flutter_embedding_profile\1.0.0-2c956a31c0a3d350827aee6c56bb63337c5b4e6e\83d8a0724d36e78214f1a7f4004a97b524f3202b\flutter_embedding_profile-1.0.0-2c956a31c0a3d350827aee6c56bb63337c5b4e6e.jar' contains references to both AndroidX and old support
    library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
    Example of androidX reference: 'androidx/annotation/NonNull'
    Example of support library reference: 'android/support/annotation/NonNull'
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':app:lintVitalRelease'.
    > Could not resolve all artifacts for configuration ':app:profileRuntimeClasspath'.
    > Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
    > Execution failed for JetifyTransform: C:\Users\20102\Downloads\speech_to_text_example-master\speech_to_text_example-master\build\app\intermediates\flutter\profile\libs.jar.
    > Transform's input file does not exist: C:\Users\20102\Downloads\speech_to_text_example-master\speech_to_text_example-master\build\app\intermediates\flutter\profile\libs.jar. (See issuetracker.google.com/issues/158753935)
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    * Get more help at help.gradle.org
    BUILD FAILED in 1m 31s
    Running Gradle task 'assembleRelease'...
    Running Gradle task 'assembleRelease'... Done 92.6s
    The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
    ✏️ Creating `android\settings_aar.gradle`...
    [!] Flutter tried to create the file `android\settings_aar.gradle`, but failed.
    To manually update `settings.gradle`, follow these steps:
    1. Copy `settings.gradle` as `settings_aar.gradle`
    2. Remove the following code from `settings_aar.gradle`:
    def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
    def properties = new Properties()
    assert localPropertiesFile.exists()
    localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
    def flutterSdkPath = properties.getProperty("flutter.sdk")
    assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
    apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
    Please create the file and run this command again.

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

    Anyone tried this with a wireless headphone?

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

    great

  • @八重尾立志
    @八重尾立志 3 роки тому +1

    Great work!!Thank you! I want to know how to change the language.

    • @八重尾立志
      @八重尾立志 3 роки тому

      @@HeyFlutter Thank you!!!

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

      @@HeyFlutter Link is not working i'm also wondering how to change language of speech recogniction :)

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

    Is there a way to make it continues ? It works but if the user doesn't speak after a few second then the app wont listen to their speech anymore.

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

      Thank You Vinícius Duarte! Follow this link: stackoverflow.com/questions/13670378/voice-recognition-stops-listening-after-a-few-seconds
      I hope you will get your answer 🙂