Skip to content

How to clean already played audio files ? #2601

Answered by smimram
jooola asked this question in Q&A
Discussion options

You must be logged in to vote

If I understand correctly, you want to remove files which have already been played? In this case, the best is to pass temporary=true when creating the request: the file will then be removed once the request has been played. Something like

q = request.queue()
...
r = request.create(temporary=true, "/tmp/filename.mp3")
q = push(r)

Otherwise, please be more specific about what you have in mind.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jooola
Comment options

@smimram
Comment options

Answer selected by jooola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants