# Output or analyse the result of Speak function?

GROUPS:
 "Speak" is a function that can "speak" the string variable in English. For example, Speak["thank you"] will make the computer speak "thank you", but I can't use this sound to do other things: Audio or Sound function cannot record the result of Speak function. There will be mistake if we run Audio[Speak["thank you"]] or Sound[Speak["thank you"]] , so I can't output the "thank you" sound or analyse the waveform or spectrum of it. How to deal with it？
10 months ago
4 Replies
 Speak uses the OS speak function, so the waveform is not available for computations, unless of course you record it with a microphone and import the recording.
 On MacOSX you can do a RunProcess call to e.g.: say -v "Cellos" "Lalalalalala" -o filename.aiff Then import that file using Import.