signal with 8-bit
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Daniel Shub
le 12 Déc 2011
@sara, was that an answer to my questions? How do you have the speech signal saved?
Réponse acceptée
Jan
le 12 Déc 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 commentaires
Jan
le 12 Déc 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
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!