UNPKG

echogarden

Version:

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

15 lines (14 loc) 1.41 kB
import { BitDepth, SampleFormat } from '../codecs/WaveCodec.js'; export declare function encodeToAudioBuffer(audioChannels: Float32Array[], targetBitDepth?: BitDepth, targetSampleFormat?: SampleFormat): Uint8Array; export declare function decodeToChannels(audioBuffer: Uint8Array, channelCount: number, sourceBitDepth: number, sourceSampleFormat: SampleFormat): Float32Array<ArrayBufferLike>[]; export declare function int8PcmToFloat32(input: Int8Array): Float32Array<ArrayBuffer>; export declare function float32ToInt8Pcm(input: Float32Array): Int8Array<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 declare function clampFloatSample(floatSample: number): number;