Edinburgh Speech Tools  2.1-release
EST_wave_aux.h File Reference
#include "EST_String.h"
#include "EST_Wave.h"
#include "ling_class/EST_Relation.h"
#include "EST_Option.h"
#include "EST_FMatrix.h"
#include "EST_TNamedEnum.h"
Include dependency graph for EST_wave_aux.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

EST_wave_aux

Auxiliary functions for processing waveforms.

enum  EST_sample_type_t {
  st_unknown, st_schar, st_uchar, st_short,
  st_shorten, st_int, st_float, st_double,
  st_mulaw, st_adpcm, st_alaw, st_ascii
}
 
EST_TNamedEnum< EST_sample_type_tEST_sample_type_map
 
int wave_extract_channel (EST_Wave &single, const EST_Wave &multi, int channel)
 
void wave_combine_channels (EST_Wave &combined, const EST_Wave &multi)
 
int wave_subwave (EST_Wave &subsig, EST_Wave &sig, int offset, int length)
 
int wave_divide (EST_WaveList &wl, EST_Wave &sig, EST_Relation &keylab, const EST_String &ext)
 
int wave_extract (EST_Wave &part, EST_Wave &sig, EST_Relation &keylab, const EST_String &file)
 
void add_waves (EST_Wave &s, const EST_Wave &m)
 
EST_Wave difference (EST_Wave &a, EST_Wave &b)
 
float rms_error (EST_Wave &a, EST_Wave &b, int channel)
 
float abs_error (EST_Wave &a, EST_Wave &b, int channel)
 
float correlation (EST_Wave &a, EST_Wave &b, int channel)
 
EST_FVector rms_error (EST_Wave &a, EST_Wave &b)
 
EST_FVector abs_error (EST_Wave &a, EST_Wave &b)
 
EST_FVector correlation (EST_Wave &a, EST_Wave &b)
 
EST_Wave error (EST_Wave &ref, EST_Wave &test, int relax)
 
void absolute (EST_Wave &a)
 
EST_read_status read_wave (EST_Wave &sig, const EST_String &in_file, EST_Option &al)
 
EST_write_status write_wave (EST_Wave &sig, const EST_String &in_file, EST_Option &al)
 
void wave_info (EST_Wave &w)
 
void invert (EST_Wave &sig)
 
void differentiate (EST_Wave &sig)
 
void reverse (EST_Wave &sig)
 
void ulaw_to_short (const unsigned char *ulaw, short *data, int length)
 
void alaw_to_short (const unsigned char *alaw, short *data, int length)
 
void uchar_to_short (const unsigned char *chars, short *data, int length)
 
void short_to_char (const short *data, unsigned char *chars, int length)
 
void short_to_ulaw (const short *data, unsigned char *ulaw, int length)
 
void short_to_alaw (const short *data, unsigned char *alaw, int length)
 
enum EST_write_status wave_io_save_header (FILE *fp, const int num_samples, const int num_channels, const int sample_rate, const EST_String &stype, const int bo, const EST_String &ftype)
 

Enumeration Type Documentation

Enumerator
st_unknown 
st_schar 
st_uchar 
st_short 
st_shorten 
st_int 
st_float 
st_double 
st_mulaw 
st_adpcm 
st_alaw 
st_ascii 

Definition at line 105 of file EST_wave_aux.h.

Function Documentation

int wave_extract_channel ( EST_Wave single,
const EST_Wave multi,
int  channel 
)

Definition at line 122 of file EST_wave_aux.cc.

void wave_combine_channels ( EST_Wave combined,
const EST_Wave multi 
)

Definition at line 159 of file EST_wave_aux.cc.

int wave_subwave ( EST_Wave subsig,
EST_Wave sig,
int  offset,
int  length 
)

Definition at line 112 of file EST_wave_cuts.cc.

int wave_divide ( EST_WaveList wl,
EST_Wave sig,
EST_Relation keylab,
const EST_String ext 
)

Definition at line 56 of file EST_wave_cuts.cc.

int wave_extract ( EST_Wave part,
EST_Wave sig,
EST_Relation keylab,
const EST_String file 
)

Definition at line 81 of file EST_wave_cuts.cc.

void add_waves ( EST_Wave s,
const EST_Wave m 
)

Definition at line 181 of file EST_wave_aux.cc.

EST_Wave difference ( EST_Wave a,
EST_Wave b 
)

Definition at line 52 of file EST_wave_temp.cc.

float rms_error ( EST_Wave a,
EST_Wave b,
int  channel 
)

Definition at line 98 of file EST_wave_temp.cc.

float abs_error ( EST_Wave a,
EST_Wave b,
int  channel 
)

Definition at line 111 of file EST_wave_temp.cc.

float correlation ( EST_Wave a,
EST_Wave b,
int  channel 
)

Definition at line 124 of file EST_wave_temp.cc.

EST_FVector rms_error ( EST_Wave a,
EST_Wave b 
)

Definition at line 166 of file EST_wave_temp.cc.

EST_FVector abs_error ( EST_Wave a,
EST_Wave b 
)

Definition at line 185 of file EST_wave_temp.cc.

EST_FVector correlation ( EST_Wave a,
EST_Wave b 
)

Definition at line 204 of file EST_wave_temp.cc.

EST_Wave error ( EST_Wave ref,
EST_Wave test,
int  relax 
)

Definition at line 223 of file EST_wave_temp.cc.

void absolute ( EST_Wave a)

Definition at line 158 of file EST_wave_temp.cc.

EST_read_status read_wave ( EST_Wave sig,
const EST_String in_file,
EST_Option al 
)

Definition at line 556 of file EST_WaveFile.cc.

EST_write_status write_wave ( EST_Wave sig,
const EST_String in_file,
EST_Option al 
)

Definition at line 671 of file EST_WaveFile.cc.

void wave_info ( EST_Wave w)

Definition at line 236 of file EST_wave_aux.cc.

void invert ( EST_Wave sig)

Definition at line 193 of file EST_wave_aux.cc.

void differentiate ( EST_Wave sig)

Definition at line 76 of file EST_wave_aux.cc.

void reverse ( EST_Wave sig)

Definition at line 198 of file EST_wave_aux.cc.

void ulaw_to_short ( const unsigned char *  ulaw,
short *  data,
int  length 
)

Definition at line 103 of file EST_wave_utils.cc.

void alaw_to_short ( const unsigned char *  alaw,
short *  data,
int  length 
)

Definition at line 113 of file EST_wave_utils.cc.

void uchar_to_short ( const unsigned char *  chars,
short *  data,
int  length 
)

Definition at line 133 of file EST_wave_utils.cc.

void short_to_char ( const short *  data,
unsigned char *  chars,
int  length 
)
void short_to_ulaw ( const short *  data,
unsigned char *  ulaw,
int  length 
)

Definition at line 196 of file EST_wave_utils.cc.

void short_to_alaw ( const short *  data,
unsigned char *  alaw,
int  length 
)

Definition at line 206 of file EST_wave_utils.cc.

enum EST_write_status wave_io_save_header ( FILE *  fp,
const int  num_samples,
const int  num_channels,
const int  sample_rate,
const EST_String stype,
const int  bo,
const EST_String ftype 
)

Definition at line 2000 of file EST_wave_io.cc.

Variable Documentation

EST_TNamedEnum<EST_sample_type_t> EST_sample_type_map