
/**
 * 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 "RNVoiceToTextSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_startListening(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, "startListening", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_stopListening(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, "stopListening", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_destroy(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, "destroy", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_addListener(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, VoidKind, "addListener", "(Ljava/lang/String;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_removeListeners(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, VoidKind, "removeListeners", "(D)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_getRecognitionLanguage(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, "getRecognitionLanguage", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_setRecognitionLanguage(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, "setRecognitionLanguage", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_isRecognitionAvailable(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, "isRecognitionAvailable", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_getSupportedLanguages(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, "getSupportedLanguages", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

NativeVoiceToTextSpecJSI::NativeVoiceToTextSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["startListening"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_startListening};
  methodMap_["stopListening"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_stopListening};
  methodMap_["destroy"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_destroy};
  methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextSpecJSI_addListener};
  methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextSpecJSI_removeListeners};
  methodMap_["getRecognitionLanguage"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_getRecognitionLanguage};
  methodMap_["setRecognitionLanguage"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextSpecJSI_setRecognitionLanguage};
  methodMap_["isRecognitionAvailable"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_isRecognitionAvailable};
  methodMap_["getSupportedLanguages"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_getSupportedLanguages};
}

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

} // namespace facebook::react
