フィルターのクリア

Talking to the program

2 ビュー (過去 30 日間)
Rainaire Hansford
Rainaire Hansford 2018 年 1 月 24 日
回答済み: Image Analyst 2018 年 1 月 24 日
Is there anyway possible to speak into a MATLAB program? Basically if I plug in my Mic and say hello or whatever, The computer/program will read or accept it and respond back depending on the code?
Right now I have this kind of code
textIn = 'Hello. Password please';
ha = actxserver('SAPI.SpVoice');
invoke(ha,'speak',textIn);
password=input('Please enter password ','s');
if strcmpi(password,'H')
textIn = 'Welcome Hansford';
ha = actxserver('SAPI.SpVoice');
invoke(ha,'speak',textIn);
I would like to replace the Password part with me speaking instead of typing. Also how can I change the voice?

回答 (1 件)

Image Analyst
Image Analyst 2018 年 1 月 24 日

カテゴリ

Help Center および File ExchangeSpeech Recognition についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by