Edinburgh Speech Tools  2.1-release
srpd.h File Reference
#include <stdio.h>
Include dependency graph for srpd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CROSS_CORR_
 
struct  SEGMENT_
 
struct  Srpd_Op
 
struct  STATUS_
 
struct  LIST_
 

Macros

#define MINARG   5
 
#define BREAK_NUMBER   0.0
 
#define DEFAULT_DECIMATION   4 /* samples */
 
#define DEFAULT_MIN_PITCH   40.0 /* Hz */
 
#define DEFAULT_MAX_PITCH   400.0 /* Hz */
 
#define DEFAULT_SF   20000 /* Hz. Sampling Frequency */
 
#define DEFAULT_SHIFT   5.0 /* ms */
 
#define DEFAULT_LENGTH   10.0 /* ms */
 
#define DEFAULT_TSILENT   120 /* max. abs sample amplitude of noise */
 
#define DEFAULT_TMIN   0.75
 
#define DEFAULT_TMAX_RATIO   0.85
 
#define DEFAULT_THIGH   0.88
 
#define DEFAULT_TDH   0.77
 
#define UNVOICED   0 /* segment classifications */
 
#define VOICED   1
 
#define SILENT   2
 
#define HOLD   1
 
#define HELD   1
 
#define SEND   2
 
#define SENT   2
 

Enumerations

enum  error_flags {
  CANT_WRITE, DECI_FCTR, INSUF_MEM, FILE_ERR,
  FILE_SEEK, LEN_OOR, MAX_FREQ, MIN_FREQ,
  MISUSE, NOISE_FLOOR, SAMPLE_FREQ, SFT_OOR,
  THR_DH, THR_HIGH, THR_MAX_RTO, THR_MIN
}
 

Functions

void add_to_list (LIST_ **p_list_hd, LIST_ **p_list_tl, int N_val, int score_val)
 
void super_resolution_pda (struct Srpd_Op *paras, SEGMENT_ seg, CROSS_CORR_ *p_cc, STATUS_ *p_status)
 
void write_track (STATUS_ status, struct Srpd_Op paras, FILE *outfile)
 
int read_next_segment (FILE *voxfile, struct Srpd_Op *paras, SEGMENT_ *p_seg)
 
void end_structure_use (SEGMENT_ *p_seg, CROSS_CORR_ *p_cc)
 
void initialise_status (struct Srpd_Op *p, STATUS_ *p_status)
 
void initialise_structures (struct Srpd_Op *p, SEGMENT_ *p_seg, CROSS_CORR_ *p_cc)
 
void initialise_parameters (struct Srpd_Op *p_par)
 
void error (error_flags err_type)
 
void free_list (LIST_ **p_list_hd)
 

Macro Definition Documentation

#define MINARG   5

Definition at line 45 of file srpd.h.

#define BREAK_NUMBER   0.0

Definition at line 46 of file srpd.h.

#define DEFAULT_DECIMATION   4 /* samples */

Definition at line 48 of file srpd.h.

#define DEFAULT_MIN_PITCH   40.0 /* Hz */

Definition at line 49 of file srpd.h.

#define DEFAULT_MAX_PITCH   400.0 /* Hz */

Definition at line 50 of file srpd.h.

#define DEFAULT_SF   20000 /* Hz. Sampling Frequency */

Definition at line 52 of file srpd.h.

#define DEFAULT_SHIFT   5.0 /* ms */

Definition at line 53 of file srpd.h.

#define DEFAULT_LENGTH   10.0 /* ms */

Definition at line 54 of file srpd.h.

#define DEFAULT_TSILENT   120 /* max. abs sample amplitude of noise */

Definition at line 55 of file srpd.h.

#define DEFAULT_TMIN   0.75

Definition at line 56 of file srpd.h.

#define DEFAULT_TMAX_RATIO   0.85

Definition at line 57 of file srpd.h.

#define DEFAULT_THIGH   0.88

Definition at line 58 of file srpd.h.

#define DEFAULT_TDH   0.77

Definition at line 59 of file srpd.h.

#define UNVOICED   0 /* segment classifications */

Definition at line 61 of file srpd.h.

#define VOICED   1

Definition at line 62 of file srpd.h.

#define SILENT   2

Definition at line 63 of file srpd.h.

#define HOLD   1

Definition at line 65 of file srpd.h.

#define HELD   1

Definition at line 66 of file srpd.h.

#define SEND   2

Definition at line 67 of file srpd.h.

#define SENT   2

Definition at line 68 of file srpd.h.

Enumeration Type Documentation

Enumerator
CANT_WRITE 
DECI_FCTR 
INSUF_MEM 
FILE_ERR 
FILE_SEEK 
LEN_OOR 
MAX_FREQ 
MIN_FREQ 
MISUSE 
NOISE_FLOOR 
SAMPLE_FREQ 
SFT_OOR 
THR_DH 
THR_HIGH 
THR_MAX_RTO 
THR_MIN 

Definition at line 110 of file srpd.h.

Function Documentation

void add_to_list ( LIST_ **  p_list_hd,
LIST_ **  p_list_tl,
int  N_val,
int  score_val 
)

Definition at line 381 of file srpd1.3.cc.

void super_resolution_pda ( struct Srpd_Op paras,
SEGMENT_  seg,
CROSS_CORR_ p_cc,
STATUS_ p_status 
)

Definition at line 84 of file srpd1.3.cc.

void write_track ( STATUS_  status,
struct Srpd_Op  paras,
FILE *  outfile 
)

Definition at line 716 of file srpd1.3.cc.

int read_next_segment ( FILE *  voxfile,
struct Srpd_Op paras,
SEGMENT_ p_seg 
)

Definition at line 560 of file srpd1.3.cc.

void end_structure_use ( SEGMENT_ p_seg,
CROSS_CORR_ p_cc 
)

Definition at line 547 of file srpd1.3.cc.

void initialise_status ( struct Srpd_Op p,
STATUS_ p_status 
)

Definition at line 535 of file srpd1.3.cc.

void initialise_structures ( struct Srpd_Op p,
SEGMENT_ p_seg,
CROSS_CORR_ p_cc 
)

Definition at line 515 of file srpd1.3.cc.

void initialise_parameters ( struct Srpd_Op p_par)

Definition at line 495 of file srpd1.3.cc.

void error ( error_flags  err_type)

Definition at line 406 of file srpd1.3.cc.

void free_list ( LIST_ **  p_list_hd)

Definition at line 730 of file srpd1.3.cc.