-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2327a9
commit 590f686
Showing
10 changed files
with
106 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.18) | ||
|
||
project(babylon_example) | ||
project(example_cpp) | ||
|
||
add_executable(babylon_example main.cpp) | ||
add_executable(example_cpp main.cpp) | ||
|
||
target_link_libraries(babylon_example babylon) | ||
target_link_libraries(example_cpp babylon) | ||
|
||
project(example_c) | ||
|
||
add_executable(example_c main.c) | ||
|
||
target_link_libraries(example_c babylon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "babylon.h" | ||
|
||
int main(int argc, char** argv) { | ||
if (argc < 2) { | ||
return 1; | ||
} | ||
|
||
babylon_g2p_options_t options = { | ||
.language = "en_us", | ||
.use_dictionaries = 1, | ||
.use_punctuation = 1 | ||
}; | ||
|
||
babylon_g2p_init("./models/deep_phonemizer.onnx", options); | ||
|
||
babylon_tts_init("./models/curie.onnx"); | ||
|
||
babylon_tts(argv[1], "path/to/output.wav"); | ||
|
||
babylon_tts_free(); | ||
|
||
babylon_g2p_free(); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters