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.
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!
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?
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
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?
@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
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
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
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.
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 ?
@@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 ?
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?
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 )
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 🙂
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.
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.
Thank You @laurencethegreat2813!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
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 🙂
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)
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
@@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)
@@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
@@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 🔥.
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.
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 🙂
This might help you :)
👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
Source Code: github.com/JohannesMilke/speech_to_text_example
How do you make so simple to understand such a complicated thing? AMAZING!
So consistent ❤️
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.
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!
As usual !!!!
Amazing tuts :)
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?
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
Hi. When do you plan to implement null safety? That would be awesome.
dude u are so underrated
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.
Awesome. Even for non-native English speakers :)
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?
@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
I love this short simple videos
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
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
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.
Thanks for the idea @kadirhakan-le3sz 😀, i have added it in my list of future videos
Can you make a social downloader app where the user can browse social media and download videos and images to local storage,
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 ?
@@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 ?
how to count how many times a word in coming in a string or in a paragraph?
thank you for teaching .
is this plugin limitted?
is this plugin using google speech? or.....
I love you Johannes Milke
I think the whole point of story was that speech to text library but also thanks for your videos keep it up.
Hi! Can speech to text work together with the voice recorder on the phone?
What is about special characters? Like underscore, or * / ?
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?
@@HeyFlutter Thank you for this. Will surely check it out 😄
@@aqua6150 Hey did you find a solution for this? I am struggling here too
@aQua
@Johannes Milke i have similar problem, how to solve it
Very clearly presented.
Thank you, Sarat M! 🙂
Can you please make a video of text to speech when pressing a button
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 )
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 🙂
Open isn't working , when i say open whatsapp it get me choices to choose between difrent web browsers .
Sir can you make video on "Text To Speech"?
Is there a way to specify the amount of time before it Stops listening nice tutorial btw
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.
How can i use different URLs to open on browser
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.
thank you for this amazing video. may i ask if the source code still run today?
Thank You @laurencethegreat2813!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
One question! Does it work offline as well? When I don't have any connection it seems not to work
What about for converting another languages
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?
Hey, were you able to do it?
you are awesome ........ thank you soo nuch
Johannes. Great work so why doesnt have subtitles ?
@@HeyFlutter Thanks The Flutter Father 👍
Thank you 😁😁
You are welcome, Chipeko Wasa!
Hi bro! thanks for the video!!! how can i run this in 2022?
Thank You Lemonadi! Follow this link: pub.dev/packages/speech_to_text
I hope you will get your answer 🙂
im getting this error ~ bind to system recognition service failed with error 10
how to work flutter_tts pkg in flutter when app is in background or phone is locked?
Thanks for the idea, Qurat ul ain! 🙂 I have added it to my list of ideas for future videos!
Make more and more videos I subbed ✌🏻✌🏻
how to save recordes as list in listviw?
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 🙂
Can you teach how we can. do the flutter voice note animations like whatsapp
@@HeyFlutter unfortunately not
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)
@@HeyFlutter I didn't
This speech2text plugin has a lot of problem...
This plugin doesn't allow tiny little pause during the speech.
This is nice. I can use it an name it GLC open.
Could I change the detected language?
@@HeyFlutter Thanks a lot for quick answer! it is what I wanted! god bless
@@BO-nn9up @Johannes Milke I can't see your answer. I would be glad if you help:)
I have problem with compileSdkVersion
Hey, @sergioveliz6854 🙂 what problem are you having ?
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
@@HeyFlutter waiting sir❣️😊
can do this at and android emulator ?
@@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)
How to download facebook video or get the direct link ?
@@HeyFlutter
I have already used this package and didn't work
Also have used direct_link and returned : []
Great very nice
Mine doesnt work .... the text does not update and the commands also doesnt work
Works fine now...Thanks😁
@@philip_abakah Can you say how you corrected it? It doesn't work for me either
@@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
Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
@@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 🔥.
is Real Time ?
@@HeyFlutter Very thanks. Be happy :)
@@HeyFlutter Hey please some help. I need change speech change. How I can ?
@@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
Make seri app man it will be cool 😎
@@HeyFlutter build some simple biggner games using flutter it will be more fun.
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.
Anyone tried this with a wireless headphone?
great
Great work!!Thank you! I want to know how to change the language.
@@HeyFlutter Thank you!!!
@@HeyFlutter Link is not working i'm also wondering how to change language of speech recogniction :)
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.
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 🙂