MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / load_audio

Method load_audio

mlx/data/Dataset.cpp:302–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301template <class T, class B>
302T Dataset<T, B>::load_audio(
303 const std::string& ikey,
304 const std::string& prefix,
305 bool info,
306 bool fromMemory,
307 LoadAudioInfo infoType,
308 int sampleRate,
309 LoadAudioResamplingQuality resamplingQuality,
310 const std::string& info_key,
311 const std::string& okey) const {
312 return transform_(std::make_shared<op::LoadAudio>(
313 ikey,
314 prefix,
315 info,
316 fromMemory,
317 infoType,
318 sampleRate,
319 resamplingQuality,
320 info_key,
321 okey));
322}
323
324template <class T, class B>
325T Dataset<T, B>::load_audio_if(

Callers 5

load_speechcommandsFunction · 0.80
load_libritts_rFunction · 0.80
load_librispeechFunction · 0.80
mlx_data_export_datasetFunction · 0.80
iterateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected