UNPKG

speechflow

Version:

Speech Processing Flow Graph

38 lines (34 loc) 1.09 kB
/* ** SpeechFlow - Speech Processing Flow Graph ** Copyright (c) 2024-2025 Dr. Ralf S. Engelschall <rse@engelschall.com> ** Licensed under GPL 3.0 <https://spdx.org/licenses/GPL-3.0-only> */ /* type definitions for Stream.compose */ declare module "node:stream" { import { Stream, Duplex } from "node:stream" export function compose (...streams: Stream[]): Duplex } /* type definitions for AudioWorkletProcessor */ declare interface AudioWorkletProcessor { readonly port: MessagePort process( inputs: Float32Array[][], outputs: Float32Array[][], parameters: Record<string, Float32Array> ): boolean } declare const AudioWorkletProcessor: { prototype: AudioWorkletProcessor new(): AudioWorkletProcessor } declare interface AudioParamDescriptor { name: string defaultValue?: number minValue?: number maxValue?: number automationRate?: "a-rate" | "k-rate" } declare function registerProcessor( name: string, processorCtor: new (...args: any[]) => AudioWorkletProcessor ): void