Class CustomSpectrogramUtility
Signal to Image used by web site.
Implements
Inherited Members
Namespace: Acoustics.Tools.Audio
Assembly: Acoustics.Tools.dll
Syntax
public class CustomSpectrogramUtility : AbstractSpectrogramUtility, ISpectrogramUtility
Constructors
| Improve this Doc View SourceCustomSpectrogramUtility(IAudioUtility)
Initializes a new instance of the CustomSpectrogramUtility class.
Declaration
public CustomSpectrogramUtility(IAudioUtility audioUtility)
Parameters
Type | Name | Description |
---|---|---|
IAudioUtility | audioUtility | The audio utility. |
CustomSpectrogramUtility(IAudioUtility, DirectoryInfo)
Initializes a new instance of the CustomSpectrogramUtility class.
Declaration
public CustomSpectrogramUtility(IAudioUtility audioUtility, DirectoryInfo temporaryFilesDirectory)
Parameters
Type | Name | Description |
---|---|---|
IAudioUtility | audioUtility | The audio utility. |
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. |