diagnostics

This module contains the following classes:

  • Diagnostics, checking whether the setup of aeneas was successful.

This module can be executed from command line with:

python -m aeneas.diagnostics

New in version 1.4.1.

class aeneas.diagnostics.Diagnostics[source]

Check whether the setup of aeneas was successful.

classmethod check_all(tools=True, encoding=True, c_ext=True)[source]

Perform all checks.

Return a tuple of booleans (errors, warnings, c_ext_warnings).

Parameters:
  • tools (bool) – if True, check aeneas tools
  • encoding (bool) – if True, check shell encoding
  • c_ext (bool) – if True, check Python C extensions
Return type:

(bool, bool, bool)

classmethod check_cdtw()[source]

Check whether Python C extension cdtw can be imported.

Return True on failure and False on success.

Return type:bool
classmethod check_cew()[source]

Check whether Python C extension cew can be imported.

Return True on failure and False on success.

Return type:bool
classmethod check_cmfcc()[source]

Check whether Python C extension cmfcc can be imported.

Return True on failure and False on success.

Return type:bool
classmethod check_espeak()[source]

Check whether espeak can be called.

Return True on failure and False on success.

Return type:bool
classmethod check_ffmpeg()[source]

Check whether ffmpeg can be called.

Return True on failure and False on success.

Return type:bool
classmethod check_ffprobe()[source]

Check whether ffprobe can be called.

Return True on failure and False on success.

Return type:bool
classmethod check_shell_encoding()[source]

Check whether sys.stdin and sys.stdout are UTF-8 encoded.

Return True on failure and False on success.

Return type:bool
classmethod check_tools()[source]

Check whether aeneas.tools.* can be imported.

Return True on failure and False on success.

Return type:bool