By interfacing with Windows over ActiveX, and taking advantage of its speech capabilities, you can produce speech from within MATLAB.
Sam Roberts (2021). Make MATLAB Talk (https://www.mathworks.com/matlabcentral/fileexchange/15890-make-matlab-talk), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
The error may due to different Voices available in Your Windows system. You can check at
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Speech\Voices\Tokens
For me, its Microsoft Sam. So change this line in say.m will be fine.
else
voicestr = 'Name=Microsoft Sam';
end
Came back with the error:
Error: Object returned error code: 0x800A03EC
Error in ==> say at 7
cell.Speak; % Amazing!
This is even though I have Excel installed.
Well done :)
How is this any different than the file (speak.m) posted here in 2004? Both use the ActiveX interface to MS Excel.
Wow
:))) Neat!
I'm tied up right now, but if this works, I'm gonna have a riot with an inter-office application I'm writing for vibration data post processing! My errordlg messages already insult you for making mistakes!
Thanks in advance!