
/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleJniCpp.js
 */

#include "SherpaOnnxSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_validateLibraryLoaded(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "validateLibraryLoaded", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_testOnnxIntegration(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "testOnnxIntegration", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_getArchitectureInfo(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getArchitectureInfo", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_getSystemInfo(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getSystemInfo", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initTts(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initTts", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_generateTts(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "generateTts", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_stopTts(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "stopTts", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseTts(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseTts", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initAsr(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initAsr", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_recognizeFromSamples(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "recognizeFromSamples", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_recognizeFromFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "recognizeFromFile", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseAsr(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseAsr", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_createAsrOnlineStream(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "createAsrOnlineStream", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_acceptAsrOnlineWaveform(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "acceptAsrOnlineWaveform", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_isAsrOnlineEndpoint(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "isAsrOnlineEndpoint", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_getAsrOnlineResult(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getAsrOnlineResult", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_finishAsrOnlineInput(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "finishAsrOnlineInput", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetAsrOnlineStream(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "resetAsrOnlineStream", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initAudioTagging(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initAudioTagging", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processAndComputeAudioTagging(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processAndComputeAudioTagging", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processAndComputeAudioSamples(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processAndComputeAudioSamples", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseAudioTagging(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseAudioTagging", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initSpeakerId(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initSpeakerId", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processSpeakerIdSamples(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processSpeakerIdSamples", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_computeSpeakerEmbedding(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "computeSpeakerEmbedding", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetSpeakerIdStream(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "resetSpeakerIdStream", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_registerSpeaker(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "registerSpeaker", "(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_removeSpeaker(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "removeSpeaker", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_getSpeakers(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getSpeakers", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_identifySpeaker(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "identifySpeaker", "(Lcom/facebook/react/bridge/ReadableArray;DLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_verifySpeaker(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "verifySpeaker", "(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;DLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processSpeakerIdFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processSpeakerIdFile", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processSpeakerIdFileWindow(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processSpeakerIdFileWindow", "(Ljava/lang/String;DDLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseSpeakerId(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseSpeakerId", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initDiarization(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initDiarization", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processDiarizationFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processDiarizationFile", "(Ljava/lang/String;DDLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_processDiarizationFileWindow(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "processDiarizationFileWindow", "(Ljava/lang/String;DDDDLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseDiarization(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseDiarization", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initKws(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initKws", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_acceptKwsWaveform(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "acceptKwsWaveform", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetKwsStream(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "resetKwsStream", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseKws(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseKws", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initVad(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initVad", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_acceptVadWaveform(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "acceptVadWaveform", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetVad(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "resetVad", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseVad(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseVad", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initLanguageId(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initLanguageId", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_detectLanguage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "detectLanguage", "(DLcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_detectLanguageFromFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "detectLanguageFromFile", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseLanguageId(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseLanguageId", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initPunctuation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initPunctuation", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_addPunctuation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "addPunctuation", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releasePunctuation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releasePunctuation", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_initDenoiser(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initDenoiser", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_denoiseFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "denoiseFile", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseDenoiser(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseDenoiser", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_createOnnxSession(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "createOnnxSession", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_runOnnxSession(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "runOnnxSession", "(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseOnnxSession(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "releaseOnnxSession", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeSherpaOnnxSpecSpecJSI_extractTarBz2(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "extractTarBz2", "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

