hms-audio-editor-demo icon indicating copy to clipboard operation
hms-audio-editor-demo copied to clipboard

HAELocalAudioSeparationFile initialization

Open Juanjo3299 opened this issue 2 years ago • 1 comments

Hello, I am using the HAELocalAudioSeparationFile api, but I noticed that, like the HAESpaceRenderFile api, a data download process is carried out, but in the HAELocalAudioSeparationFile api it does not know when the download of said data is finished and it would be fine if it had a DownloadCallback to see if it was initialized correctly. With that, you could prevent executing an operation without it being correctly initialized.

Something like that: HAELocalAudioSeparationFile val = new...; val.initEngine(DownloadCallback callback)

Juanjo3299 avatar Jan 22 '23 07:01 Juanjo3299

@Juanjo3299 Dear developer, At present, our model download operation is handled in the AudioDepartionCallBack callback of the startSeparationTask interface. The model will only be downloaded once. After the download is completed, the model will not be downloaded again. The initialization is successful when the startSeparationTask interface is called and the task is successfully started. AudioDepartionCallBack interface, please refer to the following link: https://developer.huawei.com/consumer/en/doc/development/Media-References/audioseparationcallback-0000001190927067

xuxiapu avatar Jan 29 '23 07:01 xuxiapu