UNPKG

echogarden

Version:

An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.

14 lines (13 loc) 1.33 kB
import { BitDepth, SampleFormat } from '@echogarden/wave-codec'; export declare function encodeToAudioBuffer(audioChannels: Float32Array[], targetBitDepth?: BitDepth, targetSampleFormat?: SampleFormat): Uint8Array; export declare function decodeToChannels(audioBuffer: Uint8Array, channelCount: number, sourceBitDepth: BitDepth, sourceSampleFormat: SampleFormat): Float32Array<ArrayBufferLike>[]; export declare function float32ToUint8Pcm(input: Float32Array): Uint8Array<ArrayBuffer>; export declare function int16PcmToFloat32(input: Int16Array): Float32Array<ArrayBuffer>; export declare function float32ToInt16Pcm(input: Float32Array): Int16Array<ArrayBuffer>; export declare function int24PcmToFloat32(input: Int32Array): Float32Array<ArrayBuffer>; export declare function float32ToInt24Pcm(input: Float32Array): Int32Array<ArrayBuffer>; export declare function int32PcmToFloat32(input: Int32Array): Float32Array<ArrayBuffer>; export declare function float32ToInt32Pcm(input: Float32Array): Int32Array<ArrayBuffer>; export declare function interleaveChannels(channels: Float32Array[]): Float32Array<ArrayBufferLike>; export declare function deinterleaveChannels(interleavedChannels: Float32Array, channelCount: number): Float32Array<ArrayBufferLike>[]; export { type BitDepth, SampleFormat } from '@echogarden/wave-codec';