Page 1 of 1
How to play recorded audio?
Posted: 08 Jul 2017 04:49
by akhileshg1988
Hey there!
I have a call recording flow wherein every incoming and outgoing call is recorded in an audio file. When the call ends, audio recording is stopped and a notification is generated in the statusbar which asks whether to save or delete the recorded file.
I was trying to add another button named "Play" which should play the recorded audio file in case I want to hear a conversation before deciding whether to save it or not?
I've already tried the actions "Control Audio Player" (with both Media Button and Media Button Send to specified app) and "Sound". Both seem not to work on my device. Can anyone help me out in this regard?
Thanks
Akhilesh Chandra Gairola
Re: How to play recorded audio?
Posted: 11 Jul 2017 20:35
by Martin
Hi,
Action Sound should work when using Sound Type file. Is there some kind of error message or does it silently fail? Also ensure to use an audio stream that is not silent for some reason.
Regards,
Martin
Re: How to play recorded audio?
Posted: 13 Jul 2017 03:36
by akhileshg1988
Hey Martin!
Thanks for your response.
Martin wrote:Hi,
Action Sound should work when using Sound Type file.
Just to inform you that all calls are recorded in AAC (High quality) format with.mp3 encoding so that the generated file is a sound/audio file.
Martin wrote:Is there some kind of error message or does it silently fail?
The following error message is displayed in the statusbar:-
"Error
Could not play sound: Prepare failed.:status=0x1"
Martin wrote:Also ensure to use an audio stream that is not silent for some reason.
Regards,
Martin
Have tried using all audio streams. None was silent while trying.
Thanks and regards
Akhilesh Chandra Gairola
Re: How to play recorded audio?
Posted: 15 Jul 2017 19:53
by Martin
Playing a recorded file seems to work on my device.
Please ensure that the audio file was stopped properly after recording (so that it's not recording anymore). Also verify that there's no typo in the file name and that the file really exists in the specified location. Also try to restart the device once.
Regards,
Martin
Re: How to play recorded audio?
Posted: 16 Jul 2017 13:48
by akhileshg1988
Nothing helps

Re: How to play recorded audio?
Posted: 17 Jul 2017 18:55
by Martin
Could you please send me one of your recorded audio files so I can check if it plays on my test devices?
Please also send me your flows that you use to record the audio file and the one to play the file so I can try to reproduce the problem.
You can send the files to
info@automagic4android.com.
Thanks & regards,
Martin
Re: How to play recorded audio?
Posted: 18 Jul 2017 06:28
by akhileshg1988
Done. Mailed you a recorded audio file as well as the flows, Martin!
Do have a look at them and let me know your findings.
Regards
Akhilesh Chandra Gairola