音質を客観評価する際の指標の1つにPESQ(Perceptual Evaluation of Speech Quality)がある.
Pythonで実装した方がいた.
当方の環境はUbuntu 22.04.3 LTS (Jammy Jellyfish) であり,Pythonのバージョンは3.10.2である.
pip経由のインストールを試みると以下のエラーに出会った.
pesq/cypesq.c:6:10: fatal error: Python.h: そのようなファイルやディレクトリはありません 6 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
以下のコマンドを実行したあとならば,無事にインストールできた.
sudo apt install python3.10-dev