{"category":"audio","endpoint":"https://setget.net/v1/tools/audio-trim","examples":[{"input":{"end":3,"file":"sample.mp3","start":0.5},"title":"Keep 0.5 s to 3 s"},{"input":{"duration":1,"fade_in":0.2,"fade_out":0.2,"file":"sample.wav","start":0.5},"title":"One second with short fades"}],"input_schema":{"additionalProperties":false,"properties":{"duration":{"description":"Length to keep in seconds, as another way of giving the end.","minimum":0,"type":"number"},"end":{"description":"Where the kept part ends, in seconds. Leave empty to keep to the end.","examples":[3],"minimum":0,"type":"number"},"fade_in":{"default":0,"description":"Seconds of fade in at the start of the result.","maximum":60,"minimum":0,"type":"number"},"fade_out":{"default":0,"description":"Seconds of fade out at the end of the result.","maximum":60,"minimum":0,"type":"number"},"file":{"description":"The audio file.","format":"setget-file","type":"string","x-accept":["audio"]},"format":{"description":"Format of the result: mp3, wav, ogg, opus, flac or m4a. Leave empty to keep the format of the upload.","enum":["mp3","wav","ogg","opus","flac","m4a"],"type":"string"},"start":{"default":0,"description":"Where the kept part begins, in seconds.","examples":[1.5],"minimum":0,"type":"number"}},"required":["file"],"type":"object"},"keywords":["cut audio","trim mp3","mp3 cutter","audio cutter","crop audio","shorten","clip","ringtone","cut song","snip"],"related":["audio-fade","audio-silence-trim","audio-split-on-silence","audio-concat","video-trim"],"slug":"audio-trim","summary":"Cut a section out of an audio file by start and end time, with optional fade in and fade out.","tier":"job","timeout_seconds":300,"title":"Trim audio","url":"https://setget.net/tools/audio-trim"}
