@@ -18,6 +18,17 @@ static auto registerTensorSignal =
1818 .def(" get_sample_rate" , &sox_utils::TensorSignal::getSampleRate)
1919 .def(" get_channels_first" , &sox_utils::TensorSignal::getChannelsFirst);
2020
21+ static auto registerSetSoxOptions =
22+ torch::RegisterOperators ()
23+ .op(" torchaudio::sox_utils_set_seed" , &sox_utils::set_seed)
24+ .op(" torchaudio::sox_utils_set_verbosity" , &sox_utils::set_verbosity)
25+ .op(" torchaudio::sox_utils_set_use_threads" ,
26+ &sox_utils::set_use_threads)
27+ .op(" torchaudio::sox_utils_set_buffer_size" ,
28+ &sox_utils::set_buffer_size)
29+ .op(" torchaudio::sox_utils_list_effects" , &sox_utils::list_effects)
30+ .op(" torchaudio::sox_utils_list_formats" , &sox_utils::list_formats);
31+
2132// //////////////////////////////////////////////////////////////////////////////
2233// sox_io.h
2334// //////////////////////////////////////////////////////////////////////////////
@@ -58,7 +69,6 @@ static auto registerSoxEffects =
5869 &sox_effects::initialize_sox_effects)
5970 .op(" torchaudio::sox_effects_shutdown_sox_effects" ,
6071 &sox_effects::shutdown_sox_effects)
61- .op(" torchaudio::sox_effects_list_effects" , &sox_effects::list_effects)
6272 .op(torch::RegisterOperators::options()
6373 .schema(
6474 " torchaudio::sox_effects_apply_effects_tensor(__torch__.torch.classes.torchaudio.TensorSignal input_signal, str[][] effects) -> __torch__.torch.classes.torchaudio.TensorSignal output_signal" )
0 commit comments