#include <julius.h>
#include <time.h>
Include dependency graph for record.c:

Go to the source code of this file.
Defines | |
| #define | TSTRLEN 18 |
| String length of a time format. | |
Functions | |
| static void | timestring (char *t, int maxlen) |
| static void | make_record_filename (char *buf, int buflen, char *filename) |
| static void | make_tmp_filename (char *buf, int buflen) |
| void | record_sample_open () |
| void | record_sample_write (SP16 *speech, int samplenum) |
| void | record_sample_close () |
Variables | |
| static char | tstr [TSTRLEN] |
| Work area to hold time string. | |
| static char | recfilename [MAXLINELEN] |
| Temporary file name for storing the incoming data. | |
| static char | finalfilename [MAXLINELEN] |
| After recording is done, the file will be renames to this. | |
| static FILE * | fp = NULL |
| File pointer of current file. | |
| static int | totalnum |
| Current number of recorded samples. | |
The recording will not be stored in memory, instead it will be directly recorded to a temporary file on the fly. After an end-of-sentence found and the first pass ends, the temporary file will be moved to the final filename descrived above.
Definition in file record.c.
|
||||||||||||
|
Make base filename string from current system time.
Definition at line 67 of file record.c. Referenced by record_sample_write(). |
|
||||||||||||||||
|
Make actual file path name from base file name. The recording directory should be specified by the global variable "record_dirname".
Definition at line 97 of file record.c. Referenced by record_sample_close(). |
|
||||||||||||
|
Make temporary filename to store the incoming data while recording.
Definition at line 126 of file record.c. Referenced by record_sample_open(). |
|
|
Open temporary file for starting recording. Definition at line 146 of file record.c. Referenced by main_recognition_loop(), and RealTimePipeLinePrepare(). |
|
||||||||||||
|
Append speech segment to file previously opened by record_sample_open().
Definition at line 175 of file record.c. Referenced by adin_cut_callback_store_buffer(), and RealTimePipeLine(). |
|
|
End recording. Close the current temporary recording file, and rename the temporary file to the final time-stamp file name. Definition at line 207 of file record.c. Referenced by main_recognition_loop(). |
1.4.2