Functions | |
def | accepts |
def | check_language |
def | check_wave_data |
def rospeex_core.validators.accepts | ( | types | ) |
check function argument types @param types: parameter types (kwdict) @type types: dict @raise ParameterException: parameter type exception
Definition at line 12 of file validators.py.
def rospeex_core.validators.check_language | ( | language, | |
supported_languages | |||
) |
check supported language @param param_name: check parameter name @type param_name: str @param languages: supported languages in the client @type languages: list @raises UnsupportedLanguageException
Definition at line 94 of file validators.py.
def rospeex_core.validators.check_wave_data | ( | data, | |
framerate, | |||
nchannel, | |||
sampwidth, | |||
maxlength | |||
) |
check wave file error. @param data: parameter data @type data: str @param framerate: wave file framerate @type framerate: int @param nchannel: wave file channel @type nchannel: int @param sampwidth: sampling width (1=>8bit, 2=>16bit, 4=>32bit) @type sampwidth: int @param maxlength: max wave length [ms] @type maxlength: int @raises InvalidAudioDataException
Definition at line 38 of file validators.py.