owerel209
Posts: 5
Joined: Mon May 25, 2020 9:53 am

Playing audio in loop with breaks.

Sat Jun 19, 2021 8:12 am

Hello,
i would like to write a script that would do:

-Play once audio file that is on some path: (for example /.../.../file.mp3)
-Have a break for example 10 minutes

in infinity loop.

I would like to also start this script after turn on my raspberry pi 3B.

I am using raspbian. Could you give me some advice or any links that will help me do that?

Thanks

pcmanbob
Posts: 11322
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Playing audio in loop with breaks.

Sat Jun 19, 2021 8:49 am

So which programming language are you using ?

what code have you got so far ?
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
B.Goode
Posts: 12237
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Playing audio in loop with breaks.

Sat Jun 19, 2021 8:54 am

owerel209 wrote:
Sat Jun 19, 2021 8:12 am

I would like to also start this script after turn on my raspberry pi 3B.



Obviously you need to solve the problem of creating a script to meet your needs first, but then refer to -
https://www.raspberrypi.org/documentati ... systemd.md


Or provide it with a trivial gui and use the method you discovered 12 months ago....

owerel209
Posts: 5
Joined: Mon May 25, 2020 9:53 am

Re: Playing audio in loop with breaks.

Sat Jun 19, 2021 1:54 pm

Didnt know i can start script same way as on rasp4. To be honest it was my first time i was working with this gui and never use this knowledge again. I remind myself that i was doing something like that before but didnt know i was asking on this forum lol. Ill try then. So i can make it using same app?

User avatar
B.Goode
Posts: 12237
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Playing audio in loop with breaks.

Sat Jun 19, 2021 2:04 pm

owerel209 wrote:
Sat Jun 19, 2021 1:54 pm
Didnt know i can start script same way as on rasp4. To be honest it was my first time i was working with this gui and never use this knowledge again. Ill try then. So i can make it using same app?

The recommended and supported RasPiOS Buster [32] Operating System runs on ALL models of RPi board.

It is the Operating System that effectively provides you with the tools to run scripts, independent of the hardware it is running on. So other than very obvious differences - like absent WiFi/Bluetooth hardware on some boards - the same tasks can be carried out on any model of board. The actual speed of response may differ of course.

Return to “General programming discussion”