Reputation: 171
how to install winsound library on Google Colab? I use python 3 and I tried:
!pip install winsound
!pip3 install inwound
but neither worked, saying
Could not find a version that satisfies the requirement winsound (from versions: ) No matching distribution found for winsound
Upvotes: 0
Views: 2868
Reputation: 53
This code works for me hands down on Colab.
from IPython.display import Audio
sound_file = 'https://www.soundjay.com/button/beep-01a.mp3'
Audio(sound_file, autoplay=True)
Upvotes: 2
Reputation: 1873
Winsound is a Windows library, but Google Colaboratory runs off Linux:
!uname -a
Linux ea6a927e21de 4.14.33+ #1 SMP Wed Jun 20 01:15:52 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux
Thus it is not possible to use Winsound in Google Colaboratory.
Upvotes: 1