Skip to content
Docs menu

Convert to W64

Sony Wave64. The API converts 58 formats to W64. These are the options, by input format.

curl https://api.switchfile.io/v1/convert \
  -H "Authorization: Bearer $SWITCHFILE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/input.3g2","to":"w64","options":{"sample_rate":48000}}'

From 58 formats

3g2, 3ga, 3gp, aac, ac3, aif, aifc, aiff, alac, amr, asf, au, avi, caf, divx, dts, dv, eac3, f4v, flac, flv, m2ts, m4a, m4b, m4r, m4v, mka, mkv, mod, mov, mp2, mp3, mp4, mpeg, mpg, mts, mxf, oga, ogg, ogv, opus, ra, rm, rmvb, spx, tod, ts, tta, vob, voc, w64, wav, weba, webm, wma, wmv, wtv, wv

  • audio_codecenumdefault: not set

    Audio codec. "copy" keeps the audio as it is.

    one of copy, pcm

  • volumenumberdefault: not set

    Change the volume: 1.0 keeps it, 1.1 is 10% louder, 0.5 is half as loud. At most 10.

  • channelsintegerdefault: not set

    Number of audio channels, for example 1 for mono or 2 for stereo.

  • sample_rateintegerdefault: not set

    Sample rate in Hz, for example 44100 or 48000 (8000 to 192000).

  • trim_startstringdefault: not set

    Start of the part to keep, in seconds or HH:MM:SS.

  • trim_endstringdefault: not set

    End of the part to keep, in seconds or HH:MM:SS.