Implement Speech-To-Text on Android with .NET MAUI

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

КОМЕНТАРІ • 61

  • @jfversluis
    @jfversluis  2 роки тому +1

    Looking for the iOS implementation of text-to-speecht with .NET MAUI? This is the secret portal that will take you right to it: ua-cam.com/video/kxUsmctDyko/v-deo.html

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

    Actually, i love simplistic design. It focused on the point, without adding confusing details!

  • @vtome4165
    @vtome4165 2 роки тому +1

    You don't know how long I was waiting for that. Previously i was playing around with Azure Cognitive Services. And finally i know how to do it properly in my bachelor work. Thank you very much.

  • @ebonnailsupply2375
    @ebonnailsupply2375 9 місяців тому

    Thanks!

    • @jfversluis
      @jfversluis  9 місяців тому

      Oh no thank you for the support my friend!

  • @wanted.mp4703
    @wanted.mp4703 Рік тому +2

    Very good guide, thank you! :)

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

    Amazing Gerald! Will play around with this.

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

      Thank you! Let me know how it goes!

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

    Thank you for a great video Gerald!
    Is there a way to store the final result of RecognitionText. I'm trying to move the final result to another label. I can do so as long as as the ExtraSpeechInputCompleteSilenceLengthMillis intent is commented out. But I need to use a 10 sec ExtraSpeechInputCompleteSilenceLengthMillis intent. When I enable this intent, any code past the speechToText.Listen(...) call is never reached and I'm unable to access the final result of RecognitionText.

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

    Thank you for all of your videos.
    10/10 tutorials

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

      Thanks Cary! Appreciate it 🥰

  • @lordnoahgabel4499
    @lordnoahgabel4499 2 роки тому +1

    How did you get the mirror device on screen? I am using Rider, is it a visual studio thing only?

    • @jfversluis
      @jfversluis  2 роки тому +1

      Nope it’s a built-in program in Windows 10 and 11 called Phone Link. Doesn’t work with all Android phones though.

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

    Thanks, just solved a problem for me. Hey any chance on a video on how to use Dotfuscator with Maui.

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

    Hi @Gerald Versluis , i have made it STT as you suggested before and working enhancing with NLP process , Thank you

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

      That is great! Glad you found something that worked for you!

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

    do you know any implementation for text recognition using .net maui or xamarin?

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

    Hi Gerali,
    Thanks for this video.

    • @jfversluis
      @jfversluis  2 роки тому +1

      Thanks for watching!

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

      @@jfversluis Please create one video on login with Gmail and LinkedIn in MAUI

  • @earthlingthings
    @earthlingthings 4 місяці тому

    so would i be able to use speech to text from an audio file or stream NOT from microphone?

    • @jfversluis
      @jfversluis  4 місяці тому +1

      I don't think that is supported right now

    • @earthlingthings
      @earthlingthings 4 місяці тому

      @@jfversluis thanks for replying. I guess I'm going to have to work around by playing the audio recording and resample it via speechtotext

    • @earthlingthings
      @earthlingthings 4 місяці тому

      @@jfversluis btw your videos are great. Very helpful

    • @jfversluis
      @jfversluis  4 місяці тому +1

      @@earthlingthings appreciate it, thanks!

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

    very cool.
    I'm waiting for an episode for the management of photography and the camera

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

      You mean something like this? Pick and Capture Images & Videos with Xamarin Essentials MediaPicker
      ua-cam.com/video/AYfGxhEHiec/v-deo.html

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

      @@jfversluis Wow, great. I meant just that. Thank you for the link

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

    Awesome, works well however no matter what values I pass for ExtraSpeechInputMinimumLengthMillis and ExtraSpeechInputCompleteSilenceLengthMillis, the behavior of the listener does not change. This is on a Samsung Galaxy Android phone. 🤔

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

      Check the project repo for issues or open one!

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

    Hi, Gerald! Thanks for your video!
    In this implementation, shouldn't we first make sure that the service is successfully injected into the MainPage so as not to cause errors on other platforms for which we haven't registered the service? How do we do this correctly?

    • @jfversluis
      @jfversluis  2 роки тому +1

      That is correct! This is assuming that you will be implementing this for all platforms.
      If you would want to use it for just 1 platform right now either make dummy implementations for the other platforms that simply don’t do anything or not use dependency injection and use a static instance and make sure that code only runs on Android

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

    Any word on whether there will be a cross platform package to support speech recognition?

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

      Already included in the .NET MAUI Community Toolkit!

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

      @@jfversluis omg you're up, it's like 3am here where I am, thank you, I'll look into it

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

      @@jfversluis By the way, new sub as of a couple of days ago. I love your videos, they're perfect and to the point. Keep it up!

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

      Haha don’t work for too long! Thanks for joining my channel, appreciate it!

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

    Hello Gerald can you make a video .net Maui filesystem helper? I want to display a folder that has mp3 files from the music folder inside the Android storage, many thanks 👍

  • @hasansafi3341
    @hasansafi3341 2 роки тому +1

    Thank you so much.
    Waiting for your development to transcribe mp3 files with .net maui.

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

      That is very specific! Not sure I will get to that tbh :)

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

      @@jfversluis I believe that you can do it.

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

      Sure, but the question is if I will 😄

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

      @@jfversluis you will, because you are developer.

  • @jamg.barett749
    @jamg.barett749 Рік тому +1

    Please, make a video of how to monetize with maui on adsense.

  • @JoseSilva-gt6zj
    @JoseSilva-gt6zj 2 роки тому +3

    Hey, Gerald!
    Thanks for your video! You are helping the MAUI community a lot!
    Please, could you talk about the following MAUI code?
    public static readonly IPropertyMapper CustomMapper =
    new PropertyMapper(Mapper)
    {
    [nameof(IMap.Pins)] = MapPins,
    };
    ...
    This code is from "Vladislav Antonyuk", article "Customize map pins in .NET MAUI" .
    I didn't get how the following line works:
    "[nameof(IMap.Pins)] = MapPins"
    Thank you so much!

    • @jfversluis
      @jfversluis  2 роки тому +2

      This should help with that: learn.microsoft.com/dotnet/maui/user-interface/handlers/create?view=net-maui-7.0#create-the-property-mapper

    • @JoseSilva-gt6zj
      @JoseSilva-gt6zj 2 роки тому

      @@jfversluis Thank you, Gerald! I'll take a look at that!

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

    شكرا على معلومات

  • @AlexButton-kb4ee
    @AlexButton-kb4ee 2 роки тому

    Hello Gerald
    This looks great and what I need for my small project however.
    I have downloaded the example from GitHub, with no changes from the downloaded zip source, however when I Run the app on my Android Device, the permission windows show I select the allow only while using the app option same as the yourtube vdieo, but then receive the Alert from this
    await DisplayAlert("Permission Error", "No microphone access", "OK");
    and then also show that error every time I try to run the app
    Also there is a CS0246 error in the error list
    Severity Code Description Project File Line Suppression State
    Error CS0246 The type or namespace name 'SpeechToTextImplementation' could not be found (are you missing a using directive or an assembly reference?) MauiSpeechToTextSample (net7.0-maccatalyst) C:\Code\MauiSpeechToTextSample-main\MauiSpeechToTextSample\MauiProgram.cs 24 Active
    any suggestions
    Thanks

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

      Either remove the macOS target from your csproj or also implement macOS

    • @AlexButton-kb4ee
      @AlexButton-kb4ee 2 роки тому

      @@jfversluis Hello Gerald , Thanks for your Reply
      have spent about the last 3 hours on this one, trying to work out what may create this error.
      Some more information for you, I uploaded the same code to my Surface Duo, as is Android 12.1 and worked no problems
      so, thinking that was my old test phone, which is a moto g9 plus with Android 11, but the mic works in other apps?
      I thought maybe was because is not connected to a Gmail account but need to be connected for a service? so I connected to my Gamil account so the same error.
      So, I factory reset the device (moto g9 +), setup clean install, and uploaded the code, same error.
      So, I unlocked the phone and upgraded to android 12.1 (Linage OS) on the Moto g9+ in case MAUI only is supporting Android 12+, and still the same error., once again the built-in voice recorder works.
      So am at a lost to what it could be at this point,
      Bit unsure to move forward with the project as seem strange to work on one phone and not another.
      open to your thoughts?
      Thanks - Alex

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

      You say “the same error” but what is the error exactly?

    • @AlexButton-kb4ee
      @AlexButton-kb4ee 2 роки тому

      @@jfversluis Hello
      Again thanks for you reply
      So I have done a little more testing
      The error is from line 54 in the MainPage.xmal.cs
      wait DisplayAlert("Permission Error tagged ", "No microphone access", "OK");
      I have tried this same code on a number of devices now
      2 different Moto g9+ both as the android 11 version from Motorola both failed with the line 54 error on the devices screen
      1 of these moto g9+ devices I upgrades to android 12 Linage OS 19 and received that same error line 54 error on the devices screen
      I have also tested on Nokia 7.2 Android 11 version from Nokia and failed with that same line 54 error on the devices screen
      I have also tested on mu Surface Duo 12.1 and works
      Tested on a Moto 20 Fusion Android 12 and works
      And a old Samsung Galaxy Tab S Android 6.0.1 , and to my Suprise worked, after turning off fast deployment to get the build to upload to the old Android.
      So at the moment this code / method seems to work on about half the devices I have tested it on.
      Is there another permission required for these devices for mic access ?
      Thanks - Alex

    • @AlexButton-kb4ee
      @AlexButton-kb4ee 2 роки тому

      Hello Gerald
      Or anyone who may be having this same issue
      Any thoughts, as to why only working on half of devices?
      Is there a way to test, what permission is failing on ?
      Thanks - Alex