22 std::shared_ptr<TranscriptionDriver> transcription_driver,
AudioReader readDeviceAudio)
54 if (!transcription_result_data.success)
55 throw fp_perception_exception(transcription_result_data.error.empty() ?
"No transcription result available for "
56 "sentiment analysis." :
57 transcription_result_data.error);
59 request.
text = transcription_result_data.text;
63 result.analyzed_text = request.
text;
Definition sentiment_pipeline.hpp:17
std::shared_ptr< TranscriptionDriver > transcription_driver_
Definition sentiment_pipeline.hpp:69
SentimentPipeline(std::shared_ptr< SentimentAnalysisDriver > sentiment_driver, std::shared_ptr< TranscriptionDriver > transcription_driver, AudioReader readDeviceAudio)
Definition sentiment_pipeline.hpp:21
std::function< audio_data(const audio_buffer_request &)> AudioReader
Definition sentiment_pipeline.hpp:19
AudioReader read_device_audio_
Definition sentiment_pipeline.hpp:70
sentiment_result run(sentiment_request request)
Definition sentiment_pipeline.hpp:29
std::shared_ptr< SentimentAnalysisDriver > sentiment_driver_
Definition sentiment_pipeline.hpp:68
Definition audio_buffer.hpp:16
Definition structs.hpp:26
int duration_seconds
Definition structs.hpp:27
bool use_time_window
Definition structs.hpp:28
rclcpp::Time start_time
Definition structs.hpp:29
Struct to hold audio data.
Definition structs.hpp:16
Base class for driver exceptions.
Definition exceptions.hpp:14
Definition structs.hpp:11
bool use_device_audio
Definition structs.hpp:13
int audio_request_window
Definition structs.hpp:14
rclcpp::Time device_audio_start_time
Definition structs.hpp:16
bool use_device_audio_time_window
Definition structs.hpp:15
std::string text
Definition structs.hpp:12
Definition structs.hpp:20
Definition structs.hpp:13
bool use_device_audio_time_window
Definition structs.hpp:17
rclcpp::Time device_audio_start_time
Definition structs.hpp:18
int audio_request_window
Definition structs.hpp:16
audio_data audio
Definition structs.hpp:14
bool use_device_audio
Definition structs.hpp:15