出於好奇,想嚐鮮
pyroomacoustics package
Module contents
pyroomacoustics
- Provides
-
- Room impulse simulations via the image source model
- Simulation of sound propagation using STFT engine
- Reference implementations of popular algorithms for
- beamforming
- direction of arrival
- adaptive filtering
- etc
How to use the documentation
Documentation is available in two forms: docstrings provided with the code, and a loose standing reference guide, available from the pyroomacoustics readthedocs page.
We recommend exploring the docstrings using IPython, an advanced Python shell with TAB-completion and introspection capabilities. See below for further instructions.
The docstring examples assume that pyroomacoustics has been imported as pra:
>>> import pyroomacoustics as pra
Code snippets are indicated by three greater-than signs:
>>> x = 42 >>> x = x + 1
Use the built-in help
function to view a function’s docstring:
>>> help(pra.stft) ...
模擬 ReSpeaker 4 Mic DOA 效果?
”’ |
DOA Algorithms |
============== |
This example demonstrates how to use the DOA object to perform direction of arrival |
finding in 2D using one of several algorithms |
– MUSIC [1]_ |
– SRP-PHAT [2]_ |
– CSSM [3]_ |
– WAVES [4]_ |
– TOPS [5]_ |
– FRIDA [6]_ |
.. [1] R. Schmidt, *Multiple emitter location and signal parameter estimation*, |
IEEE Trans. Antennas Propag., Vol. 34, Num. 3, pp 276–280, 1986 |
.. [2] J. H. DiBiase, J H, *A high-accuracy, low-latency technique for talker localization |
in reverberant environments using microphone arrays*, PHD Thesis, Brown University, 2000 |
.. [3] H. Wang, M. Kaveh, *Coherent signal-subspace processing for the detection and |
estimation of angles of arrival of multiple wide-band sources*, IEEE Trans. Acoust., |
Speech, Signal Process., Vol. 33, Num. 4, pp 823–831, 1985 |
.. [4] E. D. di Claudio, R. Parisi, *WAVES: Weighted average of signal subspaces for |
robust wideband direction finding*, IEEE Trans. Signal Process., Vol. 49, Num. 10, |
2179–2191, 2001 |
.. [5] Y. Yeo-Sun, L. M. Kaplan, J. H. McClellan, *TOPS: New DOA estimator for wideband |
signals*, IEEE Trans. Signal Process., Vol. 54, Num 6., pp 1977–1989, 2006 |
.. [6] H. Pan, R. Scheibler, E. Bezzam, I. Dokmanić, and M. Vetterli, *FRIDA: |
FRI-based DOA estimation for arbitrary array layouts*, Proc. ICASSP, |
pp 3186-3190, 2017 |
In this example, we generate some random signal for a source in the far field |
and then simulate propagation using a fractional delay filter bank |
corresponding to the relative microphone delays. |
Then we perform DOA estimation and compare the errors for different algorithms |
”’ |
因此略讀方法、文件,直啃範例
然後依樣畫葫蘆
彷彿 OK !欲深入還須詳讀哩◎