AppleScript Quicktime Player to play audio file generates error
A pure guess would be that you are passing it a text/string reference rather than a file ref.

try set audioFile to POSIX file "/Path/to/the/audio.mp3"