You are not logged in.

#1 2024-06-26 14:55

wfj
Member
Registered: 2024-06-26
Posts: 2

Playsound Installation

q4os is installed and working on an old Acer netbook.  The Python3 script file runs fine but I need to add a simple audio alert.  Playsound was my first choice but pip install playsound tells me the package can't be found.  I have spent hours looking into this matter without success, hope someone here can help. Thanks.

Offline

#2 2024-06-26 20:07

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 476

Re: Playsound Installation

I was able to pip install playsound and also pip download playsound. I'm using python 3.9.
playsound is no more maintained. You could use playsound3.
Not sure, but I suspect playsound needs python <= 3.9, although playsound3 works up to python 3.7 -> 3.12.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#3 2024-06-26 20:16

wfj
Member
Registered: 2024-06-26
Posts: 2

Re: Playsound Installation

I am using Python 3.11 and will see if playsound3 works.  Can you recommend a better replacement package for either generating a tone based warning or mp3/wav playback?

Offline

#4 2024-06-26 22:03

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 476

Re: Playsound Installation

Starting with python 3.11 (coming with Q4OS 5), pip install package will work only within a venv (for packages integrity reasons).
Sorry, no idea for another package. You are more likely to get an answer on a forum dedicated to python.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

Board footer

Powered by FluxBB