Scim

Scim is Speech recognition tool-box written by Nim.

import timeit proc hello*(): string = "Hello, Scim!" when isMainModule: timeOnce("Nim"): echo hello()

Windows functions

Rect window

w(n)={1,0nN10,n=otherw(n) = \left\{ \begin{array}{ll} 1, & 0\leq n \leq N -1 \\ 0, & n= other \end{array} \right.

echo rect[float](12)

Hanning window

w(n)={0.5(1cos(2πnN1)),0nN10,n=otherw(n) = \left\{ \begin{array}{ll} 0.5(1-cos(\frac{2\pi n}{N-1})), & 0\leq n \leq N -1 \\ 0, & n= other \end{array} \right.

echo hanning[float](12)

Hamming window

w(n)={0.540.46cos(2πnN1),0nN10,n=otherw(n) = \left\{ \begin{array}{ll} 0.54-0.46cos(\frac{2\pi n}{N-1}), & 0\leq n \leq N -1 \\ 0, & n= other \end{array} \right.

echo hamming[float](12)