#include <sent/adin.h>
Include dependency graph for speech.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | MAXSEQNUM 150 |
Maximum number of words in an input. | |
#define | MAXSPEECHLEN 320000 |
Maximum length of an input in samples. | |
#define | OUTPROB_CACHE_PERIOD 100 |
Expansion period in frames for output probability cache. | |
#define | period2freq(A) (10000000.0 / (float)(A)) |
Macro to convert smpPeriod (100nsec unit) to frequency (Hz). | |
#define | freq2period(A) (10000000.0 / (float)(A)) |
Macro to convert sampling frequency (Hz) to smpPeriod (100nsec unit). | |
Functions | |
int | wrsamp (int fd, SP16 *buf, int len) |
FILE * | wrwav_open (char *filename, int sfreq) |
Open/create a WAVE file and write header. | |
boolean | wrwav_data (FILE *fp, SP16 *buf, int len) |
boolean | wrwav_close (FILE *fp) |
Close the file. | |
int | strip_zero (SP16 a[], int len) |
Please refer to adin.h for speech capturing, mfcc.h for MFCC parameter extraction, htk_param.h for storing the parameter vectors.
Definition in file speech.h.
|
Maximum number of words in an input. This value defines limitation of word length in one utterance input. If the number of words exceeds this value, Julius produces error. So you have to set large value enough. Definition at line 49 of file speech.h. Referenced by bt_current_max(), cpy_node(), print_1pass_result(), wb_init(), and wchmm_fbs(). |
|
Maximum length of an input in samples. This value defines limitation of speech input length in one utterance input. If the length of an input exceeds this value, Julius stop the input at that point and recognize it, disgarding the rest until the end of speech (long silence) comes. The default value is 320000, which means you can give Julius an input of at most 20 secons in 16kHz sampling. Setting smaller value saves memory usage. Definition at line 64 of file speech.h. Referenced by adin_cut(), adin_cut_callback_store_buffer(), adin_store_buffer(), adin_thread_create(), adin_thread_process(), and RealTimeInit(). |
|
Expansion period in frames for output probability cache. When recognition, the 1st recognition pass stores all the output probabilities of HMM states for every incoming input frame, to speed up the re-computation of acoustic likelihoods in the 2nd pass. In live input mode, this output probability cache will be re-allocated dynamically as the input becomes longer. This value specifies the re-allocation period in frames. The probability cache are will be expanded as the input proceeds this frame. Smaller value may improve memory efficiency, but Too small value may result in the overhead of memory re-allocation and slow down the recognition. Definition at line 83 of file speech.h. Referenced by outprob_cache_init(). |
|
Write waveform data in big endian to a file descriptor
|
|
Open/create a WAVE file and write header. Open or creat a new WAV file and prepare for later data writing. The frame length written here is dummy, and will be overwritten when closed by wrwav_close().
Definition at line 73 of file wrwav.c. Referenced by record_sample_open(). |
|
Write speech samples.
Definition at line 126 of file wrwav.c. Referenced by record_sample_write(). |
|
Close the file. The frame length in the header part is overwritten by the actual value before file close.
Definition at line 146 of file wrwav.c. Referenced by record_sample_close(). |
|
Strip zero samples from speech data.
Definition at line 40 of file strip.c. Referenced by adin_cut(). |