sherpa-onnx-node-addon-api
    Preparing search index...
    Index

    Constructors

    • Constructor (sync path).

      Users call: new OfflineTts(config)

      Async factory calls this with an internal descriptor.

      Parameters

      • configOrInternal: any

      Returns OfflineTts

    Properties

    config: any
    handle: any
    numSpeakers: any
    sampleRate: any

    Methods

    • Generate audio asynchronously with optional generationConfig and progress callback

      The progress callback receives streaming audio chunks.

      Parameters

      • obj: TtsRequest & {
            generationConfig?: GenerationConfig;
            onProgress?: (
                info: { progress: number; samples: Float32Array },
            ) => number | boolean | void;
        }

      Returns Promise<GeneratedAudio>