/**
 * 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: GenerateModuleCpp.js
 */

#include "RNVoiceToTextSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_startListening(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->startListening(
    rt
  );
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_stopListening(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->stopListening(
    rt
  );
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_destroy(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->destroy(
    rt
  );
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->addListener(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->removeListeners(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_getRecognitionLanguage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->getRecognitionLanguage(
    rt
  );
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_setRecognitionLanguage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->setRecognitionLanguage(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_isRecognitionAvailable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->isRecognitionAvailable(
    rt
  );
}
static jsi::Value __hostFunction_NativeVoiceToTextCxxSpecJSI_getSupportedLanguages(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeVoiceToTextCxxSpecJSI *>(&turboModule)->getSupportedLanguages(
    rt
  );
}

NativeVoiceToTextCxxSpecJSI::NativeVoiceToTextCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("VoiceToText", jsInvoker) {
  methodMap_["startListening"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextCxxSpecJSI_startListening};
  methodMap_["stopListening"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextCxxSpecJSI_stopListening};
  methodMap_["destroy"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextCxxSpecJSI_destroy};
  methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextCxxSpecJSI_addListener};
  methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextCxxSpecJSI_removeListeners};
  methodMap_["getRecognitionLanguage"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextCxxSpecJSI_getRecognitionLanguage};
  methodMap_["setRecognitionLanguage"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextCxxSpecJSI_setRecognitionLanguage};
  methodMap_["isRecognitionAvailable"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextCxxSpecJSI_isRecognitionAvailable};
  methodMap_["getSupportedLanguages"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextCxxSpecJSI_getSupportedLanguages};
}


} // namespace facebook::react
