whisper_ros: whisper.cpp for ROS 2
Loading...
Searching...
No Matches
whisper_ros::WhisperBaseNode Class Reference

#include <whisper_base_node.hpp>

Inheritance diagram for whisper_ros::WhisperBaseNode:
Collaboration diagram for whisper_ros::WhisperBaseNode:

Public Member Functions

 WhisperBaseNode ()
 
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_configure (const rclcpp_lifecycle::State &)
 
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_activate (const rclcpp_lifecycle::State &)
 
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_deactivate (const rclcpp_lifecycle::State &)
 
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_cleanup (const rclcpp_lifecycle::State &)
 
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_shutdown (const rclcpp_lifecycle::State &)
 
virtual void activate_ros_interfaces ()
 
virtual void deactivate_ros_interfaces ()
 

Protected Member Functions

whisper_msgs::msg::Transcription transcribe (const std::vector< float > &audio)
 

Protected Attributes

std::string language
 
std::shared_ptr< Whisperwhisper
 

Private Attributes

std::string model
 
std::string openvino_encode_device
 
int n_processors
 
struct whisper_context_params cparams = whisper_context_default_params()
 
struct whisper_full_params wparams
 

Constructor & Destructor Documentation

◆ WhisperBaseNode()

WhisperBaseNode::WhisperBaseNode ( )

Member Function Documentation

◆ activate_ros_interfaces()

virtual void whisper_ros::WhisperBaseNode::activate_ros_interfaces ( )
inlinevirtual

◆ deactivate_ros_interfaces()

virtual void whisper_ros::WhisperBaseNode::deactivate_ros_interfaces ( )
inlinevirtual

◆ on_activate()

rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn WhisperBaseNode::on_activate ( const rclcpp_lifecycle::State & )

◆ on_cleanup()

rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn WhisperBaseNode::on_cleanup ( const rclcpp_lifecycle::State & )

◆ on_configure()

rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn WhisperBaseNode::on_configure ( const rclcpp_lifecycle::State & )

◆ on_deactivate()

rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn WhisperBaseNode::on_deactivate ( const rclcpp_lifecycle::State & )

◆ on_shutdown()

rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn WhisperBaseNode::on_shutdown ( const rclcpp_lifecycle::State & )

◆ transcribe()

whisper_msgs::msg::Transcription WhisperBaseNode::transcribe ( const std::vector< float > & audio)
protected

Member Data Documentation

◆ cparams

struct whisper_context_params whisper_ros::WhisperBaseNode::cparams = whisper_context_default_params()
private

◆ language

std::string whisper_ros::WhisperBaseNode::language
protected

◆ model

std::string whisper_ros::WhisperBaseNode::model
private

◆ n_processors

int whisper_ros::WhisperBaseNode::n_processors
private

◆ openvino_encode_device

std::string whisper_ros::WhisperBaseNode::openvino_encode_device
private

◆ whisper

std::shared_ptr<Whisper> whisper_ros::WhisperBaseNode::whisper
protected

◆ wparams

struct whisper_full_params whisper_ros::WhisperBaseNode::wparams
private

The documentation for this class was generated from the following files: