Below, I pasted the code I am trying to use 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. Honestly, I really don't care where it records something to. It would just be nice if there was a sound recording left somewhere afterwards.
I am using LiveCode version 7.0.6 with Windows 10.
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 use specialFolderPath?
As you can see, I even activated Quick Time 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 when revSpeak is speaking whatever text is in a field?
Code: Select all
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 "emic" -- external microphone
###set the recordInput to "dflt" -- default
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
I have wasted days on trying to get this to work and seem to have exhausted all the literature on this topic, all to no avail. Any suggestions on how to make this happen or what would be a good alternative will definitely be very appreciated.
All the best,
deeverd