Class SoxSpectrogramUtility
Spectrogram utility that uses sox.exe to generate spectrograms.
Implements
Inherited Members
Namespace: Acoustics.Tools.Audio
Assembly: Acoustics.Tools.dll
Syntax
public class SoxSpectrogramUtility : AbstractSpectrogramUtility, ISpectrogramUtility
Constructors
| Improve this Doc View SourceSoxSpectrogramUtility(IAudioUtility, FileInfo)
Initializes a new instance of the SoxSpectrogramUtility class.
Declaration
public SoxSpectrogramUtility(IAudioUtility audioUtility, FileInfo soxExe)
Parameters
Type | Name | Description |
---|---|---|
IAudioUtility | audioUtility | The audio utility. |
FileInfo | soxExe | The sox exe. |
SoxSpectrogramUtility(IAudioUtility, FileInfo, DirectoryInfo)
Initializes a new instance of the SoxSpectrogramUtility class.
Declaration
public SoxSpectrogramUtility(IAudioUtility audioUtility, FileInfo soxExe, DirectoryInfo temporaryFilesDirectory)
Parameters
Type | Name | Description |
---|---|---|
IAudioUtility | audioUtility | The audio utility. |
FileInfo | soxExe | The sox exe. |
DirectoryInfo | temporaryFilesDirectory |
Methods
| Improve this Doc View SourceCreate(FileInfo, String, FileInfo, String, SpectrogramRequest)
Create a spectrogram from a segment of the source
audio file.
output
image file will be created.
Declaration
public void Create(FileInfo source, string sourceMimeType, FileInfo output, string outputMimeType, SpectrogramRequest request)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | source | The source audio file. |
String | sourceMimeType | The source Mime Type. |
FileInfo | output | The output image file. Ensure the file does not exist. |
String | outputMimeType | The output Mime Type. |
SpectrogramRequest | request | The spectrogram request. |