Concatenate Audio Files?
Regarding Concatenating Media — https://cloudinary.com/documentation/video_trimming_and_concatenating#concatenating_media
Can audio files be concatenated? I know you can overlay multiple audio files, but the concatenation page only mentions video.
Answers
-
Hi there,
To concatenate audio files using Cloudinary, use the same transformation parameter as video concatenation. For example : https://res.cloudinary.com/<CLOUD_NAME>/video/upload/fl_splice,l_video:<audio1>/fl_layer_apply/<audio2>.mp3
You need to set your `cloud name`. This example is concatenating an audio file called `audio1` to the end of `audio2`.
I hope it makes.
Please let me know if you have additional questions.
Regards,
Wissam
1 -
In this example, is the /video/upload the path to the folder both files reside in? Do both audio files have to be in same folder?
0 -
Hi there,
/video/upload is not the path of the audio files.
It is part of the delivery URL that Cloudinary creates when you upload video/audio files.
For images, you will get /image/upload.
Try to upload a file to your Cloudinary account and check the URL that you are getting.
I hope it makes sense.
Please let me know if you have additional questions.
Regards,
Wissam
0 -
Thank you!
0 -
Hi, is it possible to add some silence between each audio file?
0 -
@Nicolas - sure. You can do this by concatenating any other audio file and set it to be muted. Here's an example: https://res.cloudinary.com/demo/video/upload/fl_splice,l_video:docs:franck:piano,du_2,e_volume:mute/fl_splice,l_video:docs:franck:piano/fl_layer_apply/fl_layer_apply/docs/franck/audio/piano_low.mp3
First, you hear piano_low.mp3 (the base audio) for 12 seconds, then this is concatenated with two seconds of piano with volume set to mute (e_volume:mute), then this is concatenated with another copy of piano.
@shancloudinary - you can see in this example that the audio doesn't have to be in the same folder, but when you specify assets in folders for layers, you need to replace the forward slashes with colons (e.g. docs/franck/piano becomes docs:franck:piano).
0 -
Great! Thank you!
1 -
Is it possible to get the SIZE of the concatenated audio file?
0