フォーラムへの返信
-
投稿者投稿
-
匿名
参加者返事が遅くなり申し訳ありません。
また、ご回答ありがとうございます。写真の通りに確認しましたが、上手くいきませんでした。
代わりに別のマイクアレイを使って試してみたところ無事解決しました。ありがとうございました。
匿名
参加者お問い合わせありがとうございます。
> どこかで伝達関数ファイルが公開されているようならそれについても教えていただけると幸いです。
製造元(*1)にお問い合わせ頂くのが一番ですが、どのような条件で作成されたものか分からなかったり公開自体をしていない可能性が高く、ご自身で作成して頂くのが確実かと思われます。
*1) アルデバランロボティクスは、2016年5月よりソフトバンクロボティクスに名称が変更された様です。HARKで使用する伝達関数ファイルはHARKTOOL5で作成が可能です。HARKTOOL5のドキュメントにつきましては下記のURLをご参照ください。
https://www.hark.jp/document/packages/harktool5-gui-en/index.html (English Ver.)
https://www.hark.jp/document/packages/harktool5-gui-ja/index.html (日本語版)伝達関数の作成方法として実測ベースと幾何計算ベースの2通り御座いますが、実測ベースの伝達関数の作成方法については下記のURLから動画で確認する事が出来ます。
幾何計算ベースの場合、マイクアレイの正確なマイク配置が分かっていれば作成する事が可能(*2)です。もし、製造元からサイズ入りのCAD図面や仕様などが入手できる場合は、TSP収録を行わず幾何計算で作成する事も可能となります。
*2) HARKTOOL5上でマイクの配置と音源の配置を与える事で計算されます。マイク座標が自動生成出来る配置ではない場合、個数だけ合わせて頂きEditで個々のマイク座標を修正する事で任意のマイク配置を指定する事が可能です。下記に幾何計算ベース/実測ベースでの伝達関数作成方法のドキュメントが御座いますので、もし宜しければ併せてご確認ください。
> NAOの伝達関数の作成時のノウハウについてご教授いただきたいです。
伝達関数ファイルの作成上の主な注意点などは動画内の説明やドキュメント内の記述に御座います。
また、Forum上では伝達関数作成についての疑問点などについても回答させて頂いておりますので、Forumの検索機能などをご活用頂ければ幸いです。
例として、下記は実測ベースの伝達関数作成時における適切なTSPの収録音量について回答しております。
https://hark.jp/forums/topic/generating-transfer-function/以上、よろしくお願いいたします。
匿名
参加者解決しました。
ADVANCEの値をLENGTHと同じ値にしたところ正しく録音できました。
失礼しました。匿名
参加者補足です。
wavファイルから音声データの取得をmultichannel_wav_reader.pyにて行なっています。
その後、HARKへの送信をmultichannel_wav_reader.cppにて行なっております。
(pythonで行うとエラーが起きたためこのような形になっています。)匿名
参加者お問い合わせありがとうございます。
> どういった改造を施せば可能となるのか教えていただけると幸いです。
クックブックに古い記述が残っていたようです。
の HARK2.1.0 更新履歴で記述されているようにコード上は既に3D定位/分離対応済みとなっております。該当する記述は下記の部分です。
- NewFeatures
- Released HarkTool5. HarkTool5 is a platform-independent WEB-based generating transfer function tools. This tool has the same features as conventional HarkTool4 with 3D support.
- Released libharkio3. libharkio3 was designed for file I/O format unification and the consolidation of the matrix operation code etc.
HARK 1.2.0 から HARK 2.0.x までの LocalizeMUSIC では、3次元座標に対応しているものの MUSICスペクトルのピーク探索が1次元的に行われていましたが、 HARK 2.1.0 以降は libharkio3 による新しい伝達関数フォーマットで近傍情報を保持出来るように再設計され、その近傍情報を元に3次元空間における局所最大でピーク探索を行うように変更されています。近傍とみなす範囲は伝達関数の作成時にHARKTool5の設定で変更できます。
そのため、方位角/仰角/距離の異なる音源位置からの伝達関数を準備して頂くことで空間内の位置座標を得る事が可能です。注意点として、マイクアレイの各マイクが得たい位置に対して異なる位置に並んでいなければ高い精度が出ない事です。
サポートハードウェアであるTAMAGO-03を例に挙げると水平面上に円形配置されているため方位角に対して高い精度が出ますが、異なる高さにマイクが無いため仰角方向の精度は出しにくくなります。仰角方向で精度を出すためには例えばマイク配置を2段や3段の円形に配置するような工夫が必要となります。
yoshi様が希望される距離の測定はその点から考慮するとマイク配置のみで解決しようとすると難しいですが、3点測量などの手法を併用する事で比較的容易に算出する事が可能です。具体的な例を挙げるとマイクアレイを2セット用意し、各LocalizeMUSICの定位結果を用いて3点測量で距離を推定する等です。
なお、複数の定位結果から3点測量を行って出力するコードはHARK-Pythonを用いる事により、C++でノードを書いてコンパイルするといった手間なくHARK内の処理で完結させることが出来ます。
定位結果を外部に送るノード(HarkDataStreamSender)もありますので、外部で定位結果を受け取っているのであれば各マイクアレイ用に2つのネットワークファイルを起動して外部で2つの結果を受信して推定処理を行うという手段でも良いと思われます。以上、ご参考になれば幸いです。
匿名
参加者お問い合わせありがとうございます。
HARKサポートチームです。
添付画像を拝見したところ、
CHANNEL_COUNTを1、SAMPLING_RATEを16000 と設定されているようですが
ご使用のマイクデバイスは1ch、16kHzに対応しておりますでしょうか?
マイクデバイスの対応しているチャンネル数、サンプリングレートは
デバイスのプロパティから確認できます。
こちらで添付しました画像を例にしますと、
以下のように設定します。CHANNEL_COUNT:2
SAMPLING_RATE:48000
DEVICE :Realtek(R) Audioお手数ですが、今一度マイクデバイスの設定をご確認いただけますでしょうか。
以上、よろしくお願いいたします。
匿名
参加者Hi,
batchflow shouold have been installed and configured during installation.
The file is located at: C:\tools\Anaconda3\Scripts\batchflow.exe
First, please check if the file exists in the directory that I indicated above. If it does not exist, then perhaps you might consider doing a re-install using the “Custom” install option as indicated here: https://www.hark.jp/document/hark-document-en/sect0019.html, and make sure to check HARK and HARK-Python.
If it does exist, then you might consider adding the C:\tools\Anaconda3\Scripts\ in your %PATH% environment variable. Right click on This PC -> Properties -> Advanced System Settings -> Advanced -> Environment Variables. Then add the C:\tools\Anaconda3\Scripts\ to the PATH environment variable for your user.
Please let me know how it goes. If you still encounter problems, kindly post the details here.
Cheers,
HARK Support Team匿名
参加者Hi Earl,
I DO thank you and your team! It would be very appreciated if the server receive data.
Thank you.
Kohira匿名
参加者Hi kohira,
I built svr4hark.cpp and ran the network and I was able to reproduce your issue – it can accept() successfully but no data is coming in. I checked the source code and it looks to me that there is nothing wrong with it. I think that no data was being sent from the HarkDataStreamSender node.
I will review the network file with the team, and check why no data is being sent to the server.
Cheers,
Earl匿名
参加者Try to upload as zip file.
匿名
参加者Hi,
It is very appreciated if you point out wrong portion.
Attached are server for HARK and client for testing the server. I am using Visual Studio 2019.
Thank you.
匿名
参加者Hi,
Can you also share the source code of the server? I would like to check the source code and at the same time replicate the problem that you described.
Cheers,
HARK Support Team匿名
参加者Hi,
I attached an network file, in which I place HarkDataStreamSender in sub_separation to send data to external server. And version is 3.0.0.
Thank you.
Kohira匿名
参加者Thanks for the fast reply. Right now I am only interested in localization. I believe that even before you use the MultiFFT node in a standard localization network there has to be some sort of low-pass filtering. Otherwise the real-time spectrum coming out of the MultiFFT node is corrupted by aliasing.
Paul
EDIT: I just realized my mistake. Of course the relatively small sampling frequency of 16 kHz will always introduce a small amount of aliasing into the signal. It makes absolutely no sense asking for a filter AFTER the audio has been recorded.
匿名
参加者Hi Paul,
Yes, HARK can perform low-pass filtering.
An example would be GHDSS (https://www.hark.jp/document/3.0.0/hark-document-en/subsec-GHDSS.html). For the GHDSS node, you can adjust the lower bound frequency and the upper bound frequency during sound separation. Depending on your need, there are also other HARK nodes that can perform such filtering (see documentation).
If my reply seems a bit off, please share more details on what you want to achieve so that I can be of better help.
Best Regards,
HARK Support Team -
投稿者投稿

