#include <sent/stddefs.h>
#include <sent/speech.h>
adin.hのインクルード依存関係図
このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。
マクロ定義 | |
#define | DEFAULT_WSTEP 1000 |
Default unit size of speech input segment in bytes. | |
#define | SUPPORTED_WAVEFILE_FORMAT "RAW(BE),WAV,AU,SND,NIST,ADPCM and more" |
#define | ZMEANSAMPLES 48000 |
列挙型 | |
enum | { SP_RAWFILE, SP_MIC, SP_ADINNET, SP_MFCFILE, SP_NETAUDIO, SP_STDIN } |
To select speech input source. [詳細] | |
関数 | |
boolean | adin_select (int source) |
boolean | adin_standby (int freq, void *arg) |
boolean | adin_begin () |
boolean | adin_end () |
void | adin_setup_func (int(*cad_read)(SP16 *, int), boolean(*cad_pause)(), boolean(*cad_resume)(), boolean use_cut_def, boolean need_thread) |
void | adin_setup_param (int silence_cut, boolean strip_zero, int cthres, int czc, int margin, int tail_margin, int sample_freq, boolean ignore_speech, boolean need_zeromean) |
boolean | query_segment_on () |
boolean | query_thread_on () |
void | adin_reset_zmean () |
int | adin_go (int(*ad_process)(SP16 *, int), int(*ad_check)()) |
Top function to start input processing. | |
boolean | adin_mic_standby (int freq, void *arg) |
boolean | adin_mic_start () |
boolean | adin_mic_stop () |
int | adin_mic_read (SP16 *buf, int sampnum) |
Read samples from the daemon. | |
boolean | adin_netaudio_standby (int freq, void *arg) |
boolean | adin_netaudio_start () |
boolean | adin_netaudio_stop () |
int | adin_netaudio_read (SP16 *buf, int sampnum) |
Read samples from the daemon. | |
int | NA_standby (int, char *) |
void | NA_start () |
void | NA_stop () |
int | NA_read (SP16 *buf, int sampnum) |
Read samples from NetAudio port. | |
char * | get_line (char *prompt) |
boolean | adin_file_standby (int freq, void *arg) |
boolean | adin_file_begin () |
Begin reading audio data from a file. | |
int | adin_file_read (SP16 *buf, int sampnum) |
boolean | adin_file_end () |
boolean | adin_stdin_standby (int freq, void *arg) |
boolean | adin_stdin_begin () |
Begin reading audio data from stdin. | |
int | adin_stdin_read (SP16 *buf, int sampnum) |
boolean | adin_sndfile_standby (int freq, void *arg) |
boolean | adin_sndfile_begin () |
Begin reading audio data from a file. | |
int | adin_sndfile_read (SP16 *buf, int sampnum) |
boolean | adin_sndfile_end () |
boolean | adin_tcpip_standby (int freq, void *arg) |
boolean | adin_tcpip_begin () |
boolean | adin_tcpip_end () |
End recording. | |
int | adin_tcpip_read (SP16 *buf, int sampnum) |
boolean | adin_tcpip_send_pause () |
boolean | adin_tcpip_send_terminate () |
boolean | adin_tcpip_send_resume () |
void | init_count_zc_e (int c_trigger, int c_length, int c_offset) |
void | end_count_zc_e () |
int | count_zc_e (SP16 *buf, int step) |
int | count_zc_e_level (SP16 *buf, int step, int *levelp) |
void | zc_copy_buffer (SP16 *newbuf, int *len) |
void | zmean_reset () |
void | sub_zmean (SP16 *speech, int samplenum) |
Remove DC offset. |
adin.h で定義されています。
|
String describing the list of supported wave file formats. It depends on HAVE_LIBSNDFILE. 参照元 detailed_help(). |
|
Number of samples from beggining of input to be used for computing the zero mean of source channel (for microphone/network input). 参照元 print_info(), と sub_zmean(). |
|
To select speech input source.
|
|
Select input source and setup device-specific functions.
参照元 adin_initialize(). |
|
Call device-specific initialization.
参照元 adin_initialize(). |
|
Call device-specific function to begin capturing of the audio stream.
|
|
Call device-specific function to end capturing of the audio stream.
|
|
Store the given device-dependent functions and configuration values to local work area. This function will be called from adin_select() via adin_register_func().
adin-cut.c の 178 行で定義されています。 参照元 adin_register_func(). |
|
Setup silence detection parameters (should be called after adin_select()). If using pthread, the A/D-in and detection thread will be started at the end of this function.
adin-cut.c の 215 行で定義されています。 参照元 adin_initialize(). |
|
Query function to check whether the input speech detection is on or off.
adin-cut.c の 253 行で定義されています。 参照元 print_info(). |
|
Query function to check whether the input threading is on or off.
adin-cut.c の 264 行で定義されています。 参照元 print_info(). |
|
Reset zero mean data to re-estimate zero mean at the next input. adin-cut.c の 274 行で定義されています。 参照元 adin_begin(), と adin_standby(). |
|
Top function to start input processing. If threading mode is enabled, this function simply enters to adin_thread_process() to process triggered samples detected by another running A/D-in thread. If threading mode is not available or disabled by either device requirement or OS capability, this function simply calls adin_cut() to detect speech segment from input device and process them concurrently by one process.
adin-cut.c の 1123 行で定義されています。 |
|
Device initialization: check device capability and open for recording.
adin_esd.c の 51 行で定義されています。 参照元 adin_select(). |
|
Start recording.
adin_esd.c の 75 行で定義されています。 参照元 adin_mic_standby(), と adin_select(). |
|
Stop recording.
adin_esd.c の 86 行で定義されています。 参照元 adin_mic_standby(), と adin_select(). |
|
Read samples from the daemon. Try to read sampnum samples and returns actual number of recorded samples currently available. This function will block until at least some samples are obtained.
adin_esd.c の 104 行で定義されています。 参照元 adin_select(). |
|
Connection initialization: check connectivity and open for recording.
adin_netaudio.c の 57 行で定義されています。 参照元 adin_select(). |
|
Start recording.
adin_netaudio.c の 71 行で定義されています。 参照元 adin_select(). |
|
Stop recording.
adin_netaudio.c の 84 行で定義されています。 参照元 adin_select(). |
|
Read samples from the daemon. Try to read sampnum samples and returns actual number of recorded samples currently available. This function will block until at least one sample can be obtained.
adin_netaudio.c の 103 行で定義されています。 参照元 adin_select(). |
|
Initialize NetAudio device.
|
|
Begin recording. |
|
Pause the recording. 参照元 adin_netaudio_stop(). |
|
Read samples from NetAudio port. Try to read sampnum samples and returns actual number of recorded samples currently available. This function will block until at least some samples are obtained.
参照元 adin_netaudio_read(). |
|
Get one file name from stdin with a prompt . Blank line is omitted.
adin_file.c の 314 行で定義されています。 参照元 adin_file_begin(), adin_sndfile_begin(), と main_recognition_loop(). |
|
Initialization: if listfile is specified, open it here.
adin_file.c の 355 行で定義されています。 参照元 adin_select(). |
|
Begin reading audio data from a file. If listfile was specified in adin_file_standby(), the next filename will be read from the listfile. Otherwise, the filename will be obtained from stdin. Then the file will be opened here.
adin_file.c の 385 行で定義されています。 参照元 adin_select(). |
|
Try to read sampnum samples and returns actual sample num recorded.
adin_file.c の 429 行で定義されています。 参照元 adin_select(). |
|
End recording.
adin_file.c の 476 行で定義されています。 参照元 adin_select(). |
|
Initialization for speech input via stdin.
adin_file.c の 492 行で定義されています。 参照元 adin_select(). |
|
Begin reading audio data from stdin.
adin_file.c の 505 行で定義されています。 参照元 adin_select(). |
|
Try to read sampnum samples and returns actual sample num recorded.
adin_file.c の 528 行で定義されています。 参照元 adin_select(). |
|
Initialization: if listfile is specified, open it here. Else, just store the required frequency.
adin_sndfile.c の 202 行で定義されています。 参照元 adin_select(). |
|
Begin reading audio data from a file. If listfile was specified in adin_sndfile_standby(), the next filename will be read from the listfile. Otherwise, the filename will be obtained from stdin. Then the file will be opened here.
adin_sndfile.c の 232 行で定義されています。 参照元 adin_select(). |
|
Try to read sampnum samples and returns actual sample num recorded.
adin_sndfile.c の 313 行で定義されています。 参照元 adin_select(). |
|
End recording.
adin_sndfile.c の 334 行で定義されています。 参照元 adin_select(). |
|
Initialize as adinnet server: prepare to become server.
adin_tcpip.c の 78 行で定義されています。 参照元 adin_select(). |
|
Wait for connection from adinnet client and begin audio input stream.
adin_tcpip.c の 100 行で定義されています。 参照元 adin_select(). |
|
End recording. If last input segment was segmented by end of connection, close socket and wait for next connection. Otherwise, it means that the last input segment was segmented by either end-of-segment signal from client side or speech detection function in server side, so just wait for a next input in the current socket.
adin_tcpip.c の 146 行で定義されています。 参照元 adin_select(). |
|
Try to read sampnum samples and returns actual sample num recorded. This function will not block. If data of zero length has been received, it is treated as a end-of-segment marker from the client. If data below zero length has been received, it means the client has finished the overall input stream transmission and want to disconnect.
adin_tcpip.c の 177 行で定義されています。 参照元 adin_select(). |
|
Tell the adinnet client to pause transfer.
adin_tcpip.c の 223 行で定義されています。 |
|
Tell the adinnet client to terminate transfer.
adin_tcpip.c の 257 行で定義されています。 |
|
Tell the adinnet client to resume the paused transfer.
adin_tcpip.c の 240 行で定義されています。 |
|
Initialize all parameters and buffers for zero-cross counting.
参照元 adin_cut(). |
|
End procedure: free all buffers. 参照元 adin_cut(). |
|
Adding buf[0..step-1] to the cycle buffer and update the count of zero cross. Also swap them with the oldest ones in the cycle buffer.
参照元 adin_cut(). |
|
Adding buf[0..step-1] to the cycle buffer and update the count of zero cross. Also swap them with the oldest ones in the cycle buffer. Also get the maximum level in the cycle buffer.
|
|
Flush samples in the current cycle buffer.
参照元 adin_cut(). |
|
Reset status. 参照元 adin_reset_zmean(). |
|
Remove DC offset. The DC offset is estimated by the first samples after zmean_reset() was called. If the first input segment is longer than ZMEANSAMPLES, the whole input is used to estimate the zero mean. Otherwise, the zero mean will continue to be updated until the read length exceed ZMEANSAMPLES.
参照元 adin_cut(). |