NativeSherpaOnnxSpecSpecJSI::NativeSherpaOnnxSpecSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["validateLibraryLoaded"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_validateLibraryLoaded};
  methodMap_["testOnnxIntegration"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_testOnnxIntegration};
  methodMap_["getArchitectureInfo"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_getArchitectureInfo};
  methodMap_["getSystemInfo"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_getSystemInfo};
  methodMap_["initTts"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initTts};
  methodMap_["generateTts"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_generateTts};
  methodMap_["stopTts"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_stopTts};
  methodMap_["releaseTts"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseTts};
  methodMap_["initAsr"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initAsr};
  methodMap_["recognizeFromSamples"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_recognizeFromSamples};
  methodMap_["recognizeFromFile"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_recognizeFromFile};
  methodMap_["releaseAsr"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseAsr};
  methodMap_["createAsrOnlineStream"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_createAsrOnlineStream};
  methodMap_["acceptAsrOnlineWaveform"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_acceptAsrOnlineWaveform};
  methodMap_["isAsrOnlineEndpoint"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_isAsrOnlineEndpoint};
  methodMap_["getAsrOnlineResult"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_getAsrOnlineResult};
  methodMap_["finishAsrOnlineInput"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_finishAsrOnlineInput};
  methodMap_["resetAsrOnlineStream"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetAsrOnlineStream};
  methodMap_["initAudioTagging"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initAudioTagging};
  methodMap_["processAndComputeAudioTagging"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processAndComputeAudioTagging};
  methodMap_["processAndComputeAudioSamples"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processAndComputeAudioSamples};
  methodMap_["releaseAudioTagging"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseAudioTagging};
  methodMap_["initSpeakerId"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initSpeakerId};
  methodMap_["processSpeakerIdSamples"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processSpeakerIdSamples};
  methodMap_["computeSpeakerEmbedding"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_computeSpeakerEmbedding};
  methodMap_["resetSpeakerIdStream"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetSpeakerIdStream};
  methodMap_["registerSpeaker"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_registerSpeaker};
  methodMap_["removeSpeaker"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_removeSpeaker};
  methodMap_["getSpeakers"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_getSpeakers};
  methodMap_["identifySpeaker"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_identifySpeaker};
  methodMap_["verifySpeaker"] = MethodMetadata {3, __hostFunction_NativeSherpaOnnxSpecSpecJSI_verifySpeaker};
  methodMap_["processSpeakerIdFile"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processSpeakerIdFile};
  methodMap_["processSpeakerIdFileWindow"] = MethodMetadata {3, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processSpeakerIdFileWindow};
  methodMap_["releaseSpeakerId"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseSpeakerId};
  methodMap_["initDiarization"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initDiarization};
  methodMap_["processDiarizationFile"] = MethodMetadata {3, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processDiarizationFile};
  methodMap_["processDiarizationFileWindow"] = MethodMetadata {5, __hostFunction_NativeSherpaOnnxSpecSpecJSI_processDiarizationFileWindow};
  methodMap_["releaseDiarization"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseDiarization};
  methodMap_["initKws"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initKws};
  methodMap_["acceptKwsWaveform"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_acceptKwsWaveform};
  methodMap_["resetKwsStream"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetKwsStream};
  methodMap_["releaseKws"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseKws};
  methodMap_["initVad"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initVad};
  methodMap_["acceptVadWaveform"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_acceptVadWaveform};
  methodMap_["resetVad"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_resetVad};
  methodMap_["releaseVad"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseVad};
  methodMap_["initLanguageId"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initLanguageId};
  methodMap_["detectLanguage"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_detectLanguage};
  methodMap_["detectLanguageFromFile"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_detectLanguageFromFile};
  methodMap_["releaseLanguageId"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseLanguageId};
  methodMap_["initPunctuation"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initPunctuation};
  methodMap_["addPunctuation"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_addPunctuation};
  methodMap_["releasePunctuation"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releasePunctuation};
  methodMap_["initDenoiser"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_initDenoiser};
  methodMap_["denoiseFile"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_denoiseFile};
  methodMap_["releaseDenoiser"] = MethodMetadata {0, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseDenoiser};
  methodMap_["createOnnxSession"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_createOnnxSession};
  methodMap_["runOnnxSession"] = MethodMetadata {5, __hostFunction_NativeSherpaOnnxSpecSpecJSI_runOnnxSession};
  methodMap_["releaseOnnxSession"] = MethodMetadata {1, __hostFunction_NativeSherpaOnnxSpecSpecJSI_releaseOnnxSession};
  methodMap_["extractTarBz2"] = MethodMetadata {2, __hostFunction_NativeSherpaOnnxSpecSpecJSI_extractTarBz2};
}

std::shared_ptr<TurboModule> SherpaOnnxSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
  if (moduleName == "SherpaOnnx") {
    return std::make_shared<NativeSherpaOnnxSpecSpecJSI>(params);
  }
  return nullptr;
}

} // namespace facebook::react
