Action: Play

Is it possible to have an action where the user previously chooses the audio file to be played from their device so that later in another macro it plays that audio file that the user configured ??
 

FrameXX

Well-known member
Should be "Play/Stop Sound" action. You can choose your own audio file.

EDIT

If you just want choose from for example 5 same audio files, than it's no problem. You just let user choose for example number from 1 - 5. and then if number=1 then play audio file 1, if 2 play audio file 2 etc...

But if you want something more complex like user choosing some of audio files from device it will be a lot more difficult. I could imagine user filling some variable with file location and then sending intent with that file location to some music player.
Problem is that this file location is not that easy to write.
Maybe some plugin could help you to create this file location into intent "data" section.

I hope I got you right.
 
Last edited:

Pseudocyclic

Well-known member
Do you want to be able to select any audio file that may be available at the time? Or do you want to select from a limited number of audio files that are known in advance (ie known at the time the macros are created/configured)?
 
Do you want to be able to select any audio file that may be available at the time? Or do you want to select from a limited number of audio files that are known in advance (ie known at the time the macros are created/configured)?
I want the user to select any audio file available on the Device without the user entering the macro code to modify it.
 
Debe ser la acción "Reproducir / Detener sonido". Puede elegir su propio archivo de audio.

EDITAR

Si solo desea elegir entre, por ejemplo, 5 archivos de audio iguales, no hay problema. Simplemente deje que el usuario elija, por ejemplo, un número del 1 al 5. y luego, si número = 1, reproducir el archivo de audio 1, si 2, reproducir el archivo de audio 2, etc.

Pero si desea algo más complejo, como que el usuario elija algunos archivos de audio desde el dispositivo, será mucho más difícil. Me imagino al usuario llenando alguna variable con la ubicación del archivo y luego enviando la intención con esa ubicación del archivo a algún reproductor de música.
El problema es que la ubicación de este archivo no es tan fácil de escribir.
Tal vez algún complemento pueda ayudarlo a crear esta ubicación de archivo en la sección de "datos" de la intención.

Espero haberte entendido bien.
exactamente esa complejidad no existe dentro de macrodroid?
 
Should be "Play/Stop Sound" action. You can choose your own audio file.

EDIT

If you just want choose from for example 5 same audio files, than it's no problem. You just let user choose for example number from 1 - 5. and then if number=1 then play audio file 1, if 2 play audio file 2 etc...

But if you want something more complex like user choosing some of audio files from device it will be a lot more difficult. I could imagine user filling some variable with file location and then sending intent with that file location to some music player.
Problem is that this file location is not that easy to write.
Maybe some plugin could help you to create this file location into intent "data" section.

I hope I got you right.
exactly that complexity does not exist within macrodroid?
 

Mrperson

Member
I want to use the play sound action but it doesn't work. Volume is definitely up, and the system log shows the action itself.

Edit: It turns out that it uses a different audio channel than media.
 

Elenkhos

Member
I want to use the play sound action but it doesn't work. Volume is definitely up, and the system log shows the action itself.

Edit: It turns out that it uses a different audio channel than media.
You can change the speak/play media audio channel in the MacroDroid settings (or by a direct action in a macro).
 
In the next update you will be able to specify the audio channel for each play sound action (similar to speak text).
Hello, thank you very much for attending this request. I mean that without having to enter the source code, a common user can specify the audio file and it will play as if they had entered the code and indicated what audio is to be played.
 
In the next update you will be able to specify the audio channel for each play sound action (similar to speak text).
will it be possible? Why when we share a macro to another device it does not play the audio file because said file does not exist on the Device and you have to enter the source code and select it again when you can see the option that while said file does not exist, you are asked specify the file to play
 

Dm114

Well-known member
Hello, thank you very much for attending this request. I mean that without having to enter the source code, a common user can specify the audio file and it will play as if they had entered the code and indicated what audio is to be played.
It could be interesting indeed to ask the user if the specified file in the macro doesn't exist (and only for the first time, not every time). But, in this case, MD would have to modify the macro by itself to store the new file name and location. Not sure it is easily feasible...
 
It could be interesting indeed to ask the user if the specified file in the macro doesn't exist (and only for the first time, not every time). But, in this case, MD would have to modify the macro by itself to store the new file name and location. Not sure it is easily feasible...
Exactly every time the file does not exist, then a window will appear so that the said audio to be reproduced is established so that you do not have the need to enter the macro code
 

Dm114

Well-known member
Exactly every time the file does not exist, then a window will appear so that the said audio to be reproduced is established so that you do not have the need to enter the macro code
You'd better post in 'Feature request' forum but I'm not sure it is feasible. Let's see what Dev will answer...
 
Top