Hi Suman, Here is some feedback to the ModelProvider module:
First, as far as I understand the ModelProvider can currently only provide a single acoustic Model. This is not exactly what I would expect form such a service. It would be good to support different languages as well as the ability to have several named models for the same language. What I would expect is something like a ModelProvider Interface with method like /** getter for the default model for the parsed language */ + LanguageModel getDefaultModel(String language) /** getter for a specific model for the parsed language */ + LanguageModel getModel(String name, String language) LanguageModel would be a class with an API based access to the Map<String,String> you are currently returning by the "initModel()" method. "initModel()" would also be an internal method used to load models for specific languages and names. Supporting the use of multiple models will also require to change some parts of this code. Please also separate a ModelProvider interface with the ModelProviderImpl. You can keep the interface in the current folder. Move the Implementation to an "impl" subpackage and adapt the OSGI. Second the "clearTempResource()" method MUST NOT be part of the public interface but instead be called by the @Deactivate method (a OSGI component lifecycle method) @Deactivate protected void deactivate(ComponentContext ctx){ log.debug("deactivating {}",getClass().getSimpleName()) clearTempResource(); //clean up temp resources } private void clearTempResource() { /* same code as now */ [..] } Note that there is also an @Activate protected void activate(ComponentContext ctx){ } if you need to do some initialization during startup. Thrid the pom file of the ModelProvider needs also some work 1. the junit dependency is missing. I needed to add it so that your code was compiling 2. the packaging needs to be set to bundle. Otherwise no OSGI bundle will be created and you will not be able to deploy the jar file in an OSGI environment 3. please add a basing configuration for the maven bundle plugin (just start from the configuration from any Stanbol module) Finally I would like to have more information on the status of the implementation of the actual engine. Do you plan to do the coding in https://github.com/sumansaurabh/stanbol-1007? Would be great if you could push your code as early as possible so that I can follow the progress. best Rupert On Mon, Jun 23, 2014 at 7:13 PM, Suman Saurabh <ss.sumansaurab...@gmail.com> wrote: > Hi All, > > Here are my updates regarding Speech To Text Engine. > > [1] Project built to download CMU-Sphinx models as dependency unpacked and > repacked to stanbol repository. > > [2] DataFileProvider Service built which provides Acoustic, Language, > Dictionary models to SpeechToText Engine. > > Next part is to feed grabbed audio to Sphinix engine for obtaining the > transcripts. More details regarding the project is in this link [3]. > > I am thankful for the support provided by Rupert and my mentor Andreas. > > Regards, > Suman Saurabh > > [1] https://github.com/sumansaurabh/Sphinx-Model > [2] https://github.com/sumansaurabh/SphinxModelProvider > [3] https://sites.google.com/site/gsoc2014stanbol/ -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen | REDLINK.CO .......................................................................... | http://redlink.co/