Comments (10)
SherpaOnnxOfflineTtsConfig config;
memset(&config, 0, sizeof(config);
Please add memset
to zero initialize the struct.
Please see also
from sherpa-onnx.
Thank you very much! Is there any explanation of parameters in TTS? I have read the document of this information is relatively small, do I not find the place?
from sherpa-onnx.
If you use the C++ binary, e.g.,
./build/bin/sherpa-onnx-offline-tts --help
you would see the help message of each member variable of the struct.
from sherpa-onnx.
log:
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx\c-api\c-api.cc:SherpaOnnxCreateOfflineTts:940 OfflineTtsConfig(model=OfflineTts
ModelConfig(vits=OfflineTtsVitsModelConfig(model="./vits-melo-tts-zh_en/model.onnx", lexicon="./vits-melo-tts-zh_en/lexi
con.txt", tokens="./vits-melo-tts-zh_en/tokens.txt", data_dir="", dict_dir="./vits-melo-tts-zh_en/dict", noise_scale=0.6
67, noise_scale_w=0.8, length_scale=1), num_threads=1, debug=True, provider="cpu"), rule_fsts="./vits-melo-tts-zh_en/dat
e.fst,./vits-melo-tts-zh_en/number.fst", rule_fars="", max_num_sentences=2)
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx\csrc\offline-tts-vits-model.cc:Init:79 ---vits model---
version=2
model_type=melo-vits
jieba=1
url=https://github.com/myshell-ai/MeloTTS
comment=melo
language=Chinese + English
add_blank=1
n_speakers=1
sample_rate=44100
bert_dim=1024
ja_bert_dim=768
speaker_id=1
lang_id=3
tone_start=0
license=MIT license
description=MeloTTS is a high-quality multi-lingual text-to-speech library by MyShell.ai
----------input names----------
0 x
1 x_lengths
2 tones
3 sid
4 noise_scale
5 length_scale
6 noise_scale_w
----------output names----------
0 y
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx/csrc/offline-tts-vits-impl.h:OfflineTtsVitsImpl:48 rule fst: ./vits-melo-tts-zh
_en/date.fst
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx/csrc/offline-tts-vits-impl.h:OfflineTtsVitsImpl:48 rule fst: ./vits-melo-tts-zh
_en/number.fst
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx/csrc/offline-tts-vits-impl.h:Generate:165 Raw text: hello world,你好世界!This i
s a test of the speech synthesis system.
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx/csrc/offline-tts-vits-impl.h:Generate:172 After normalizing: hello world,你好世
界!This is a test of the speech synthesis system.
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx/csrc/offline-tts-vits-impl.h:Generate:172 After normalizing: hello world,你好世
界!This is a test of the speech synthesis system.
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx\csrc\jieba-lexicon.cc:ConvertTextToTokenIds:77 input text: hello world,你好世界
!This is a test of the speech synthesis system.
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx\csrc\jieba-lexicon.cc:ConvertTextToTokenIds:78 after replacing punctuations: he
llo world,你好世界!This is a test of the speech synthesis system。
D:\a\sherpa-onnx\sherpa-onnx\sherpa-onnx\csrc\jieba-lexicon.cc:ConvertTextToTokenIds:87 after jieba processing: hello_ _
world_,_你好_世界_!_This_ _is_ _a_ _test_ _of_ _the_ _speech_ _synthesis_ _system_.
code:
tts = SherpaOnnxCreateOfflineTts(&config);
if (tts == nullptr) {
std::cerr << "Failed to initialize TTS engine." << std::endl;
return;
}
const std::string text = "hello world,你好世界!This is a test of the speech synthesis system.";
int32_t sid = 0;
const char* filename =_strdup("./x64/Release/generated.wav");
const SherpaOnnxGeneratedAudio* audio = SherpaOnnxOfflineTtsGenerate(tts, text.c_str(), sid, 1.0);
I followed the sample code and ran it, reporting errors as above. Do you have time to take a look?
from sherpa-onnx.
Please update your sherpa-onnx to the latest master, re-build sherpa-onnx, and re-try.
from sherpa-onnx.
Does it work for you now?
from sherpa-onnx.
I downloaded and compiled the latest project and still reported this error
from sherpa-onnx.
Please show
git log
to verify the version of your sherpa-onnx
and please tell us how you build sherpa-onnx and post the build logs.
from sherpa-onnx.
Thank you very much! The latest version can run.
from sherpa-onnx.
Thank you very much! The latest version can run.
Great!
from sherpa-onnx.
Related Issues (20)
- [FR][TTS][Android]Fibo split HOT 7
- [Help wanted] Add various language bindings for online punctuation models HOT 2
- Call KWS and ASR HOT 5
- Python library deletions HOT 3
- kws 长时间不唤醒之后的第一次唤醒不响应,需要第二次才会唤醒成功,请看看是什么问题呢? 中英文都有同样问题。有没有参数可以设置 HOT 2
- attention_dims does not exist in the metadata HOT 1
- 关键词识别模型加载时间需要30秒!如何优化 ? Keyword spotter model loading time takes 30 seconds! How to optimize? HOT 1
- Whisper recognizer creation is very slow HOT 2
- Whisper medium error with DirectML HOT 1
- Is org.k2fsa.sherpa.onnx v1.10.17 supporting Android Xamarin? HOT 3
- Add Olive whisper
- Publish on accrescent HOT 5
- wasm kws 报错 HOT 24
- is it possible to have realtime keyword spotting in flutter HOT 5
- How can I use japanese as the language for keyword spotting HOT 2
- build-android-armv7-eabi.sh "Optimization level must be between 0 and 3" HOT 2
- offline model ,how do I configure the device id? HOT 1
- [Feature Request] Add support to onnxruntime-wasm-simd-threaded for better performance in TTS HOT 1
- [BUG] The herpa-onnx-wasm-main-asr.js has serious errors HOT 5
- Running TTS Engine On Node.js Without Saving Files On Server, Auto Delete Temp File Once IT Generated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherpa-onnx.