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 Sox
Declaration
public SoxSpectrogramUtility(IAudioUtility audioUtility, FileInfo soxExe)
Parameters
| Type | Name | Description |
|---|---|---|
| IAudio |
audioUtility | The audio utility. |
| File |
soxExe | The sox exe. |
SoxSpectrogramUtility(IAudioUtility, FileInfo, DirectoryInfo)
Initializes a new instance of the Sox
Declaration
public SoxSpectrogramUtility(IAudioUtility audioUtility, FileInfo soxExe, DirectoryInfo temporaryFilesDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| IAudio |
audioUtility | The audio utility. |
| File |
soxExe | The sox exe. |
| Directory |
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 |
|---|---|---|
| File |
source | The source audio file. |
| String | sourceMimeType | The source Mime Type. |
| File |
output | The output image file. Ensure the file does not exist. |
| String | outputMimeType | The output Mime Type. |
| Spectrogram |
request | The spectrogram request. |