Here is an example of one way to achieve your goal:
In Script Editor, I used the following three lines of code and saved it as an application, as Hello World.app:
set resourceName to "Hello World.aiff"
set filePathName to quoted form of POSIX path of (path to resource resourceName) as text
do shell script "afplay " & filePathName
Then inside the application bundle in the
Resources folder, I placed the audio file Hello World.aiff, which is a file of someone saying "hello world".
Here is a tree view of the hierarchal structure of the application bundle:
│ └── applet
├── Hello World.aiff
│ └── main.scpt
Now when I double-click on the Hello World.app is plays the Hello World.aiff audio file.
After you create the application bundle, then in Finder you right-click on it selecting Show Package Contents and then navigate to the Resources folder where you'll place your audio file.
Change the name of the
"Hello World.aiff", to whatever your audio file name is, in the example code so it will work for your filename.