parselmouth.MFCC

Contents

parselmouth.MFCC#

class parselmouth.MFCC#

Bases: CC

Methods

__init__

convolve

copy

cross_correlate

extract_features

frame_number_to_time

get_c0_value_in_frame

get_end_time

get_frame

get_frame_number_from_time

get_number_of_coefficients

get_number_of_frames

get_start_time

get_time_from_frame_number

get_time_step

get_total_duration

get_value_in_frame

info

read

Read a file into a parselmouth.Data object.

save

save_as_binary_file

save_as_short_text_file

save_as_text_file

scale_times_by

scale_times_to

scale_x_by

scale_x_to

shift_times_by

shift_times_to

shift_x_by

shift_x_to

t_bins

t_grid

time_to_frame_number

to_array

to_matrix

to_matrix_features

to_sound

ts

x_bins

x_grid

xs

Attributes

centre_time

class_name

dt

duration

dx

end_time

fmax

fmin

full_name

max_n_coefficients

n_frames

name

nt

nx

start_time

t1

time_range

time_step

tmax

tmin

total_duration

trange

x1

xmax

xmin

xrange

class FileFormat#

Bases: pybind11_object

__eq__(self: object, other: object) bool#
__hash__(self: object) int#
__index__(self: parselmouth.Data.FileFormat) int#
__init__(self: parselmouth.Data.FileFormat, value: int) None#
__init__(self: parselmouth.Data.FileFormat, arg0: str) None
__int__(self: parselmouth.Data.FileFormat) int#
__ne__(self: object, other: object) bool#
__new__(**kwargs)#
__repr__(self: object) str#
__str__()#

name(self: handle) -> str

BINARY = <FileFormat.BINARY: 2>#
SHORT_TEXT = <FileFormat.SHORT_TEXT: 1>#
TEXT = <FileFormat.TEXT: 0>#
property name#
property value#
class Frame#

Bases: pybind11_object

__getitem__(self: parselmouth.CC.Frame, i: int) float#
__init__(*args, **kwargs)#
__len__(self: parselmouth.CC.Frame) int#
__new__(**kwargs)#
__setitem__(self: parselmouth.CC.Frame, i: int, value: float) None#
to_array(self: parselmouth.CC.Frame) numpy.ndarray[numpy.float64]#
property c#
property c0#
__copy__(self: parselmouth.Data) parselmouth.Data#
__deepcopy__(self: parselmouth.Data, memo: dict) parselmouth.Data#
__eq__(self: parselmouth.Data, other: parselmouth.Data) bool#
__getitem__(self: parselmouth.CC, i: int) parselmouth.CC.Frame#
__getitem__(self: parselmouth.CC, ij: Tuple[int, int]) float
__init__(*args, **kwargs)#
__iter__(self: parselmouth.CC) Iterator#
__len__(self: parselmouth.Sampled) int#
__ne__(self: parselmouth.Data, other: parselmouth.Data) bool#
__new__(**kwargs)#
__setitem__(self: parselmouth.CC, ij: Tuple[int, int], value: float) None#
__str__(self: parselmouth.Thing) str#
convolve(self: parselmouth.MFCC, other: parselmouth.MFCC, scaling: parselmouth.AmplitudeScaling = <AmplitudeScaling.PEAK_0_99: 4>, signal_outside_time_domain: parselmouth.SignalOutsideTimeDomain = <SignalOutsideTimeDomain.ZERO: 1>) parselmouth.Sound#
copy(self: parselmouth.Data) parselmouth.Data#
cross_correlate(self: parselmouth.MFCC, other: parselmouth.MFCC, scaling: parselmouth.AmplitudeScaling = <AmplitudeScaling.PEAK_0_99: 4>, signal_outside_time_domain: parselmouth.SignalOutsideTimeDomain = <SignalOutsideTimeDomain.ZERO: 1>) parselmouth.Sound#
extract_features(self: parselmouth.MFCC, window_length: Positive[float] = 0.025, include_energy: bool = False) parselmouth.Matrix#
frame_number_to_time(self: parselmouth.Sampled, frame_number: Positive[int]) float#
get_c0_value_in_frame(self: parselmouth.CC, frame_number: Positive[int]) float#
get_end_time(self: parselmouth.Function) float#
get_frame(self: parselmouth.CC, frame_number: Positive[int]) parselmouth.CC.Frame#
get_frame_number_from_time(self: parselmouth.Sampled, time: float) float#
get_number_of_coefficients(self: parselmouth.CC, frame_number: Positive[int]) int#
get_number_of_frames(self: parselmouth.Sampled) int#
get_start_time(self: parselmouth.Function) float#
get_time_from_frame_number(self: parselmouth.Sampled, frame_number: Positive[int]) float#
get_time_step(self: parselmouth.Sampled) float#
get_total_duration(self: parselmouth.Function) float#
get_value_in_frame(self: parselmouth.CC, frame_number: Positive[int], index: Positive[int]) float#
info(self: parselmouth.Thing) str#
static read(file_path: str) parselmouth.Data#

Read a file into a parselmouth.Data object.

Parameters:

file_path (str) – The path of the file on disk to read.

Returns:

The Praat Data object that was read.

Return type:

parselmouth.Data

save(self: parselmouth.Data, file_path: str, format: parselmouth.Data.FileFormat = <FileFormat.TEXT: 0>) None#
save_as_binary_file(self: parselmouth.Data, file_path: str) None#
save_as_short_text_file(self: parselmouth.Data, file_path: str) None#
save_as_text_file(self: parselmouth.Data, file_path: str) None#
scale_times_by(self: parselmouth.Function, scale: Positive[float]) None#
scale_times_to(self: parselmouth.Function, new_start_time: float, new_end_time: float) None#
scale_x_by(self: parselmouth.Function, scale: Positive[float]) None#
scale_x_to(self: parselmouth.Function, new_xmin: float, new_xmax: float) None#
shift_times_by(self: parselmouth.Function, seconds: float) None#
shift_times_to(self: parselmouth.Function, time: float, new_time: float) None#
shift_times_to(self: parselmouth.Function, time: str, new_time: float) None
shift_x_by(self: parselmouth.Function, shift: float) None#
shift_x_to(self: parselmouth.Function, x: float, new_x: float) None#
t_bins(self: parselmouth.Sampled) numpy.ndarray[numpy.float64]#
t_grid(self: parselmouth.Sampled) numpy.ndarray[numpy.float64]#
time_to_frame_number(self: parselmouth.Sampled, time: float) float#
to_array(self: parselmouth.CC) numpy.ndarray[numpy.float64]#
to_matrix(self: parselmouth.CC) parselmouth.Matrix#
to_matrix_features(self: parselmouth.MFCC, window_length: Positive[float] = 0.025, include_energy: bool = False) parselmouth.Matrix#
to_sound(self: parselmouth.MFCC) parselmouth.Sound#
ts(self: parselmouth.Sampled) numpy.ndarray[numpy.float64]#
x_bins(self: parselmouth.Sampled) numpy.ndarray[numpy.float64]#
x_grid(self: parselmouth.Sampled) numpy.ndarray[numpy.float64]#
xs(self: parselmouth.Sampled) numpy.ndarray[numpy.float64]#
__hash__ = None#
property centre_time#
property class_name#
property dt#
property duration#
property dx#
property end_time#
property fmax#
property fmin#
property full_name#
property max_n_coefficients#
property n_frames#
property name#
property nt#
property nx#
property start_time#
property t1#
property time_range#
property time_step#
property tmax#
property tmin#
property total_duration#
property trange#
property x1#
property xmax#
property xmin#
property xrange#