Package sphinxbase :: Module sphinxbase :: Class FrontEnd
[hide private]
[frames] | no frames]

Class FrontEnd

source code

object --+
         |
        FrontEnd

Proxy of C FrontEnd struct

Instance Methods [hide private]
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__getattr__(self, name) source code
 
__repr__(self)
repr(x)
source code
 
__init__(self)
__init__(FrontEnd self) -> FrontEnd
source code
 
__swig_destroy__(...)
delete_FrontEnd(FrontEnd self)
 
__del__(self) source code
 
output_size(self)
output_size(FrontEnd self) -> int
source code
 
process_utt(self, spch, nsamps, cep_block)
process_utt(FrontEnd self, char * spch, size_t nsamps, mfcc_t *** cep_block) -> int
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __swig_setmethods__ = {}
  __swig_getmethods__ = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__init__(self)
(Constructor)

source code 

__init__(FrontEnd self) -> FrontEnd

Overrides: object.__init__

process_utt(self, spch, nsamps, cep_block)

source code 

process_utt(FrontEnd self, char * spch, size_t nsamps, mfcc_t *** cep_block) -> int

Process a block of samples, returning as many frames as possible.

This function processes all the samples in a block of data and returns a newly allocated block of feature vectors. This block needs to be freed with fe_free_2d() after use.

It is possible for there to be some left-over data which could not fit in a complete frame. This data can be processed with fe_end_utt().

This function is deprecated in favor of fe_process_frames().

0 for success, <0 for failure (see enum fe_error_e)