
# import locator # for determining the location of the user based on IP address Here's the code that I use: import boto3 # used to 'pythonize' Amazon Polly TTSįrom playsound import playsound as play # for playing sound files Make sure the path and filename are correct. Open "output1.mp3" alias playsound_0.8842337577803419Ĭannot find the specified file. Raise PlaysoundException(exceptionMessage) WinCommand('open "' + sound + '" alias', alias)įile "C:\Program Files (x86)\Python36-32\lib\site-packages\playsound.py", line 31, in winCommand Here's the latest error I got: Traceback (most recent call last):įile "C:\Program Files (x86)\Python36-32\lib\site-packages\playsound.py", line 35, in _playsoundWin Another thing is that when it wasn't printing out the error, it would continue to play just this one sound file, whether or not it said the correct thing. One of my troubleshooting steps was to remove the file 'output1.mp3' and check if it will work that way, but it didn't. If the sound card is linked to the motherboard (i.e., onboard sound card), installing a new sound card and disabling the built-in sound card.The program was working fine a few days ago, and it just stopped today.

(Removing the sound card and installing it). Remove the sound card then install it again on the computer. Audacity may be unable to detect the sound card on your computer, or it may not be functioning correctly.Verify the Channels under the Devices section, which is set to 1 or 2.


Select Edit > Preferences from the audacity menu at the top.

Recording more channels besides the ones configured by a particular sound card will cause an error in Audacity. Several sound cards support 1 or 2 audio channels.If you encounter a different sample, try changing to 44100 or 48000 and find out if it works for recording. These two sample rates are the most commonly used and also supported by several sound cards. Check the sample rate in Audacity, which will display at the bottom left of the Audacity program window(Project Rate (Hz) 44100 Hz and 48000 Hz).
