frame

Functions

int main(int argc, char *argv[])

frame [ option ] [ infile ]

  • -l int

    • frame length (1L)

  • -p int

    • frame period (1P)

  • -n int

    • framing type

      • 0 the beginning of data is the center of the first frame

      • 1 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

{x(t)}t=0T1
and the frame length L is even, the output is
{x(t)}t=L/2t=L/21,{x(t)}t=PL/2t=P+L/21,{x(t)}t=2PL/2t=2P+L/21,
where P is frame period and t<0,tTx(t)=0. If -n 1 is specified, the output is
{x(t)}t=0t=L1,{x(t)}t=Pt=P+L1,{x(t)}t=2Pt=2P+L1,

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

window