frame
Functions
-
int main(int argc, char *argv[])
frame [ option ] [ infile ]
-l int
frame length \((1 \le L)\)
-p int
frame period \((1 \le P)\)
-n int
framing type
0
the beginning of data is the center of the first frame1
the beginning of data is the start of the first frame
-z
perform mean subtraction in a frame
infile str
double-type data sequence
stdout
double-type framed data sequence
If the input is
\[ \begin{array}{c} \{x(t)\}_{t=0}^{T-1} \end{array} \]and the frame length \(L\) is even, the output is\[ \begin{array}{cccc} \{x(t)\}_{t=-L/2}^{t=L/2-1}, & \{x(t)\}_{t=P-L/2}^{t=P+L/2-1}, & \{x(t)\}_{t=2P-L/2}^{t=2P+L/2-1}, & \ldots \end{array} \]where \(P\) is frame period and \(\forall t < 0, t \ge T \; x(t)=0\). If-n 1
is specified, the output is\[ \begin{array}{cccc} \{x(t)\}_{t=0}^{t=L-1}, & \{x(t)\}_{t=P}^{t=P+L-1}, & \{x(t)\}_{t=2P}^{t=2P+L-1}, & \ldots \end{array} \]The below example extracts LPC coefficients with 25-ms length window and 5-ms shift.
frame -l 400 -p 80 < data.d | window -l 400 | lpc -l 400 > data.lpc
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.
See also