Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 31 23:07
    masisley labeled #778
  • Mar 31 23:07
    masisley opened #778
  • Mar 31 12:56

    LexiconCode on master

    Standardized TODO (compare)

  • Mar 31 12:35

    LexiconCode on master

    Trivial change: Expand function… (compare)

  • Mar 31 12:35
    LexiconCode closed #777
  • Mar 31 12:35
    LexiconCode commented #777
  • Mar 31 12:34
    LexiconCode assigned #777
  • Mar 31 12:34
    LexiconCode labeled #777
  • Mar 31 09:26
    TTeig ready_for_review #777
  • Mar 31 09:25
    TTeig edited #777
  • Mar 31 09:22
    TTeig opened #777
  • Mar 31 07:04
    lexxish commented #776
  • Mar 31 06:27
    daanzu commented #776
  • Mar 31 06:26
    daanzu commented #776
  • Mar 31 03:24
    davidlehub commented #738
  • Mar 31 03:20
    davidlehub commented #738
  • Mar 31 03:18
    davidlehub commented #738
  • Mar 31 02:45
    LexiconCode commented #776
  • Mar 31 02:40
    LexiconCode commented #776
  • Mar 31 02:39
    LexiconCode edited #776
Dmitri Makarov
@dmakarov
Are you using kaldi engine?
it helps with kaldi to have explicit markers, eg laws bow hello world brunt
if that doesn’t help, then making brunt marker non-optional in the rule defined in nav.py should help.
Owen Myers
@OwenMyers
First of all, thank you very much for the response. I should've mentioned I'm using DNS. I'll try making brunt non-optional though if you think that could help for DNS as well. Giving that a shot shortly and I'll get back to you.
Thanks again!
Owen Myers
@OwenMyers
So I changed both "bow" and "brunt" to be non-optional (just removed the square brackets right?) and see that nav.pywas reloaded from Reloaded castervoice/rules/core/navigation_rules/nav.py but still no luck using laws and brunt:
WARNING:engine:Grammar ccr-4: failed to decode recognition (u'gum', u'bow', u'some', u'words', u'brunt').
Owen Myers
@OwenMyers
@dmakarov you were the one that had this problem with kaldi correct?
LexiconCode
@LexiconCode
Hi @OwenMyers welcome! The chat is a great place to get support. I'm just about to start another night shift. Tomorrow after I've got some sleep, I will be able to help troubleshoot with you.
Owen Myers
@OwenMyers
Thanks so much! No rush. I appreciate any help you can give when you have a chance!
Owen Myers
@OwenMyers
And have a good night of work
zilch42
@zilch42
@LexiconCode thanks. The Firefox DNS extension was the culprit. Related question then: what do people find is the best solution for web browsing by voice? The Firefox DNS extension enables things like "show links"which is insanely useful. Are there other good methods for link navigation? does chrome just work better? I switched to Firefox for privacy reasons but I'd consider going back to chrome if it would have more stable integration with DNS.
LexiconCode
@LexiconCode
There are issues with both DNS's integrations with Chrome and Firefox. However there are some alternatives. See in the community resources issue.
btlaxman
@btlaxman
Hi, I am getting following error and how do I fix it. Thank you.
Vocola version 2.8.6 starting...
WARNING:timer:Dragonfly's _Timer class has been deprecated. Please use engine.create_timer() instead.
WARNING:timer:Dragonfly's _Timer class has been deprecated. Please use engine.create_timer() instead.
- Starting Caster v 0.5.10 -
LexiconCode
@LexiconCode
@btlaxman greetings. Did you recently upgrade Dragonfly?
Dmitri Makarov
@dmakarov
@OwenMyers yes, only with kaldi. I never used DNS.
btlaxman
@btlaxman
@LexiconCode Yes
LexiconCode
@LexiconCode
The latest version of Caster has this fixed. If you can't upgrade let me know. Then I'll see what I can do.
Do note if you do upgrade you'll need to update your personal grammar that you may have created.
btlaxman
@btlaxman
@LexiconCode Thank you. I'll try with the upgrade and let you know.
davidlehub
@davidlehub
Qeustion:
How to do relative import. For USER directory. here is my situation:
  • I made a copy of nav2.py to my USER directory: C:\Users\HP\AppData\Local\caster\rules\core\navigation_rules
  • here is the import section of nav2.py:
    from ..alphabet_rules import alphabet_support
  • the 'alphabet_support.py' has been copy to: C:\Users\HP\AppData\Local\caster\rules\core\alphabet_rules
