Skip to content

1. Based on Linux Platform

Note

Please follow the steps below in order.

▫️Environment Installation

shell
sudo apt-get install git gcc make python3 python3-pip python3-numpy ffmpeg libopus0 libopus-dev

▫️Clone Repository

shell
git clone https://gitee.com/Ai-Thinker-Open/aipi-palchatv1.git
Example after cloning:

alt text

▫️Run Environment Setup Script

  • Enter the SDK directory
shell
cd aipi-palchatv1
  • Run the script
shell
./prebuild-check.sh
Example after installation:

alt text

▫️Build Test

shell
make -j
Example after build:

alt text

2. Windows Platform

❤️Tip

It is recommended to use WSL (Windows Subsystem for Linux) for development.

▫️Install Linux Subsystem

Run PowerShell as administrator. Use the following command in PowerShell to install the Linux subsystem:

shell
wsl --install
Example after installation:

alt text

▫️Restart your computer (remember to save your work)

▫️Install Ubuntu 20.04

Hold shift + right click to reopen PowerShell, then run the following command to install Ubuntu 20.04:

shell
 wsl --install -d Ubuntu-20.04
Example after installation, follow the prompts to create a username and password:

alt text

▫️Install WSL Integration in VSCode

Search for WSL in the VSCode extensions and install it, as shown below:

Click to expand:

alt text

▫️Open WSL in VSCode

In the VSCode search bar, enter: >WSL and select WSL: Connect to WSL, as shown below:

Click to expand:

alt text

❤️When connecting to WSL for the first time, VSCode Server will be downloaded. Make sure your network is stable. Example of a successful connection is shown below:

alt text

▫️Change Software Sources

  • Use the terminal to run the following command:
shell
sudo vi /etc/apt/sources.list
  • Replace all content with one of the following source addresses:
Tsinghua Source: ubuntu20.04
shell
# The following security update sources include both official and mirror site configurations. Modify comments as needed.
# Source mirrors are commented out by default to speed up apt update. Uncomment if needed.
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

#deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
Aliyun Source: ubuntu20.04
shell
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

#deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
#deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
USTC Source: ubuntu20.04
shell
# Source repositories are commented out by default. Uncomment if needed.

deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
#deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
#deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
#deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
#deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse

▫️Update Sources

  • Update sources
shell
sudo apt update
  • Upgrade software
shell
sudo apt upgrade

▫️Install Dependencies

shell
sudo apt-get install git gcc make python3 python3-pip

▫️Clone Repository

Please start from Clone Repository

Released under the MIT License.