Re: newbie, arecord

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 28 Jun 2010, javi perez wrote:

> I am trying to do a speech recognition system. In the aplay file I would
> like to conver the unsigned char buffer
> to a float buffer to be able to make comparisons the way I would like. The
> floats that I am getting after the conversion are these.
> How should I do the conversion from unsigned char to float array? thanks in
> advance.

Study more C language. Hint: Forget memcpy and use the standard for loop 
to copy unsigned char samples to float array.

 						Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux