23#ifndef WHISPER_BASE_NODE_HPP
24#define WHISPER_BASE_NODE_HPP
27#include <rclcpp/rclcpp.hpp>
28#include <rclcpp_lifecycle/lifecycle_node.hpp>
30#include "whisper_msgs/msg/transcription.hpp"
36 rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
43 rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
45 rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
47 rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
49 rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
51 rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
61 whisper_msgs::msg::Transcription
transcribe(
const std::vector<float> &audio);
67 struct whisper_context_params
cparams = whisper_context_default_params();
Definition whisper_base_node.hpp:38
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_configure(const rclcpp_lifecycle::State &)
Definition whisper_base_node.cpp:87
std::shared_ptr< Whisper > whisper
Definition whisper_base_node.hpp:59
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_activate(const rclcpp_lifecycle::State &)
Definition whisper_base_node.cpp:211
WhisperBaseNode()
Definition whisper_base_node.cpp:32
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_deactivate(const rclcpp_lifecycle::State &)
Definition whisper_base_node.cpp:229
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_cleanup(const rclcpp_lifecycle::State &)
Definition whisper_base_node.cpp:245
struct whisper_full_params wparams
Definition whisper_base_node.hpp:68
std::string language
Definition whisper_base_node.hpp:58
whisper_msgs::msg::Transcription transcribe(const std::vector< float > &audio)
Definition whisper_base_node.cpp:265
struct whisper_context_params cparams
Definition whisper_base_node.hpp:67
int n_processors
Definition whisper_base_node.hpp:66
std::string model
Definition whisper_base_node.hpp:64
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_shutdown(const rclcpp_lifecycle::State &)
Definition whisper_base_node.cpp:255
virtual void deactivate_ros_interfaces()
Definition whisper_base_node.hpp:55
virtual void activate_ros_interfaces()
Definition whisper_base_node.hpp:54
std::string openvino_encode_device
Definition whisper_base_node.hpp:65
Definition whisper.hpp:45
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn CallbackReturn
Definition whisper_base_node.hpp:35