signal with 8-bit

2 visualizzazioni (ultimi 30 giorni)
sara s
sara s il 12 Dic 2011
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 Commenti
sara s
sara s il 12 Dic 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 il 12 Dic 2011
@sara, was that an answer to my questions? How do you have the speech signal saved?

Accedi per commentare.

Risposta accettata

Jan
Jan il 12 Dic 2011
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 Commenti
Jan
Jan il 12 Dic 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 il 12 Dic 2011
You are a good person and very kind
I appreciate your help so so much
Thanks so much

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by