def num_samples(input_filepath):
validate_input_file(input_filepath)<EOL>output = soxi(input_filepath, '<STR_LIT:s>')<EOL>if output == '<STR_LIT:0>':<EOL><INDENT>logger.warning("<STR_LIT>", input_filepath)<EOL><DEDENT>return int(output)<EOL>
Show number of samples (0 if unavailable).

Parameters
----------
input_filepath : str
    Path to audio file.

Returns
-------
n_samples : int
    total number of samples in audio file.
    Returns 0 if empty or unavailable