Below, I pasted the code I am trying to use in order to get LiveCode to record while the revSpeak
command is speaking the words aloud from a text field, but I cannot get any recordings to appear on the desktop or anywhere.
I know that there have been some longstanding audio recording issues with Windows in the past. Does anyone know if those issues are still there or if there is anything wrong with the script I am using? Is there possibly something wrong with the way I am using specialFolderPath
?
As you can see, I even activated QuickTime in the suggested way but that still doesn't seem to help.
If the record sound
function is just not possible yet in LiveCode 7, what would be the alternative to being able to record what is being said aloud when revSpeak is speaking whatever text is in a field?
on mouseUp
put the qtVersion into tVersion -- Here, I am activating QT
ask "Name This Sound Recording"
put it into tRecordName
###set the recordInput to "imic" -- internal microphone
###set the recordInput to "dflt" -- default
###set the recordInput to "emic" -- external microphone
set the recordCompression to "raw" -- default
set the recordRate to 44.1 -- CD quality, default = 22.05
set the recordChannels to 1 -- mono, 2 = stereo
set the recordFormat to "wave"
set the recordSampleSize to 16 -- 8 = default
put the platform into tPlatform
if tPlatform is "win32" then
set the recordFormat to "wave"
put ".wav" after tRecordName
else
set the recordFormat to "aiff"
put ".aif" after tRecordName
end if
record sound file (specialFolderPath("desktop") & slash & tRecordName)
wait 6 ticks
revSpeak word 1 to -1 of field "talkingField"
end mouseUp
Any suggestions on how to make this happen or what would be a good alternative to recording the text being spoken will definitely be very appreciated.