Click or drag to resize
SoxConvert Method (String, String, String)
Converts the audio data from the specified audio file type to the new audio file type.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static void Convert(
	string sox,
	string from,
	string to
)

Parameters

sox
Type: SystemString
Path to Sox executable file
from
Type: SystemString
Input audio file.
to
Type: SystemString
Output audio file.
Examples
This example shows how translates an audio file in Sun AU format to a Microsoft WAV file
try
{
    Sox.Convert("sox.exe", "input.au", "output.wav");
}
catch (SoxException e)
{
    Console.WriteLine("{0}: {1}", e.Code, e.Message);
}
See Also