// Copyright (c) 2017 Facebook Inc. (Soumith Chintala), // All rights reserved. #pragma once #include "paddlespeech/audio/src/optional/optional.hpp" #include "paddlespeech/audio/src/sox/utils.h" 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, py::array 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