Skip to content

Commit 09bbe63

Browse files
authored
Update README.md
1 parent c064db0 commit 09bbe63

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ The main branch of this repo is reviewed on a semi-regular basis for inclusion i
1111

1212
This repo may be included in other repos as a submodule wherever the backend source code or the C/C++ API is needed.
1313

14+
## What you can find in this repo
15+
This repo contains sources of the backend of the articulatory synthesizer [VocalTractLab](https://www.vocaltractlab.de). The backend can be accessed through a C/C++ API offering convenient C-style functions to provide the most commonly used functionality (e.g. converting a gestural score file into an audio file using default synthesis settings), or as a static C++ library for full access to all objects in the backend. This repo therefore contains separate projects/targets for both the C/C++ API and the C++ static library.
16+
1417
## Getting started
1518
- Clone the current main branch:
1619
```
1720
git clone https://github.com/TUD-STKS/VocalTractLabBackend-dev
1821
```
1922
### Build using CMake (Windows, Linux, macOS)
2023
- Get the latet release of [CMake for your platform](https://cmake.org/)
21-
- Create a folder ``out``inside the cloned repository folder
24+
- Create a folder ``out`` inside the cloned repository folder
2225
- Open a shell/command prompt and navigate to ``out``
2326
- Configure the project and generate a build system:
2427
```
@@ -28,8 +31,33 @@ cmake ..
2831
```
2932
cmake --build . --config Release
3033
```
34+
This will build both the API and the static library, as well as some unit testing executables. If you are only interested in one of those, you can specify the `--target` parameter:
35+
```
36+
cmake --build . --config Release --target VocalTractLabApi
37+
```
38+
or
39+
```
40+
cmake --build . --config Release --target VocalTractLabBackend
41+
```
3142

3243
### Build using Visual Studio 2019 (Windows)
3344
- Open ``VocalTractLabApi.sln`` in the folder `build/msw`
34-
- Build the project ``VocalTractLabApi``
45+
- Build the project ``VocalTractLabApi`` or ``VocalTractLabBackend``
46+
47+
### Use the VocalTractLab backend in your own projects
48+
To include the VocalTractLab backend into your own projects, add the folder `include` from this repository to your project's include directories and link against the API or static backend library in the folder `lib`.
49+
50+
You can then include the API functions like so:
51+
52+
```cpp
53+
#include "VocalTractLabApi/VocalTractLabApi.h"
54+
```
55+
56+
C++-Objects can be included from the static backend library through their respective header:
57+
58+
```cpp
59+
#include "VocalTractLabBackend/Speaker.h" // or substitute your desired header here
60+
```
3561

62+
## How to use the VocalTractLab backend
63+
The VocalTractLab API functions are documented with extensive comments in `VocalTractLabApi.h`. Unfortunately, since they were not previously public, the classes beyond the API in the static library are not (yet) documented consistently.

0 commit comments

Comments
 (0)