Previous topic

speect.featproc_cb – Feature Processor Callback

Next topic

speect.ebml – Extensible Binary Markup Language

speect.uttproc_cb – Utterance Processor Callback

Speect Plug-in for SUttProcessorCB class

This module adds a method to the speect.SUttProcessor, which enables one to define a callback function in Python. This callback function will then be used whenever the utterance processor’s method is called.

static SUttProcessor.callback()


Create a new utterance processor that has a Python function as a callback. When this newly created feature processor’s run method is called, the Python function will be called with the arguments as supplied to the utterance processor. The Python callback must take one argument, an utterance (speect.SUtterance), and must not return anything. The utterance can be modified in place.

Parameters:callback_function (A callable function) – A Python function that will be used as a callback function when this utterance processor’s run method is called.