Class AudioTools
Inheritance
System.Object
AudioTools
Assembly: speechly-dotnet.dll
public class AudioTools : object
Fields
|
Improve this Doc
View Source
Declaration
public static readonly double LOG_2_PLUS_LOG_5
Field Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Declaration
public static int ConvertInt16ToFloat(in byte[] src, ref float[] dest, int srcStartSample = 0, int lengthSamples = null, int dstIndex = 0)
Parameters
Type |
Name |
Description |
System.Byte[] |
src |
|
System.Single[] |
dest |
|
System.Int32 |
srcStartSample |
|
System.Int32 |
lengthSamples |
|
System.Int32 |
dstIndex |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public static float DbToEnergy(float db)
Parameters
Type |
Name |
Description |
System.Single |
db |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Declaration
public static void Downsample(in float[] src, ref float[] dest, int sourceIndex = 0, int sourceLength = null, int destIndex = 0, int destLength = null)
Parameters
Type |
Name |
Description |
System.Single[] |
src |
|
System.Single[] |
dest |
|
System.Int32 |
sourceIndex |
|
System.Int32 |
sourceLength |
|
System.Int32 |
destIndex |
|
System.Int32 |
destLength |
|
|
Improve this Doc
View Source
Declaration
public static float EnergyToDb(float energy)
Parameters
Type |
Name |
Description |
System.Single |
energy |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Declaration
public static float GetAudioPeak(in float[] samples, int start = 0, int length = null)
Parameters
Type |
Name |
Description |
System.Single[] |
samples |
|
System.Int32 |
start |
|
System.Int32 |
length |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Declaration
public static float GetEnergy(in float[] samples, int start = 0, int length = null)
Parameters
Type |
Name |
Description |
System.Single[] |
samples |
|
System.Int32 |
start |
|
System.Int32 |
length |
|
Returns
Type |
Description |
System.Single |
|