File Exchange

image thumbnail

Make MATLAB Talk

version (2.72 KB) by Sam Roberts
Make MATLAB Talk

1 Download

Updated 01 Sep 2016

View Version History

View License

By interfacing with Windows over ActiveX, and taking advantage of its speech capabilities, you can produce speech from within MATLAB.

Cite As

Sam Roberts (2021). Make MATLAB Talk (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Chang Duan

The error may due to different Voices available in Your Windows system. You can check at
For me, its Microsoft Sam. So change this line in say.m will be fine.
voicestr = 'Name=Microsoft Sam';

Uri Maoz

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.

Matthew Teow

Well done :)

Mark Brown

How is this any different than the file (speak.m) posted here in 2004? Both use the ActiveX interface to MS Excel.

Elior Shenhav


Dimitri Shvorob

:))) Neat!

Tom Cunningham

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!

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!