README.md 546 Bytes
Newer Older
moto's avatar
moto committed
1
2
3
4
5
6
7
8
9
10
11
# Example usage: libtorchaudio

This example demonstrates how you can use torchaudio's I/O features in C++ application, in addition to PyTorch's operations.

To try this example, simply run `./run.sh`. This script will

1. Create an audio preprocessing pipeline with TorchScript and dump it to a file.
2. Build the application using `libtorch` and `libtorchaudio`.
3. Execute the preprocessing pipeline on an example audio.

The detail of the preprocessing pipeline can be found in [`create_jittable_pipeline.py`](./create_jittable_pipeline.py).