GithubHelp home page GithubHelp logo

Comments (6)

LexiconCode avatar LexiconCode commented on September 6, 2024 1

That clarified for me recognized phrases which are loaded from grammars. I like your good idea how to implement the commands for training while maintaining their context.

from dragonfly.

drmfinlay avatar drmfinlay commented on September 6, 2024 1

The training session mode has been added to develop now. You can say "start training session" to start it or call SphinxEngine.start_training_session(). To end a session, you can say "end training session" or call SphinxEngine.end_training_session(). "end training session" doesn't start the training program GUI because it does not exist yet.

As I said in an above comment, the only difference between this mode and normal use is that no action or rule processing takes place. Keyphrases are exempt from this. Grammar contexts should still be taken into account.

A good use case for this mode is training commands that take a long time to execute their actions or are dangerous. Perhaps such commands keep getting falsely recognised and they need more training.

The phrases, threshold values and training data directory are configurable in the engine config module. If you set TRAINING_DATA_DIR to None in the engine config, no .wav files or transcript files will be created or written to. A warning will be displayed if a training session is started and this is the case.

I'll label this with Documentation because this feature will need to be properly documented at some point.

from dragonfly.

LexiconCode avatar LexiconCode commented on September 6, 2024

an ordered list of recognised phrases - phrases to train, loaded from the folder mentioned above

Could this be read from the grammars then generated into a list?

from dragonfly.

drmfinlay avatar drmfinlay commented on September 6, 2024

Yes, the phrases can be generated from grammars. Did you mean as an alternative to using .wav files and recognised phrases from the engine?

It might be useful to have a training mode where recognition processing does not occur. For example, I could say 'start training session', say a bunch of commands in sequences that I want to train, then finish by saying 'end training session', after which the training program could be opened. Contexts would still work, but no action would be executed.

from dragonfly.

drmfinlay avatar drmfinlay commented on September 6, 2024

The recording speech and hypothesises part is done now. The engine's default behaviour is to create a training folder in the same folder as the module loader, write audio to trainingXXXX.wav files and hypothesises to training.transcriptions. The training.fileids file is also created. The files should work with the SphinxTrainingHelper script.

from dragonfly.

drmfinlay avatar drmfinlay commented on September 6, 2024

I don't think this is really needed. Even if it was, I cannot commit to working on this. I hope my ideas above and in Dragonfly's source code are helpful for those attempting the task in the future.

As it is a considerably easier task than this, I still plan on unifying the training data output by the Pocket Sphinx engine to be similar to the output from other engines (see #196).

from dragonfly.

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.