Coder Social home page Coder Social logo

Comments (4)

Stypox avatar Stypox commented on May 9, 2024 1

It would be a hacky workaround but it would probably work.

Actually I decided I won't fix this, it would complicate things quite a bit but it would still be a hacky workaround that would only have to kick in for English, and the problem here is the speech recognizer. Sorry

from dicio-android.

Stypox avatar Stypox commented on May 9, 2024

Currently only sentences like "calculate ..." and "what's the value of ..." are forwarded to the calculator. Then the words in place of "..." are parsed to extract numbers. The remaining words in between numbers are looked for operations to do. So, for example, "what is two plus six times seven to the sixth" -> "two plus six minus seven" -> [2, " plus ", 6, " times ", 7, " to the ", 6] -> 2 + 6 * (7 ^ 6). But if "to" were also interpreted as a 2, then the same sentence would become [2, " plus ", 6, " times ", 7, 2, " the ", 6] -> 2 + 6 * 7 + 2 + 6 (+ is used whenever no operator is specified). So interpreting "to" as "two" would mess up the power operation. I could make a special rule that just considers the word "to" as a "two" only in case no operator matches. It would be a hacky workaround but it would probably work. I will integrate it for now, but the real way to solve this is to have a better speech to text I think.

Love the project, hope it continues!

Thank you!

from dicio-android.

eocow avatar eocow commented on May 9, 2024

Yeah but I understand there is not too much you can do to make Vosk better. Hope the work around works!

from dicio-android.

eocow avatar eocow commented on May 9, 2024

No worries!

from dicio-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.