File tree Expand file tree Collapse file tree 6 files changed +14
-13
lines changed
self_supervised_learning/data_modules Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1+ The examples in this directory demonstrate applied use of the torchaudio library. They are included only for reference purposes.
2+
3+ > [ !NOTE]
4+ > ** We have transitioned TorchAudio into a
5+ > maintenance phase. Our main goals were to reduce redundancies with the rest of the
6+ > PyTorch ecosystem, make it easier to maintain, and create a version of
7+ > TorchAudio that is more tightly scoped to its strengths: processing audio
8+ > data for ML. Because of this transition, the examples included here will no longer be maintained
9+ > going forward. The scripts may not work properly as is. For hands on examples of features in the
10+ > library that * are* still supported, see the "tutorials" subdirectory. Please see
11+ > [ our community message] ( https://github.com/pytorch/audio/issues/3902 )
12+ > for more details.**
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ cmake_minimum_required(VERSION 3.5)
22
33project (libtorchaudio-cpp-example)
44
5- SET (BUILD_SOX ON CACHE BOOL "Build libsox into libtorchaudio" )
6-
7- SET (BUILD_KALDI OFF CACHE BOOL "Build Kaldi into libtorchaudio" )
85SET (BUILD_RNNT ON CACHE BOOL "Build RNN transducer into libtorchaudio" )
96SET (BUILD_TORCHAUDIO_PYTHON_EXTENSION OFF CACHE BOOL "Build Python binding" )
107
Original file line number Diff line number Diff line change 11# Libtorchaudio Examples
22
3- * [ Augmentation] ( ./augmentation )
43* [ Speech Recognition with wav2vec2.0] ( ./speech_recognition )
54
65## Build
@@ -20,8 +19,6 @@ mkdir build
2019cd build
2120cmake -GNinja \
2221 -DCMAKE_PREFIX_PATH=" $( python -c ' import torch;print(torch.utils.cmake_prefix_path)' ) " \
23- -DBUILD_SOX=ON \
24- -DBUILD_KALDI=OFF \
2522 -DBUILD_RNNT=ON \
2623 ..
2724cmake --build .
Original file line number Diff line number Diff line change @@ -11,7 +11,5 @@ cd "${build_dir}"
1111git submodule update
1212cmake -GNinja \
1313 -DCMAKE_PREFIX_PATH=" $( python -c ' import torch;print(torch.utils.cmake_prefix_path)' ) " \
14- -DBUILD_SOX=ON \
15- -DBUILD_KALDI=OFF \
1614 ..
1715cmake --build .
Original file line number Diff line number Diff line change 11# Speech Recognition with wav2vec2.0
22
3- This example demonstarates how you can use torchaudio's I/O features and models to run speech recognition in C++ application.
4-
5- ** NOTE**
6- This example uses ` "sox_io" ` backend for loading audio, which does not work on Windows. To make it work on
7- Windows, you need to replace the part of loading audio and converting it to Tensor object.
3+ This example demonstrates how you can use torchaudio's models to run speech recognition in a C++ application.
84
95## 1. Create a transcription pipeline TorchScript file
106
Original file line number Diff line number Diff line change 11from ._hubert_datamodule import HuBERTDataModule
2+ from ._wav2vec2_datamodule import Wav2Vec2DataModule
23
34__all__ = [
45 "HuBERTDataModule" ,
You can’t perform that action at this time.
0 commit comments