Adding a transition to a song
Now that you've got your song's foundation in place, it's time to add a transition! To do this, make a POST request to the /getTransition
endpoint with the following parameters:
Add a transition to a song
POST /getTransition HTTP/1.1
Host: staging.casperaki.com
Content-Type: application/json
{
"segment": "<Insert segment>",
"lockSegments": "true",
"transition": "<Insert transition>",
"song": <Insert song>
}
This will give you a transition for your specified song and segment. You can use this API to add a dynamic transition between different parts of your song, enhancing the overall listening experience.
Note: The segment
parameter specifies the specific part of the song where the transition should take place. The lockSegments
parameter allows you to lock the segments
before applying the transition. The transition
parameter specifies the type of transition you want to apply.