How to add audio in my python code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to add audio in my python code?

I want to add audio in my python code.

30th May 2021, 5:25 AM
MOHAMMAD IRSHAD ALI
MOHAMMAD IRSHAD ALI - avatar
9 Answers
+ 1
You could use Python via web. There are some examples on sololearn how to do that (I don't have a particular one) The problem with using audio in Python directly on Python playground would probably be the strict time-out...
10th Sep 2021, 11:19 AM
Lisa
Lisa - avatar
+ 1
That's what I wrote? :) Sorry, if it was unclear: I tried to explain why I think it doesn't work on *sololearn* *python* playground
10th Sep 2021, 3:34 PM
Lisa
Lisa - avatar
0
bell I think so no. Sl doesn't support microphone 🎙️ facility
10th Sep 2021, 11:10 AM
Atul [Inactive]
0
bell I mean using audio in runtime on the spot. Else you can store it in mp3 or Dropbox or anything else to use it
10th Sep 2021, 11:39 AM
Atul [Inactive]
0
I have some doubts that we can make audio work directly on python playground: * runtime of python scripts is very limited * we cannot "pause"/ "delay" execution (e.g. sleep()) * we cannot create gui – I wouldn't be surprised if audio is denied either A work-around could be to create a web code and include a different python interpreter ("brython"?) that allows for audio.
10th Sep 2021, 2:46 PM
Lisa
Lisa - avatar
0
Lisa I don't know about all But some of them can be possible. You can try it in vs code about sleep () in python. Try PyCharm it'll gonna show you the results. But not in sl
10th Sep 2021, 3:29 PM
Atul [Inactive]
0
No Lisa I understood what you spoke. But try to tag the people to whom you are speaking because sometimes it creates confusion
10th Sep 2021, 5:07 PM
Atul [Inactive]
0
Atul [Inactive] my comment on python audio was on the thread's question. It doesn't address a particular user
10th Sep 2021, 5:10 PM
Lisa
Lisa - avatar