signal with 8-bit

Hello everybody
I want to know ,how can I add speech signal with 8KHZ and 8-bit by matlab.
Thanks in advance
Kind regards to all

9 comentarios

Jan
Jan el 12 de Dic. de 2011
What exactly means "add"? Do you want to mix two signals or do you want append one signal to the other?
sara s
sara s el 12 de Dic. de 2011
I want to append or apply speech signal with these value (8 KHZ and 8-bit)
and I know how to do the speech signal but my question how can I apply two these values to my speech signal.
Jan
Jan el 12 de Dic. de 2011
"Append" means, that you concatenate two signals. What does "do the speech signal" mean exactly? And what operation do you want to apply to which data?
Please explain the available inputs, most of all the type and the dimensions, and the wanted output, again with type and size. Does it matter if the data are a speech signal, e.g. do you need to apply a filter?
sara s
sara s el 12 de Dic. de 2011
Please, see this link related to my second part of my question
sara s
sara s el 12 de Dic. de 2011
http://mathworks.com/matlabcentral/answers/23567-pre-emphasis-filter
sara s
sara s el 12 de Dic. de 2011
but here is my program and I did it without any information about 8-bit for the speech signal because I don't know how can I apply it to speech signal!
Daniel Shub
Daniel Shub el 12 de Dic. de 2011
Have you already recorded your speech signal and have it saved as a file? Do you need to record it?
sara s
sara s el 12 de Dic. de 2011
yes, I did all that but my problem that I did all my program without put any instruction related to 8-bit and I want to know how can I represent 8 bit with speech signal
Thanks a lot
Daniel Shub
Daniel Shub el 12 de Dic. de 2011
@sara, was that an answer to my questions? How do you have the speech signal saved?

Iniciar sesión para comentar.

 Respuesta aceptada

Jan
Jan el 12 de Dic. de 2011

0 votos

The question is not clear to me.
You can record a sound signal using ausiorecorder(Fs, NBITS, NCHANS). There you can define the frequency Fs as 8kHz (not "KHz", the lowercase "k" and "z" is important) and NBITS to 8.
If you have recorded your signal as a WAV file with a higher frequency and resolution, explain this in detail.
It is a good idea to perform all the processing in high resolution (DOUBLES!) and convert it to 8 bit afterwards:
x = rand(1, 1000) * 2 - 1; % A random sound with DOUBLE resolution
minx = min(x);
rangex = max(x) - minx;
x8 = uint8(255 * (x - minx) / rangex);
Remember, that your professor is payed for teaching. It would be very efficient and direct, to ask him.

3 comentarios

sara s
sara s el 12 de Dic. de 2011
I asked my prof several times, but he told me that he don't allow to any student to ask him for any questions, so for this reason I asked here in this website
Thanks a lot for you help
with my all respect
Jan
Jan el 12 de Dic. de 2011
@Sara s: Well, all kind of Matlab related questions are welcome in this forum. It would be easier to help you, if you add more details to the question. "Instruction related to 8 bit" is not accurate enough to be sure, what you want. Maybe, and I'm only guessing, your profressor had a similar problem: If the question is fuzzy, a meaningful answer is impossible. In my opinion, it is a fundamental part of studying to learn, how to ask compact and complete questions. A professor, who doesn't allow any student to ask any question will not be helpful. Then please excuse me: Your professor is payed for writing on the blackboard only and you are welcome to get some scientific education in this forum for free.
See: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers
http://www.mathworks.com/matlabcentral/answers/728-how-do-i-write-a-good-question-for-matlab-answers
sara s
sara s el 12 de Dic. de 2011
You are a good person and very kind
I appreciate your help so so much
Thanks so much

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 12 de Dic. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by