i got this error: ValueError: Attempted relative import in non-package
have tried many way but can't get it works
(i try to override some Caster's original things)
davidlehub
@davidlehub
(have read this: dictation-toolbox/Caster#711 but don't get what it means) :D
davidlehub
@davidlehub
in fact, i copied the whole folders (navigation_rules and alphabet_rules) to my User directory with same structure as Caster main folder. (for more easy to find things)
davidlehub
@davidlehub
UPDATE: it works if i keep structure like this:
  • C:\Users\HP\AppData\Local\caster\rules\navigation_rules
    and
  • C:\Users\HP\AppData\Local\caster\rules\alphabet_rules
davidlehub
@davidlehub
Solved. So the solution is not using to much sub-directories...
Tori
@TorTales_gitlab
What is the best way to put comments in the words.txt file?
LexiconCode
@LexiconCode
@davidlehub I don't think he should've had to change those imports. In the copied core rules themselves. from alphabet_rules import alphabet_support should work just fine.
@TorTales_gitlab you can use # just like Python.
Tori
@TorTales_gitlab
Thanks.
LexiconCode
@LexiconCode
@OwenMyers I've been looking into your issue. Can you provide the exact spec like "(<capitalization> <spacing> | <capitalization> | <spacing>) [(bow|bowel)] <textnv> [brunt]":?
Owen Myers
@OwenMyers
Hi @LexiconCode
Thanks so much for looking into this!
gum bow some words brunt
Things I have tried:
  • Made bow and brunt non-optional.
  • ran python -m dragonfly test _caster.py. Typed in gum bow SOME WORDS brunt which output the expected thing (good news?): somewords
LexiconCode
@LexiconCode
it's an error I've experienced very rarely maybe twice. This happens when the engine successfully recognizes a grammar rule, but Dragonfly couldn't find which rule was recognised. This typically happens when a dictation part is left out of an utterance or try to dictate something similar to a command word. E.g. "format import" when Python mode is active.
I'm hoping I can replicate your issue as it would be great to have this reproducible 100% of the time. So your edits look like "(<capitalization> <spacing> | <capitalization> | <spacing>) bow <textnv> brunt":?
Owen Myers
@OwenMyers
Interesting. I'm getting it every time. This is really useful information though because I think I can start looking into why the intended text is being treated as a command (or something like that)
Yeah. Exactly.
If this is not a common issue I can try to take it on... I would love support but I also don't want to waste your time on an error that is very infrequent for most people.
LexiconCode
@LexiconCode
Not a waste of time, It's definitely not a common issue and difficult for me to replicate. I would navigate to the dragonfly channel and get in contact with @Danesprite. He is aware of the issue but as well has issues to it reproduce reliably.
Trying creating or editing other Specs with a dictation element in trying to reproduce it there as well.
LexiconCode
@LexiconCode
The navigation dictation<textnv> element has default of an empty string like below. I would've thought that would've prevented the issue we've described. if gum bow was dictated without anything the dictation elements It would default to an empty string.
defaults = {
        "textnv": "",
}
Out of curiosity try making the Dictation element optional [<textnv>]
LexiconCode
@LexiconCode
Using a debugger you could probably step through the code when the command is triggered.
Owen Myers
@OwenMyers
Tried the optional [<textnv>] but no change
Shot-in-the-dark, unchecked all command options in the DNS -> options -> commands section. No change there.
I think later today I can start walking through with a debugger. I will definitely let you know what I come across!
Thanks for your help so far! You are a hero. Been reading and using your helpful comments for a couple of years now. Pretty cool to be chatting with you.
LexiconCode
@LexiconCode

Thanks for your help so far! You are a hero. Been reading and using your helpful comments for a couple of years now. Pretty cool to be chatting with you.

I really appreciate that. I've always known there are a number of people listening in :) I'm glad I can be of help and we all contribute where we can.

I can connect remotely if you wish at one point if you need help setting up/using the debugger.
Owen Myers
@OwenMyers
Awesome. Wow thanks. Might take you up on that. I'll let you know how it goes!