This GitHub repository contains useful code snippets that demonstrate how different data streams from the Meta Project Aria Glasses can be accessed and processed live.
-
Install the Project Aria Client SDK by following the instructions in the official documentation.
-
In the project directory, install the required Python packages:
pip install -r requirements.txt
This is contained in the folder stream_sound. The file stream_sound.py streams the microphone audio live from the glasses and saves them in recorded_audio.wav after the script is stopped. To use this script, run the following command in the terminal:
-
Start the data stream from the glasses in the terminal:
-
Using a USB connection to the glasses:
aria streaming start --interface usb --use-ephemeral-certs --profile profile18
-
Using a Wi-Fi connection to the glasses (DEVICE_IP can be found in the Project Aria app):
aria streaming start --interface wifi --use-ephemeral-certs --device-ip [DEVICE_IP] --profile profile18
-
-
After the connection is established, run the script:
python -m stream_sound
-
After you are done recording, stop the script with
Ctrl+C. The recorded audio will be saved inrecorded_audio.wav.
This is contained in the folder live_gaze_estimation. The file live_gaze_estimation.py streams the eye images live from the glasses and estimates the gaze direction using a pre-trained model which is supplied by Meta for Gaze Estimation from VRS files (see here). The estimated gaze is directly visualized on the RGB stream from the glasses. To use this script, run the following command in the terminal:
-
Start the data stream from the glasses in the terminal:
-
Using a USB connection to the glasses:
aria streaming start --interface usb --use-ephemeral-certs --profile profile18
-
Using a Wi-Fi connection to the glasses (DEVICE_IP can be found in the Project Aria app):
aria streaming start --interface wifi --use-ephemeral-certs --device-ip [DEVICE_IP] --profile profile18
-
-
After the connection is established, run the script:
python -m live_gaze_estimation
-
After you are done you can either stop the script by pressing q on the RGB stream window or by stopping the script with
Ctrl+C.