Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the documentation? #277

Open
petercwallis opened this issue Aug 10, 2022 · 17 comments
Open

make the documentation? #277

petercwallis opened this issue Aug 10, 2022 · 17 comments
Milestone

Comments

@petercwallis
Copy link

I would like to look at the documentation for the API in C. I am guessing I need to type 'make,' or possibly 'cmake' somewhere so that doxygen produces the html files. I know enough to be dangerous so it has taken close on half a day to not figure this out. Could we have "make docs" a thing in the top level directory possibly? Or possibly
{ > make C-docs }
perhaps ...

@dhdaines
Copy link
Contributor

Hello, for the "5prealpha" release of a few years ago, the documentation is available here: https://cmusphinx.github.io/doc/pocketsphinx/

It will be updated for the first release candidate. To create it, you need Doxygen (https://doxygen.nl/) installed, and you can simply run "make docs" in your build directory, exactly as you say :)

@dhdaines
Copy link
Contributor

(of course, this is not documented so I will leave this issue open until it is!)

@dhdaines dhdaines added this to the 5.0.0rc1 milestone Aug 10, 2022
@petercwallis
Copy link
Author

petercwallis commented Aug 11, 2022 via email

@dhdaines
Copy link
Contributor

Yes, because opening files and attaching to microphones is outside the scope of what a speech recognition engine should do, if you look at the others out there they generally don't do it either. It is extremely platform dependent, and there are a variety of libraries which work way better than what was in PocketSphinx, which didn't work for most people.

I'm quite firm on this point as I don't have time to maintain yet another audio library (likewise, anything Java or really any language except C, Python, and JavaScript). I am working on a post for the CMUSphinx website which explains the rationale and provides alternatives.

@petercwallis
Copy link
Author

petercwallis commented Aug 11, 2022 via email

@petercwallis
Copy link
Author

petercwallis commented Aug 11, 2022 via email

@dhdaines
Copy link
Contributor

Yes, GStreamer is nice... the current pocketsphinx code is missing a plugin for it, but it is simply a matter of updating the build system.

If you would like to contribute documentation that would be fantastic - sorry if I suggested otherwise, in fact this is the best kind of contribution anyone could make! The main page for documentation is in the pocketsphinx.h header file, and I think this is a good place for it as it means that people can read it without necessarily having to run Doxygen.

@lenzo-ka
Copy link
Contributor

pyaudio also works if you want live mic audio

@petercwallis
Copy link
Author

petercwallis commented Aug 12, 2022 via email

@dhdaines
Copy link
Contributor

Here is a post explaining the removal of audio, with the simplest possible example code: https://cmusphinx.github.io/2022/08/pocketsphinx-continuous/

I'm writing a second one to explain doing VAD once I complete the integration of the VAD code.

@petercwallis
Copy link
Author

petercwallis commented Aug 16, 2022 via email

@dhdaines
Copy link
Contributor

dhdaines commented Aug 16, 2022

Note that the simple example is ... very simple :) it will seem to do nothing until you hit Control-C, which maybe isn't optimal, so I will fix that in a second. It also requires the -hmm, -lm, and -dict arguments, this too should get fixed in a second.

@petercwallis
Copy link
Author

petercwallis commented Aug 19, 2022 via email

@dhdaines
Copy link
Contributor

No problem at all! Thanks for your offer to help. I am hoping to make a first release candidate today - I will be on vacation for a couple of weeks starting Monday, so that will be a good time to find the problems and write some documentation.

@petercwallis
Copy link
Author

petercwallis commented Aug 20, 2022 via email

@petercwallis
Copy link
Author

petercwallis commented Sep 4, 2022 via email

@petercwallis
Copy link
Author

petercwallis commented Sep 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants