Can Rev turn text to speech and record it?
niggemann at uni-wh.de
Fri Apr 10 10:45:26 CDT 2009
well I looked the say part up in the mac scripter forum
There is a wealth of information and code on that forum.
´say´ is part of the scripting additions.
And yes, Applescript is at times 'underdocumented', as is the Quicktime
player Pro, I do a lot of basic stuff in the Quicktime Player, but it is up
to the user to find out how.
Once Richard gets this going he can choose a voice he likes with the say
command and let that voice speak the text. Since 10.5 there is a high
quality voice 'Alex' which sounds pretty naturally, I think it is the
default voice for 10.5
Kay C Lan wrote:
> On Fri, Apr 10, 2009 at 11:02 PM, BNig <niggemann at uni-wh.de> wrote:
>> set myDesktop to (path to desktop) as text
>> set myfilePath to myDesktop & "myRecording.aif"
>> set myText to "What to say, this is a recorded message and nothing more"
>> say myText saving to file myfilePath
>> set myExportPath to myDesktop & "myRecording.wav"
>> set myPrefPath to myDesktop & "QTExportSettingWAV"
>> tell application "QuickTime Player"
>> open file myfilePath
>> export document 1 as wave replacing yes to file myExportPath using
>> file myPrefPath
>> end tell
> Brilliant! You'd never figure that out reading an AppleScript manual; you
> gotta love this List.
View this message in context: http://www.nabble.com/bad-interaction-between-%22random%22-and-%22word%22--tp22901630p22990010.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode