| |
| |
| export function wbg_rayon_start_worker(receiver: number): void; |
| export function initThreadPool(num_threads: number): Promise<any>; |
| export class MoshiASRDecoder { |
| free(): void; |
| stop_streaming(): void; |
| start_streaming(): void; |
| process_audio_chunk(audio_data: Float32Array, callback: Function): void; |
| constructor(weights: Uint8Array, tokenizer: Uint8Array, mimi: Uint8Array, config: Uint8Array); |
| } |
| export class wbg_rayon_PoolBuilder { |
| private constructor(); |
| free(): void; |
| numThreads(): number; |
| build(): void; |
| mainJS(): string; |
| receiver(): number; |
| } |
|
|
| export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; |
|
|
| export interface InitOutput { |
| readonly __wbg_moshiasrdecoder_free: (a: number, b: number) => void; |
| readonly moshiasrdecoder_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number; |
| readonly moshiasrdecoder_process_audio_chunk: (a: number, b: number, c: number, d: any) => void; |
| readonly moshiasrdecoder_start_streaming: (a: number) => void; |
| readonly moshiasrdecoder_stop_streaming: (a: number) => void; |
| readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void; |
| readonly wbg_rayon_poolbuilder_build: (a: number) => void; |
| readonly wbg_rayon_poolbuilder_mainJS: (a: number) => any; |
| readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number; |
| readonly wbg_rayon_poolbuilder_receiver: (a: number) => number; |
| readonly wbg_rayon_start_worker: (a: number) => void; |
| readonly initThreadPool: (a: number) => any; |
| readonly __wbindgen_exn_store: (a: number) => void; |
| readonly __externref_table_alloc: () => number; |
| readonly __wbindgen_export_2: WebAssembly.Table; |
| readonly memory: WebAssembly.Memory; |
| readonly __wbindgen_malloc: (a: number, b: number) => number; |
| readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void; |
| readonly __wbindgen_start: (a: number) => void; |
| } |
|
|
| export type SyncInitInput = BufferSource | WebAssembly.Module; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export function initSync(module: { module: SyncInitInput, memory?: WebAssembly.Memory, thread_stack_size?: number } | SyncInitInput, memory?: WebAssembly.Memory): InitOutput; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput>, memory?: WebAssembly.Memory, thread_stack_size?: number } | InitInput | Promise<InitInput>, memory?: WebAssembly.Memory): Promise<InitOutput>; |
|
|