raspberry piを用いたリアルタイム音声処理の準備

忘備録としてraspberry piを使用した音声のリアルタイム処理に関するサイトを記しておく。

 

VNC経由でidleが起動できない場合の対処法

python - tkinter through VNC without physical display - Stack Overflow

 

Write these few lines to etc/sudoers*:

Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults    env_keep += "DISPLAY"
Defaults    env_keep += "XAUTHORITY"

And these few lines to ~/.bashrc:

if [ -z "$XAUTHORITY" ]; then
    if [ -e $HOME/.Xauthority ]; then
        export XAUTHORITY=$HOME/.Xauthority;
    fi;
fi

 

・USBマイクを使用した音声処理の環境構築

Raspberry Piで音声認識 - Qiita

 オーディオモジュールの優先順位の変更

 

raspberryPi と pyaudioで録音、音声波形処理 | 半端工作

録音用ファイルのサンプリング数を16000Hzとする。

 

PyAudioによる音声リアルタイム処理

pyqtgraph+PyAudioによるリアルタイムで音声プロット - たけし備忘録