speechflow
Version:
Speech Processing Flow Graph
35 lines (34 loc) • 1.3 kB
TypeScript
import { EventEmitter } from "node:events";
import CLIio from "cli-io";
import SpeechFlowNode from "./speechflow-node";
import { NodeConfig } from "./speechflow-main-config";
import { CLIOptions } from "./speechflow-main-cli";
import { APIServer } from "./speechflow-main-api";
export declare class NodeGraph {
private cli;
private debug;
private graphNodes;
private activeNodes;
private finishEvents;
private timeZero;
private shuttingDown;
constructor(cli: CLIio, debug?: boolean);
getGraphNodes(): Set<SpeechFlowNode>;
findGraphNode(name: string): SpeechFlowNode | undefined;
createAndConnectNodes(config: string, nodes: {
[id: string]: typeof SpeechFlowNode;
}, cfg: NodeConfig, variables: {
argv: any[];
env: any;
}, accessBus: (name: string) => EventEmitter): Promise<void>;
pruneConnections(): Promise<void>;
openNodes(): Promise<void>;
connectStreams(): Promise<void>;
trackFinishing(args: CLIOptions, api: APIServer): void;
disconnectStreams(): Promise<void>;
closeNodes(): Promise<void>;
disconnectNodes(): void;
destroyNodes(): void;
setupSignalHandlers(args: CLIOptions, api: APIServer): void;
shutdown(signal: string, args: CLIOptions, api: APIServer): Promise<void>;
}