3 ms·
FEEDBACK Cool. Conclusion is that I need to get better at writing queries: I wanted an overview of Python APIs to choose from to play sound files, and importa
by ncr100 4y ago
FEEDBACK
Cool. Conclusion is that I need to get better at writing queries:
I wanted an overview of Python APIs to choose from to play sound files, and importantly, I wanted to know how / if each API offered a non-blocking parameter. In my use-case I am playing sounds, after detecting some elements during video processing, and I find it blocks my realtime video stream UI.
My experience refining my query - I started with one query, and settled on an increased redundancy of my query:
[NOTE: I typo'd asynchronously as "asynchonously", unintentionally]
FIRST = how do i asynchonously play sounds in python (https://phind.com/search?q=how+do+i+asynchonously+play+sounds+in+python https://phind.com/search?q=how+do+i+asynchonously+play+sound...)
Result from PHIND for FIRST was promising enough for me to refine my query. I felt like the beginning portion of the answer it provided was useful. And I felt like the subsequent portion was not. It listed various Python API for playing sounds. And only for the first did it supply concurrency details.
SECOND TRY = how do i asynchonously play sounds in python, and what are the parameters for synchronous or blocking playback (https://phind.com/search?q=how+do+i+asynchonously+play+sounds+in+python%2C+and+what+are+the+parameters+for+synchronous+or+blocking+playback https://phind.com/search?q=how+do+i+asynchonously+play+sound...)
Result for the SECOND was more loquacious, however it supplied more detail, and satisfyingly more concurrency configuration instructions for e.g. the "playsound" Python API.
So overall, kudos! And, I will use this product in the future.
- rushingcreek 4y agoThanks for the feedback! We just shipped an update a few minutes ago that should give more useful examples all while splitting up long chunks of text into more readable paragraphs.
- ncr100 4y agoSure thing. Yes I do see improved para-formatting. Best luck iterating!