Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.09 KB

SOUNDS_API.md

File metadata and controls

68 lines (46 loc) · 2.09 KB

Sounds API

Get All Sounds

Retrieves sounds given the duration.

If the authorization is not present, then response limits to 5.

const RenderforestClient = require('@renderforest/sdk-node')

RenderforestClient.getCompanySoundsLimited({ duration: 4 })
  .then(console.log) // handle the success
  .catch(console.error) // handle the error

See example

With authorization it's possible to fetch all sounds.

const RenderforestClient = require('@renderforest/sdk-node')

const Renderforest = new RenderforestClient({ signKey: '<signKey>', clientId: -1 })

Renderforest.getSounds({ duration: 4 })
  .then(console.log) // handle the success
  .catch(console.error) // handle the error
  • The sounds will have greater or equal duration to the specified one.
  • Remember — any given value of the duration greater than 180 will be overridden by 180!

See example

Get Recommended Sounds

Retrieves recommended sounds for the given template.

If the authorization is not present, then response limits to 5.

const RenderforestClient = require('@renderforest/sdk-node')

RenderforestClient.getRecommendedSoundsLimited(701, { duration: 5 })
  .then(console.log) // handle the success
  .catch(console.error) // handle the error

See example

With authorization it's possible to fetch all recommended sounds.

const RenderforestClient = require('@renderforest/sdk-node')

const Renderforest = new RenderforestClient({ signKey: '<signKey>', clientId: -1 })

Renderforest.getRecommendedSounds(701, { duration: 5 })
  .then(console.log) // handle the success
  .catch(console.error) // handle the error
  • These sounds will have greater or equal duration to the specified one.
  • Remember — any given value of the duration greater than 180 will be overridden by 180!

See example

⬆ back to the top