File Exchange

image thumbnail

Text2Speech for Matlab using unofficial google service

version 1.0.0.0 (4.85 KB) by Sven Koerner
Function to make Matlab speak via unofficial Google text2speach.

6 Downloads

Updated 04 Nov 2011

View License

This is a command line demo on how to use the ActiveX VideoLAN.VLCPlugin.2 in combination with the unofficial google text to speech (TTS) engine to generate speech from text.
You need to install the VLC-Media-Player and have a internetconnection to call the google service.

The input parameters are:
- the string you want to convert: str
- then string of language code for the str: lang {'en','de','es', 'fr'}
- and the time in seconds until programm resumes: t_play
if the time is to short, you'll maybe not hear everything

Function call:
text2speech --> says 'Hello World' in english
text2speech('Guten Morgen!','de') --> says good morning in german
text2speech('Je t'aime.','fr') --> says I love you in french

Bugs and suggestions:
Please send to Sven Koerner: koerner(underline)sven(add)gmx.de

You need to download and install first:
The VLC Media Player: http://www.videolan.org/vlc/

Cite As

Sven Koerner (2019). Text2Speech for Matlab using unofficial google service (https://www.mathworks.com/matlabcentral/fileexchange/33614-text2speech-for-matlab-using-unofficial-google-service), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

dalya anewr

Error using feval
Input PROGID does not represent an Activex control.
If this PROGID used to work before, please check vendor's documentation for equivalent activex control progid.

Error in actxcontrol

Error in actxcontrol

Error in text2speech (line 55)
vlc1 = actxcontrol('VideoLAN.VLCPlugin.2', [1 1 0 0], fig);

I need the same program but speech to text for matlab with google. Please help me.
diegogufy0190@hotmail.com

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

Inspired: Number to Myriad, Number to Words