Comments (4)
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.
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.
Yeah but I understand there is not too much you can do to make Vosk better. Hope the work around works!
from dicio-android.
No worries!
from dicio-android.
Related Issues (20)
- Add "on speaker" recognition for telephone skill
- Setting for imperial measurements
- App spelling dictionary or static list of alternate names
- Dicio does not recognize the word “show”
- Does jdk 20 is required? HOT 2
- Finish translation HOT 1
- How can I implement this into my android keyboard? HOT 3
- Speech To Text service doesn't work in other apps HOT 2
- Support external speech to text services HOT 4
- Stuck Downloading Vosk and Questions HOT 1
- Can this take notes/memos? HOT 1
- Definition skill
- downloading vosk is doing nothing
- Skill evaluation error when tried to call
- Portuguese from Portugal HOT 1
- Stop playback while listening
- Integration with T-UI or just take commands from T-UI
- listening does not work
- Some more skills to consider / homonyms error HOT 1
- Instant crash when downloading vosk model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dicio-android.