Classes | Functions
ascr.h File Reference

Wrapper to hold senone scores. More...

#include <s3types.h>

Go to the source code of this file.

Classes

struct  ascr_t
 

Functions

S3DECODER_EXPORT ascr_tascr_init (int32 n_sen, int32 n_comsen, int32 n_sseq, int32 n_comsseq, int32 pl_win, int32 n_cisen)
 
void ascr_report (ascr_t *a)
 
void ascr_print_senscr (ascr_t *a)
 
S3DECODER_EXPORT void ascr_free (ascr_t *a)
 
void ascr_shift_one_cache_frame (ascr_t *a, int32 win_efv)
 
void ascr_clear_sen_active (ascr_t *a)
 
void ascr_clear_ssid_active (ascr_t *a)
 
void ascr_clear_comssid_active (ascr_t *a)
 

Detailed Description

Wrapper to hold senone scores.

Function Documentation

◆ ascr_clear_comssid_active()

void ascr_clear_comssid_active ( ascr_t a)

Clear the composite senone sequence ID active array

Parameters
aInput, an initialized ascr data structure

◆ ascr_clear_sen_active()

void ascr_clear_sen_active ( ascr_t a)

Clear the senone active array

Parameters
aInput, an initialized ascr data structure

◆ ascr_clear_ssid_active()

void ascr_clear_ssid_active ( ascr_t a)

Clear senone sequence ID active array.

Parameters
aInput, an initialized ascr data structure

◆ ascr_free()

S3DECODER_EXPORT void ascr_free ( ascr_t a)

Free ascr_t

Parameters
aInput: an initialized ascr data structure

◆ ascr_init()

S3DECODER_EXPORT ascr_t* ascr_init ( int32  n_sen,
int32  n_comsen,
int32  n_sseq,
int32  n_comsseq,
int32  pl_win,
int32  n_cisen 
)

Create an ascr_t structure for the given number of senones (ordinary and composite).

Returns
Pointer to created structure if successful, NULL otherwise.
Parameters
n_senInput: #Ordinary senones
n_comsenInput: #Composite senones
n_sseqInput: # of senone sequences
n_comsseqInput: # of composite senone sequences
pl_winInput: size of phoneme lookahead windows
n_cisenInput: # of CI senones

◆ ascr_print_senscr()

void ascr_print_senscr ( ascr_t a)

Report the senone scores and comsen scores array. For debugging.

Parameters
aInput: ascr data structure

◆ ascr_report()

void ascr_report ( ascr_t a)

Report the ascr parameters.

Parameters
aInput : ascr data structure

◆ ascr_shift_one_cache_frame()

void ascr_shift_one_cache_frame ( ascr_t a,
int32  win_efv 
)

Shift one frame for the cache

Parameters
aInput: an initialized ascr data structure
win_efvInput: the effective size of cache windows