//Copyright (c) 2017 Facebook Inc. (Soumith Chintala), //All rights reserved. #ifndef PADDLEAUDIO_SOX_IO_H #define PADDLEAUDIO_SOX_IO_H // #include "sox/utils.h" #include "optional/optional.hpp" namespace paddleaudio { namespace sox_io { auto get_effects( const tl::optional& frame_offset, const tl::optional& num_frames) -> std::vector>; using MetaDataTuple = std::tuple; tl::optional get_info_file( const std::string& path, const tl::optional& format); tl::optional> load_audio_file( const std::string& path, const tl::optional& frame_offset, const tl::optional& num_frames, tl::optional normalize, tl::optional channels_first, const tl::optional& format); void save_audio_file( const std::string& path, torch::Tensor tensor, int64_t sample_rate, bool channels_first, tl::optional compression, tl::optional format, tl::optional encoding, tl::optional bits_per_sample); } // namespace sox_io } // namespace paddleaudio #endif