src/demo/noise_cancellation_system.hpp Source File#

Demo: src/demo/noise_cancellation_system.hpp Source File
Demo
noise_cancellation_system.hpp
1#ifndef NOISE_CANCELLATION_SYSTEM_H
2#define NOISE_CANCELLATION_SYSTEM_H
3
4#include <string>
5#include <vector>
6
7namespace demo {
8
9 // Classes
10
16 class Microphone {
17 public:
18 std::string position;
19 std::vector<double> audioSignals;
20 };
21
40 public:
50 void receiveMicrophoneInput(const std::vector<Microphone>& microphones);
51
61 void analyzeAudioSignals(const std::vector<double>& audioSignals);
62
72 void generateAntiNoiseSignals(const std::vector<std::string>& noiseSources);
73
83 void adjustAntiNoiseSignals(const std::string& noiseCharacteristics);
84
95 void deliverAntiNoiseSignals(const std::vector<double>& antiNoiseSignals);
96 };
97
98} // namespace demo
99
100#endif // NOISE_CANCELLATION_SYSTEM_H
Microphone data structure.
Definition noise_cancellation_system.hpp:16
std::vector< double > audioSignals
Definition noise_cancellation_system.hpp:19
std::string position
Definition noise_cancellation_system.hpp:18
Noise Cancellation System software component.
Definition noise_cancellation_system.hpp:39
void generateAntiNoiseSignals(const std::vector< std::string > &noiseSources)
Generates anti-noise signals to counteract the identified noise sources.
void adjustAntiNoiseSignals(const std::string &noiseCharacteristics)
Adjusts the anti-noise signals in real-time to match the characteristics of the unwanted noise.
void receiveMicrophoneInput(const std::vector< Microphone > &microphones)
Receives input from microphones strategically placed inside the cabin.
void analyzeAudioSignals(const std::vector< double > &audioSignals)
Analyzes the captured audio signals to identify unwanted noise sources.
void deliverAntiNoiseSignals(const std::vector< double > &antiNoiseSignals)
Integrates with the vehicle's audio system to deliver the anti-noise signals to the cabin speakers.