You can install pip by doing
Sudo apt install python-pip
Or if your using python 3 its
Sudo apt install python3-pip
What do you mean its slow?
-----Original Message-----
From: raspberry-vi-bounce@xxxxxxxxxxxxx <raspberry-vi-bounce@xxxxxxxxxxxxx> On
Behalf Of Jean-Claude Provost
Sent: Wednesday, March 24, 2021 1:03 PM
To: raspberry-vi@xxxxxxxxxxxxx
Subject: [raspberry-vi] I need speed, I need something that works, maybe I need
another distro?
Hi all,
I just spent quite a few hours to get my Pi3B to deliver decent audio at a
reasonable speed & it seems I just can’t.
for now, I have abandoned the idea to get a decent behavior out of speakup
because I wanted to do something different for a while… So I use SSH.
I wanted to play 4 small audio files in sequence but I run into issues, with
all the methods I’ve tried so far.
1. I tried omxplayer, invoking it through subprocess.run in a Python
program. It works perfectly audiowise through my 3.5†jack but it’s
unnaturally slow, even after putting an ampersand at the end of the line to
make it run in the background. I guess invoking subprocess several times in a
row is a bit CPU-intensive. I also was never able to suspend the output from
omxplayer even after trying to pipe it to NULL.
2. Then I tried to use the Python playsound module. Unfortunately it
seems I can’t install this module on my Buster Raspbian version. Pip cannot
be found & it seems it’s not a package I can install with apt either
3. .I than tried with amixer & aplay but here again, snags & other
snags… when I go in raspi-config’s audio output selection, the 3.5†jack
choice is there but when I select it, raspi-config says there was an error
writing to the config file & it reverts back to HDMI. Even trying to play on
HDMI reveals a choppy useless output.
4. Following the Python tutorial from Sparkfun, I then tried to use
pygame’s mixer. But here again, I find that the pygame module is not
installed &, as I said before, I can’t install it because pip cannot be
installed for some reason
All those tests were done using Python 3.7.3, the default installed with the
Raspbian version I have running.
I learned several things in that quest of mine but got nowhere😊 Shall I
find another hobby like knitting or something😊
Any musings are welcome but please, give me something that will get me out of
my misery… I’m open to pretty much everything right now😊
Thanks,
Cheers,
Jean-Claude Provost
===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi
Foundation.
This list is not affiliated to the Raspberry Pi Foundation and the views and
attitudes expressed by the subscribers to this list do not reflect those of the
Foundation.
Mike Ray, list creator, January 2013
===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi
Foundation.
This list is not affiliated to the Raspberry Pi Foundation and the views and
attitudes expressed by the subscribers to this list do not reflect those of the
Foundation.
Mike Ray, list creator, January 2013