Skip to content

shun60s/Vocal-Tube-Model2

Repository files navigation

vocal tract tube model 2

Python Class to calculate frequecny response and process reflection transmission of resonance tube.
There are two, three, four, and five tube model.

generate waveform using tube model

Draw frequency response, cross-sectional view (area), and waveform, considering glottal voice source and mouth radiation. save generated waveform as a wav file.

python main5.py --osratio [number]  

In order to reduce digitize error of tube delay time, high sampling rate is recommended. osratio means over sampling ratio. Defalut value is 4 and sampling rate of process is 192000Hz (=48000Hz x 4).

Example of five tube model: tube_5p1
figure5p1
Example of five tube model: tube_5p2
figure5p2
Example of five tube model: tube_5p3
figure5p3
Example of five tube model: tube_5p4
figure5p4
Example of five tube model: tube_5p5
figure5p5

There are above wav files in generated_waveform folder.

tube model check of frequency response

Comparison computed frequency response to white noise input frequency response using FFT analysis.

python tubecheck.py

Example of two tube model
figure1
Example of three tube model
figure2
Example of four tube model
figure3
Example of five tube model
figure4

harmonic structure in the frequency spectrum

This version introduces repeated glottal voice source to explain harmonic structure in the frequency spectrum.

python glottal.py

figurep1

License

MIT

About

Python Class to calculate frequecny response and process reflection transmission upto vocal tract 5 tube resonance model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages