フィルターのクリア

change audiolabeler data source

1 回表示 (過去 30 日間)
Soo Bin Moon
Soo Bin Moon 2022 年 1 月 13 日
コメント済み: Soo Bin Moon 2022 年 2 月 4 日
Hello,
I want to use ROI label data of audio lableled by my predecessor. The data source does not match because the operating system of the computer that received the predecessor's labeling data is different, I can't use data. Is there any way to change the data source?
Error using
signalwavelet.internal.labeling.LabeledSignalSetBase/set.Source (line 921)
Unable to set the read-only property 'Source'. Use the addMembers, and removeMembers methods to modify the data source.
As shown in the error message, I tried to use addMembers and removeMembers, but the problem is that only audiodatastore can be used as an argument of addMembers, and only data source cannot be changed arbitrarily.
Thank you so much for your time.

採用された回答

Frantz Bouchereau
Frantz Bouchereau 2022 年 1 月 18 日
Hello Soo,
A fix is on the way (MATLAB R2022a) to enable specifying alternate file system roots of a datastore inside a labeledSignalSet object, this is what you need to specify your new data paths. In the meantime a workaround is to create a new labeledSignalSet with a datastore pointing to your file paths and to copy the labels from the predecessor labeled set into the new one.
I have attached a function newFromLegacyLSS.m that you can use to convert your legacy labeled set into a new one.
Hope this helps.
  1 件のコメント
Soo Bin Moon
Soo Bin Moon 2022 年 2 月 4 日
Thanks for the help! I have successfully changed the path using the attached file.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by