Show / Hide Table of Contents

Class AudioTools

Inheritance
System.Object
AudioTools
Namespace: Speechly.Tools
Assembly: speechly-dotnet.dll
Syntax
public class AudioTools : object

Fields

| Improve this Doc View Source

LOG_2_PLUS_LOG_5

Declaration
public static readonly double LOG_2_PLUS_LOG_5
Field Value
Type Description
System.Double

Methods

| Improve this Doc View Source

ConvertInt16ToFloat(in Byte[], ref Single[], Int32, Int32, Int32)

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

DbToEnergy(Single)

Declaration
public static float DbToEnergy(float db)
Parameters
Type Name Description
System.Single db
Returns
Type Description
System.Single
| Improve this Doc View Source

Downsample(in Single[], ref Single[], Int32, Int32, Int32, Int32)

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

EnergyToDb(Single)

Declaration
public static float EnergyToDb(float energy)
Parameters
Type Name Description
System.Single energy
Returns
Type Description
System.Single
| Improve this Doc View Source

GetAudioPeak(in Single[], Int32, Int32)

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

GetEnergy(in Single[], Int32, Int32)

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX