Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cython/_pocketsphinx.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ cdef extern from "sphinxbase/jsgf.h":
logmath_t *lmath, float lw)


cdef extern from "pocketsphinx/ps_lattice.h":
cdef extern from "pocketsphinx/lattice.h":
ctypedef struct ps_lattice_t:
pass
ctypedef struct ps_latnode_t:
Expand Down Expand Up @@ -383,7 +383,7 @@ cdef extern from "pocketsphinx.h":
const char *format)


cdef extern from "pocketsphinx/ps_search.h":
cdef extern from "pocketsphinx/search.h":
ctypedef struct ps_search_iter_t:
pass
int ps_set_search(ps_decoder_t *ps, const char *name)
Expand All @@ -407,7 +407,7 @@ cdef extern from "pocketsphinx/ps_search.h":
int ps_set_allphone_file(ps_decoder_t *ps, const char *name, const char *path)
int ps_set_align(ps_decoder_t *ps, const char *name, const char *words)

cdef extern from "pocketsphinx/ps_vad.h":
cdef extern from "pocketsphinx/vad.h":
ctypedef struct ps_vad_t:
pass
cdef enum ps_vad_mode_e:
Expand All @@ -432,7 +432,7 @@ cdef extern from "pocketsphinx/ps_vad.h":
double ps_vad_frame_length(ps_vad_t *vad)
ps_vad_class_t ps_vad_classify(ps_vad_t *vad, const short *frame)

cdef extern from "pocketsphinx/ps_endpointer.h":
cdef extern from "pocketsphinx/endpointer.h":
ctypedef struct ps_endpointer_t:
pass
cdef double PS_ENDPOINTER_DEFAULT_WINDOW
Expand Down
11 changes: 5 additions & 6 deletions include/pocketsphinx.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@

/* PocketSphinx headers */
#include <pocketsphinx/export.h>
#include <pocketsphinx/cmdln_macro.h>
#include <pocketsphinx/ps_lattice.h>
#include <pocketsphinx/ps_mllr.h>
#include <pocketsphinx/lattice.h>
#include <pocketsphinx/mllr.h>

#ifdef __cplusplus
extern "C" {
Expand All @@ -70,13 +69,13 @@ extern "C" {
typedef struct ps_decoder_s ps_decoder_t;

/* Voice activity detection. */
#include <pocketsphinx/ps_vad.h>
#include <pocketsphinx/vad.h>

/* Endpointing. */
#include <pocketsphinx/ps_endpointer.h>
#include <pocketsphinx/endpointer.h>

/* Search modules. */
#include <pocketsphinx/ps_search.h>
#include <pocketsphinx/search.h>

/**
* PocketSphinx N-best hypothesis iterator object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern "C" {
#include <sphinxbase/prim_type.h>
#include <pocketsphinx/export.h>

#include <pocketsphinx/ps_vad.h>
#include <pocketsphinx/vad.h>

/**
* Endpointer object.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions programs/pocketsphinx_batch.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <pocketsphinx.h>

/* S3kr3t headerz. */
#include "cmdln_macro.h"
#include "pocketsphinx_internal.h"

/* Silvio Moioli: setbuf doesn't exist in Windows CE */
Expand Down
4 changes: 3 additions & 1 deletion src/acmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@
#include <sphinxbase/feat.h>
#include <sphinxbase/bio.h>

/* PocketSphinx headers. */
#include <pocketsphinx.h>

/* Local headers. */
#include "cmdln_macro.h"
#include "acmod.h"
#include "s2_semi_mgau.h"
#include "ptm_mgau.h"
Expand Down
2 changes: 1 addition & 1 deletion src/acmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#include <sphinxbase/prim_type.h>

/* Local headers. */
#include <pocketsphinx/ps_mllr.h>
#include <pocketsphinx/mllr.h>
#include <pocketsphinx/export.h>
#include "bin_mdef.h"
#include "tmat.h"
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion src/pocketsphinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
#include <sphinxbase/jsgf.h>
#include <sphinxbase/hash_table.h>

/* PocketSphinx headers. */
#include <pocketsphinx.h>

/* Local headers. */
#include "cmdln_macro.h"
#include "pocketsphinx.h"
#include "pocketsphinx_internal.h"
#include "ps_lattice_internal.h"
#include "phone_loop_search.h"
Expand Down
2 changes: 1 addition & 1 deletion src/ps_endpointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include <sphinxbase/ckd_alloc.h>
#include <sphinxbase/err.h>
#include <pocketsphinx/ps_endpointer.h>
#include <pocketsphinx/endpointer.h>

#include <string.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/ps_vad.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include <sphinxbase/ckd_alloc.h>
#include <sphinxbase/err.h>
#include <pocketsphinx/ps_vad.h>
#include <pocketsphinx/vad.h>

#include "common_audio/vad/include/webrtc_vad.h"
#include "common_audio/vad/vad_core.h"
Expand Down