Text to speech and create wav file
m.schonewille at economy-x-talk.com
Fri Jun 26 12:17:23 EDT 2015
Here's an example, which uses the speak comman from eSpeak:
put fld 1 into myText
put "/usr/local/bin/speak -ven+f3" && quote & myText & quote && "-w ~/desktop/text.wav" into myScript
You may want to remove quotes from the source text. I had to use the full path to the cli, but if you install it properly, this shouldn't be necessary.
You can also use Mac OS X's say command:
say -o ~/desktop/text2.wave --file-format=m4af 'hello world'
The possible formats are m4af, caff, AIFF and WAVE. For me, all these formats work, except for WAVE.
Economy-x-Talk Consulting and Software Engineering
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com
We have time for new software development projects. Contact me for a quote.
On 26 jun 2015, at 04:41, Mark Schonewille wrote:
> You can do this with a simple shell function. I'll look it up in a few hours if no one else posts it.
> Kind regards,
> Mark Schonewille
> Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com
> Op 26 jun. 2015 om 01:43 heeft Bill Vlahos <bvlahos at mac.com> het volgende geschreven:
>> I do want this on a Mac. This looks like a viable option using AppleScript.
>> Thank you,
>> Bill Vlahos
>>> On Jun 25, 2015, at 9:48 AM, tbodine <bodine at bodinetraininggames.com> wrote:
>>> Hi Bill.
>>> I don't know if that's doable within Livecode. If not, perhaps you can use
>>> an external source. A site such as http://www.fromtexttospeech.com/ may have
>>> an API where you can send the text and get back a url to download your wav
>>> On the Mac side, looks like many people have used Applescript to save audio
>>> files from texttospeech.
>>> In the near future, perhaps LC builder will provide the OS connectons so we
>>> can do this sort of thing within LC.
>>> -- Tom Bodine
>>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Text-to-speech-and-create-wav-file-tp4693301p4693303.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode