Fixed the C api calls and created the TTS project file (#1324)

Co-authored-by: Michael Twohey <mtwohey@americanambulance.com>
This commit is contained in:
Michael Twohey
2024-09-07 08:25:02 -07:00
committed by GitHub
parent 888f74bf3c
commit b409b0a958
6 changed files with 54 additions and 8 deletions

View File

@@ -14,9 +14,13 @@ internal class Program
provider = "cpu",
vits = new SherpaOnnxOfflineTtsVitsModelConfig
{
lexicon = "vits-zh-aishell3/lexicon.txt",
model = "vits-zh-aishell3/vits-aishell3.onnx",
tokens = "vits-zh-aishell3/tokens.txt",
//lexicon = "vits-zh-aishell3/lexicon.txt",
//model = "vits-zh-aishell3/vits-aishell3.onnx",
//tokens = "vits-zh-aishell3/tokens.txt",
model = @"C:\Services\Sherpa\model.onnx",
lexicon = "",
tokens = @"C:\Services\Sherpa\tokens.txt",
data_dir = @"C:\Services\Sherpa\espeak-ng-data",
noise_scale = 0.667f,
noise_scale_w = 0.8f,