Problem With Voice Recognition
1 次查看(过去 30 天)
显示 更早的评论
I have found a code in voice recognition. http://crunchmodo.com/digital-signal-processing-voice-recognition-in-matlab-source-code/
When I put it in Matlab it does not work it give error Error: File: Voice Recognition.m Line: 1 Column: 1 The input character is not valid in MATLAB statements or expressions. and other errors when you delete the error line.
The Matlab program Iam using is r2013b
What I should do?
0 个评论
回答(5 个)
Suneesh
2013-12-18
The first error is on: ‘Get ready to record your name’
This is a line of text in the provided code which is not MATLAB syntax. I suggest commented it out:
The rest of the errors seem to be caused due to the usage of apostrophes instead of single quotes:
for i = 1:1
file = sprintf(‘%s%d.wav’,'rec’,i);
input(‘Press enter when ready to record your name’);
You may fix these issues by simple replacing all the apostrophes (`) with single quotes (')
0 个评论
Walter Roberson
2013-12-18
For the moment replace
path='rec1.wav';
with
path='';
Eventually, have a look at fullfile()
0 个评论
Dinesh Agarwal
2014-3-30
You can just change the name of .m file. Replace Voice Recognition.m with voice_recognition.m then this will not show any error and program may work properly.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Speech Recognition 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!