Retrieving track after next track.

You have a question or need an advice about how to do something? Ask it here!
Post Reply
John2103
Posts: 20
Joined: 11 Nov 2019 16:32
Retrieving track after next track.

Post by John2103 »

I have built an application that allows songs to be requested using a form on a website. ChatGPT then generates a text that is converted into an MP3 by text to speech. This MP3 and the requested song will then be placed in the playlist using the ProppFrexx API.

I want to remove any jingles before the MP3 “voice track”. I can request the next track in ProppFrexx, but I haven't found a way to retrieve the track after the next track. In other words if the next track is a jingle and the track after that is the MP3 with the AI-generated text, then the jingle must be removed. The MP3 generated with AI is recognizable by its naming.

Is this possible?
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Retrieving track after next track.

Post by radio42 »

How do you retrieve the next track?

E.g. you might use the PLS_CURRENT_TRACKNEXT_GET to get the index of the next track add one to it and use PLS_CURRENT_GET_ENTRY with that calculated index value...
John2103
Posts: 20
Joined: 11 Nov 2019 16:32
Re: Retrieving track after next track.

Post by John2103 »

Thanks Bernd, that's what I was looking for.
gerritk
Posts: 34
Joined: 06 Feb 2018 10:21
Re: Retrieving track after next track.

Post by gerritk »

Dear John,

where can we see/hear this in action?

Thx.

Gerrit Kramer
John2103
Posts: 20
Joined: 11 Nov 2019 16:32
Re: Retrieving track after next track.

Post by John2103 »

Hi Gerrit,

It's under development, but you can see it in action every evening between 8 p.m. and 11 p.m. at https://centraalhits.eu. Complete the request form and your request will be played after a few songs.

John

Post Reply