This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
Input MP3 file
Default: "/path/to/default/file.mp3"
Start time in MMSS format, e.g., 130 for 1 minute and 30 seconds
Default: 100
End time in MMSS format, e.g., 625 for 6 minutes and 25 seconds
Default: 200
Apply fade out effect to the last 2.5 seconds
Default: false
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run myaiteam2/song-trimmer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "myaiteam2/song-trimmer:782969b07b0e944a2988063b216e396f616dc4b4573a4774132dec00ee1dbe90", { input: { end_time: 200, fade_out: false, audio_file: "/path/to/default/file.mp3", start_time: 100 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "myaiteam2/song-trimmer:782969b07b0e944a2988063b216e396f616dc4b4573a4774132dec00ee1dbe90", input={ "end_time": 200, "fade_out": False, "audio_file": "/path/to/default/file.mp3", "start_time": 100 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "myaiteam2/song-trimmer:782969b07b0e944a2988063b216e396f616dc4b4573a4774132dec00ee1dbe90", "input": { "end_time": 200, "fade_out": false, "audio_file": "/path/to/default/file.mp3", "start_time": 100 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
No output yet! Press "Submit" to start a prediction.
This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
Create cool looking gold metal things!
Just some good ole beautifulsoup scrapping URL magic. (some sites don't work as they block scrapping, but still useful)
I been making Ai music and keep trying to end the song and waste alot of credits, so instead i just coded a audio trimmer with a fade last 2.5 seconds options ha. Enjoy!
I found this cool audio wave generator and made it my own.
Turns 10 mp4 into 1
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
This model runs on CPU hardware which costs $0.0001 per second. View more.
Choose a file from your machine
Hint: you can also drag files onto the input