The Microphone Node package is responsible for capturing audio data from a microphone and publishing it to a ROS topic. This package is designed to work seamlessly with other speech processing nodes in the TIAGo robot's speech recognition pipeline.
- Audio Capture: Captures audio data from a specified microphone device.
- ROS Integration: Publishes audio data to a ROS topic for use by other nodes.
- ROS version: Noetic
- Dependencies:
sudo apt-get install ros-noetic-audio-common
cd ~/<your_workspace>/src
git clone https://github.com/certafonso/microphone_node.git
Navigate to the cloned repository and install the required dependencies:
cd microphone_node
pip install -r requirements.txt
Navigate to your catkin workspace and build the package:
cd ~/<your_workspace>
catkin build
After building, source the workspace to update the environment:
source ~/<your_workspace>/devel/setup.bash
To launch the microphone node, use the following command:
roslaunch microphone_node microphone_node.launch
The launch file microphone_node.launch
accepts several arguments to customize the behavior of the microphone node:
microphone_device
: Specifies the microphone device to be used. Default is"default"
which will use the default microphone of the computer.