repeat
set speakDialog to display dialog "Speak Text:" buttons {"Save", "Cancel", "Speak"} default button 3 default answer ""
set choice to button returned of speakDialog
set spoken to text returned of speakDialog
if choice is equal to "Speak" then
say spoken
end if
if choice is equal to "Save" then
set nameDialog to display dialog "Name File (with extension)" buttons {"Cancel", "Save"} default button 2 default answer "text.aiff"
set nameChoice to button returned of nameDialog
set chosenName to text returned of nameDialog
set spoken to text returned of speakDialog
if nameChoice is equal to "Save" then
say spoken saving to POSIX file "/Users/Squiddy22/Desktop/" & chosenName & ""
end if
end if
end repeat