Compute
stems
Extracts stems from an audio file
moises.compute.stems
Parameters
Parameter | Type | Description |
---|---|---|
input | string | The input audio data |
stemsToExtract | Array | The stems to extract |
Returns:
Promise<Object>
- Promise that resolves with the stems
Return Object Structure:
// When the promise resolves, you get:
{
stem.id: "example" // string
}
Usage Example
import { initMoisesExtension } from '@moises.ai/extension'
const useMoisesExtension = initMoisesExtension({
id: 'id',
name: 'name',
description: 'description',
icon: 'icon',
version: 'version',
author: 'author'
})
const { moises } = useMoisesExtension()
const params = {
inputUrl: 'https://storage.com/audio.mp3',
vocals: true,
drums: true,
bass: false,
guitars: false,
strings: false,
piano: false,
keys: false
}
const result = await moises.compute.stems(params)
console.log(result) // { stems.vocals: string, stems.drums: string }
This file is automatically generated. Do not edit manually.