Table Of Contents

Previous topic

Processors

Next topic

Feature Processor

Utterance Processor

An Utterance Processor processes an utterance by extracting information from it and then modifying it in some way.

class speect.SUttProcessor(*args, **kwargs)

An Utterance Processor processes an utterance by extracting information from it and then modifying it in some way.

Note

The SUttProcessor object inherits from SObject in the Speect Engine and can therefore be used in functions/methods that require parameters of type SObject.

Functions

SUttProcessor.run()

run(utt)

Execute the UttProcessor on the given utterance.

Parameters:utt (SUtterance) – The utterance on which to execute the utterance processor.

Features

An utterance processor has features which can be accessed by:

SUttProcessor.features

Get the features that are defined for the utterance processor.

Returns:A map of the utterance processor features.
Return type:SMap

For example:

sr = uttproc.features["sampling_rate"]

See SMap for the implemented operations.