Previous topic

speect.lexicon – Lexicon Class

Next topic

speect.featproc_cb – Feature Processor Callback

speect.syllabification – Syllabification Class

class speect.syllabification.SSyllabification

Proxy of C SSyllabification struct

SSyllabification.name((self) -> char)
SSyllabification.description((self) -> char)
SSyllabification.language((self) -> char)
SSyllabification.lang_code((self) -> char)
SSyllabification.version() Return the Speect Engine library version in a tuple, (major version number, minor
SSyllabification.syllabify(word, phone_list) syllabify(word, phone_list):
SSyllabification.features Get the features that are defined for the syllabification.
SSyllabification.name()

name(self) -> char

SSyllabification.description()

description(self) -> char

SSyllabification.language()

language(self) -> char

SSyllabification.lang_code()

lang_code(self) -> char

SSyllabification.version()

Return the Speect Engine library version in a tuple, (major version number, minor version number, patch name, release name).

Return type:tuple
SSyllabification.syllabify()

syllabify(word, phone_list):

Syllabify the given phone list of the given word item. The word must be an SItem type so that the syllabification algorithm has access to any voice features it requires.

Parameters:
  • word (SItem) – The word item.
  • phone_list (list) – The list of phones for the given word item.
Returns:

A List of lists where the primary list are syllables and the secondary lists are the phones in the syllables. For example, for the word mathematics, the phonelist is

[m , ae , th, ax, m, ae, t, ih, k, s]

and the returned list is:

[[m, ae], [th, ax], [m, ae], [t, ih, k, s]]

Return type:

list

SSyllabification.features

Get the features that are defined for the syllabification.

Returns:A map of the syllabification features.
Return type:SMap