downloadAudioFromUrl method
Future<String>
downloadAudioFromUrl({
- required String url,
- required String localPath,
- ProgressCallback? onDownloadProgress,
Downloads and processes audio from a network URL
Downloads audio from the specified URL to a local file and optionally processes it (conversion, trimming, waveform extraction).
url
- URL of the audio file to download
localPath
- Local path where the file will be saved
onDownloadProgress
- Optional callback for download progress (0.0 to 1.0)
Returns the local file path when download completes. Throws NetworkAudioException if download fails.
Implementation
Future<String> downloadAudioFromUrl({
required String url,
required String localPath,
ProgressCallback? onDownloadProgress,
}) {
throw UnimplementedError(
'downloadAudioFromUrl() has not been implemented.',
);
}