Text to speech and create wav file
Bill Vlahos
bvlahos at mac.com
Fri Jun 26 20:01:55 EDT 2015
Thank you Mark.
Bill
> On Jun 26, 2015, at 9:17 AM, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:
>
> Here's an example, which uses the speak comman from eSpeak:
>
> on mouseUp
> put fld 1 into myText
> put "/usr/local/bin/speak -ven+f3" && quote & myText & quote && "-w ~/desktop/text.wav" into myScript
> get shell(myScript)
> end mouseUp
>
> 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.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> 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
>> Economy-x-Talk
>> Http://economy-x-talk.com
>>
>> 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:
>>
>>> Tom,
>>>
>>> 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
>>>> file.
>>>>
>>>> On the Mac side, looks like many people have used Applescript to save audio
>>>> files from texttospeech.
>>>> (https://discussions.apple.com/thread/2290534?tstart=0)
>>>>
>>>> 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:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list