How to play recorded audio?

Post your questions and help other users.

Moderator: Martin

Post Reply
akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

How to play recorded audio?

Post by akhileshg1988 » 08 Jul 2017 04:49

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to play recorded audio?

Post by Martin » 11 Jul 2017 20:35

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

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: How to play recorded audio?

Post by akhileshg1988 » 13 Jul 2017 03:36

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to play recorded audio?

Post by Martin » 15 Jul 2017 19:53

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

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: How to play recorded audio?

Post by akhileshg1988 » 16 Jul 2017 13:48

Nothing helps :-(

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to play recorded audio?

Post by Martin » 17 Jul 2017 18:55

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

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: How to play recorded audio?

Post by akhileshg1988 » 18 Jul 2017 06:28

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

Post Reply