how can I write a program in matlab to say /a/?

3 commentaires

Jan
Jan le 18 Juin 2012
What exactly does "say" mean here? Do you want a voice from the speakers saying "slash a slash"?
Walter Roberson
Walter Roberson le 18 Juin 2012
Long "a" or short "a" or Boston "a" or Ottawa Valley "eh" ?
Farideh Jalali
Farideh Jalali le 18 Juin 2012
Jan:I need too write a program that can hear /a/ from speakers.
Walter:Long /a/

Connectez-vous pour commenter.

 Réponse acceptée

Wayne King
Wayne King le 18 Juin 2012

4 votes

On a PC
textIn = 'ah';
ha = actxserver('SAPI.SpVoice');
invoke(ha,'speak',textIn);

2 commentaires

Sean de Wolski
Sean de Wolski le 18 Juin 2012
Sweet!
Farideh Jalali
Farideh Jalali le 18 Juin 2012
Very helpful,
Thanks Wayne,

Connectez-vous pour commenter.

Plus de réponses (1)

the cyclist
the cyclist le 18 Juin 2012

4 votes

If you are on a Mac, you can take advantage of the command line "say" command, via the MATLAB system() function:
>> system('say anything')
>> system('say a')
If you are on a PC, you might be able to use one of the solutions mentioned in this old blog post:

2 commentaires

william
william le 2 Avr 2014
hi, I was wondering if there is any way of modifying the default voice from MATLAB? system('say "你好"') for reading Chinese, doesn't work out
or by default, can be reader from a variable? something like chinese={"你好"}
system('say , chinese')
Thank you in advance
the cyclist
the cyclist le 2 Avr 2014
I would ask a new question, rather than burying it as a comment in a two-year-old question that almost no one will see.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by