We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Voice recognition?
#10
Thanks for checking.  There are probably a few things going on.

First, the speech recognition only fires the LDSpeech.Listen event when a match is found., not when it detects speech.  This requires that the word/phrase is resent in LDSpeech.Vocabulary and that the same locale is used to initialise the speech recognition engine and the vocabulary.  In the past I found the default vocabulary pretty poor so it should be set with LDSpeech.Vocabulary.  At present, both locales can only be the same when it is the OS setting locale with same speech recognition locale installed (I don't think using LDUtilities.CurrentCulture will fully work - only being applied to vocabulary with the mismatch maybe being the issue for Scout), so trying to mix or fix locale settings is going to be tricky and I don't want to tackle that till I understand the second issue.

The second issue for me and JR is that it fails on Windows 11 (I always save a SB file to test rather than just running unsaved code that then executes in %temp%).  My sample does work nicely for me using Windows 10.  I tried a simple Console test project on Win 11 and that also worked fine.  However, with the exact same test code copied into LitDev extension and run from SB it fails.  There may be some security/anti-virus issue or something else, but this will require more work on my part to try to determine the cause.  If/when I can get this working I will probably also make it easier to change locales to make it more generic.

Hopefully I will have updated version to test at some point...
Reply


Messages In This Thread
Voice recognition? - by Yumda - 09-19-2024, 05:33 AM
RE: Voice recognition? - by AbsoluteBeginner - 09-19-2024, 07:30 AM
RE: Voice recognition? - by Yumda - 09-19-2024, 10:03 AM
RE: Voice recognition? - by litdev - 09-19-2024, 10:40 AM
RE: Voice recognition? - by Yumda - 09-19-2024, 11:23 AM
RE: Voice recognition? - by Yumda - 09-19-2024, 02:18 PM
RE: Voice recognition? - by litdev - 09-19-2024, 02:56 PM
RE: Voice recognition? - by jrmrhrb00 - 09-19-2024, 06:09 PM
RE: Voice recognition? - by Scout - 09-19-2024, 09:27 PM
RE: Voice recognition? - by litdev - 09-19-2024, 11:35 PM
RE: Voice recognition? - by Yumda - 09-20-2024, 02:40 AM
RE: Voice recognition? - by Yumda - 09-20-2024, 07:48 AM
RE: Voice recognition? - by litdev - 09-20-2024, 10:25 AM
RE: Voice recognition? - by Yumda - 09-20-2024, 11:29 AM
RE: Voice recognition? - by litdev - 09-20-2024, 03:42 PM
RE: Voice recognition? - by Scout - 09-20-2024, 05:23 PM
RE: Voice recognition? - by Yumda - 09-21-2024, 01:47 AM
RE: Voice recognition? - by litdev - 09-21-2024, 09:19 AM
RE: Voice recognition? - by Yumda - 09-21-2024, 09:57 AM
RE: Voice recognition? - by litdev - 09-21-2024, 10:17 AM
RE: Voice recognition? - by AbsoluteBeginner - 09-21-2024, 10:22 AM
RE: Voice recognition? - by litdev - 09-21-2024, 10:45 AM
RE: Voice recognition? - by litdev - 09-23-2024, 12:36 PM
RE: Voice recognition? - by Scout - 09-23-2024, 07:01 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)