3.2.2 Array Microphone Usage Guide
Last Version: 10/09/2025
This guide explains how to set up an array microphone, install the required environment, and capture audio using the Python example program.
Clone Repository
Clone the example code repository and navigate to the NLP example directory:
git clone https://gitee.com/bianbu/spacemit-demo.git
cd spacemit-demo/examples/NLP
Install Runtime Environment
Install necessary system packages, create a Python virtual environment, and install the Python dependencies:
sudo apt install libportaudio2 libopenblas-dev python3-venv python3-pip
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Start Voice Capture Program
Run the following command to start capturing audio from the array microphone:
python 04_asr_demo_db.py
- Press Enter to begin recording.
- The program captures mono audio.
- Maximum recording duration per session is 5 seconds.