Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 15
Registered: ‎07-26-2008
My Device: Not Specified
Accepted Solution

How do I append the voice data on recorded voice file?

Hi,

I'm working on Voice Recorder Control with (RecordControl interface) in BlackBerry.
I want to append the voice data on already recorded file.

 

Is it possible to append the new data on already recorded file? or any other solution to append the voice data on already recorded file?

 

Thanks

Sohail

BlackBerry Development Advisor
Posts: 15,017
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How do I append the voice data on recorded voice file?

This isn't directly supported.  The data you receive when recording is a complete file (with required header information, etc..).  Appending one file to another would create a file with an invalid format.

 

You could pause and resume your recording to create a single file.

 

Otherwise you'd need to develop your own method combine the audio files.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: How do I append the voice data on recorded voice file?

I assume you are recording in amr format.

 

The solution is given below

 

if you want to append or insert audio,create a new file and once the user presses stop, combine both the files, and create another file which contains both the files. it can be done by reading from inputstream of both the files and then writing to the output stream of the new file.,,,

 

thanks.

 

"if this has helped you .give kudos and accept the solution"

New Developer
Posts: 15
Registered: ‎07-26-2008
My Device: Not Specified

Re: How do I append the voice data on recorded voice file?

Thanks for the replies.

 

Anyone have idea what formats and characteristics like Hz, Mono etc. are supported by most of the new generation BB devices. so that we will decode it in this format and combine the data.

Thanks

Sohail

Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: How do I append the voice data on recorded voice file?

 There you go

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/What_I...


Rihan Farman
Blackberry Application Developer
England
______________________________________________________________________
Press the kudos button to thank if this has helped you
If this has solved your problem then please mark the thread as "Accepted solution".

 

Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: How do I append the voice data on recorded voice file?

This will also help you

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/How_To...

 


Rihan Farman
Blackberry Application Developer
England
______________________________________________________________________
Press the kudos button to thank if this has helped you
If this has solved your problem then please mark the thread as "Accepted solution".

 

New Developer
Posts: 15
Registered: ‎07-26-2008
My Device: Not Specified

Re: How do I append the voice data on recorded voice file?

Thanks a lot for your replies. it helps me lot.

 

Regards

Sohail

Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: How do I append the voice data on recorded voice file?

No worries mate.