Skip to content

luvwinnie/real_time_vocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time Vocoder

Information/説明

This is a real-time vocoder created with PyQtGraph and PyQt5. The Vocoder algorithm is used with the WORLD python wrapper.

The right widget of GUI is used to modify the fundamental frequency f0 parameter by multiplying a constant value which uses numerator constant a divided by denominator constant b which will be the formula as below. The Left widget is a view to plotting the raw wave at the bottom with respective spectrogram at the top.

The program is built with fman build system package management system.

これはWORLD音声処理のアルゴリズム、pythonのwrapper,PyWorldを用いて、PyQtGraphまたはPyQt5でGUIを作成し、リアルタイムで音声を録音し、音声合成処理を行い、出力するソフトウェアである。以下のGUIのように左側は音声の生波形とそのスペクトラムをプロットするガジェットであり、右側のガジェットは基本周波数f0を調整するためのものである。f0を調整するためには定数を掛け算するが、その係数は分子(numerator)a割る分母(denominator)bで計算されます。式は以下の様になる。

このプログラムはfman build systemのパッケージ管理システムで作成されています。

screen shot 2019-01-17 at 23 29 54

Requirements

The software is tested in Ubuntu 18.04LTS and MacOS Mojave(10.14.2) with python3. You need to install PyQt5, pyqtgraph, PyAudio, pyworld in order to run the program. Install the required package with the following command.

このソフトウェアはUbuntu 18.04LTSとMacOS Mojave(10.14.2)の環境でpython3でテスト済みです。 ソフトウェアを起動するにはPyQt5, pyqtgraph, PyAudio, pyworldをインストールする必要があります。 これらの必要なパッケージは以下のコマンドでインストールされます。

Ubuntu 18.04LTS

$ pip3 install virtualenv
$ virtualenv --no-site-package real-time-vocoder
$ source real-time-vocoder/bin/activate
$ pip3 install --no-cache-dir -r requirements.txt

MacOS Mojave(10.14.2)/XCode 10.1

$ pip3 install virtualenv
$ virtualenv --no-site-package real-time-vocoder
$ source real-time-vocoder/bin/activate
$ export CC=clang;export CXX=clang++;
$ pip3 install --no-cache-dir -r requirements.txt

Required Package/必要なパッケージ

boto3==1.9.81
botocore==1.12.81
Cython==0.29.2
docutils==0.14
fbs==0.6.6
jmespath==0.9.3
numpy==1.16.0
PyAudio==0.2.11
PyQt5==5.11.3
PyQt5-sip==4.19.13
pyqtgraph==0.10.0
python-dateutil==2.7.5
pyworld==0.2.8
s3transfer==0.1.13
six==1.12.0
urllib3==1.24.1

Run the Program/プログラムの実行

Once you have done the installation of required packages, please plug in your mic and phone and change the directory to real_time_vocoder and run the following command.

以上のパッケージをインストールし終わりましたら、マイクとヘッドホンなどを接続し、 ディレクトリーをreal_time_vocoderまで移動し、以下のコマンドで実行してください。

$ pwd
/Users/[username]/real_time_vocoder
$ cd real_time_vocoder
$ fbs run

CAUTION/注意

Please make sure you are plug in the headphone earphone to listen the sound. If you use the laptop speaker, it will cause the howling effect.

必ずヘッドホンやイヤホンを付けて聞いてください。ノートパソコンなどのスピーカで出力すると、 ハウンリングが起こります。

License

GPL v3

Contributors

luvwinnie

Reference

About

Real time vocoder with pyqtgraph gui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages