Last active
September 25, 2024 03:15
-
-
Save cash/3fbc6ba9beab38678d8ee81b1d3ab5d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Instructions here: http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx | |
| sudo apt-get install python-dev bison autoconf libtool-bin swig libpulse-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#include <stdio.h>
#include <stdlib.h>
#include <pocketsphinx.h>
#include <sphinxbase/ad.h>
#include <sphinxbase/err.h>
void recognize_from_microphone() {
ps_decoder_t *ps;
cmd_ln_t *config;
ad_rec_t *ad;
int16 adbuf[4096];
uint8 utt_started, in_speech;
int32 k;
char const *hyp;
}
int main(int argc, char *argv[]) {
recognize_from_microphone();
return 0;
}