TransWikia.com

How to export Speak to wav or mp3 file?

Mathematica Asked on August 17, 2021

How to export Speak["valentine"] to wav or mp3 file?

One Answer

Speak does not generate an output object (it returns Null). It only has the side effect of producing the synthesized sounds, so it is not straightforward to export the generated audio directly.

On the other hand, SpeechSynthesize returns an Audio object, which here appears to behave essentially as a wrapper for a .WAV file automatically generated somewhere on your computer.

As Carl Lange mentioned in his comment, this object can be exported directly using Export:

Export["valentine.wav", SpeechSynthesize["valentine"]

Answered by MarcoB on August 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP