mirror of
https://github.com/wassname/TTS.git
synced 2026-10-26 12:20:32 +08:00
model path changes for server and string strip
This commit is contained in:
1 parent
5b4e1b48d9
commit
41f4d99e77
2 files changed
+5
-4
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"model_path":"/home/egolge/projects/models/May-22-2018_03_24PM-e6112f7",
|
||||
"model_path":"/home/erogol/projects/models/LJSpeech/May-22-2018_03_24PM-e6112f7",
|
||||
"model_name":"checkpoint_272976.pth.tar",
|
||||
"model_config":"config.json",
|
||||
"port": 5000,
|
||||
"port": 5002,
|
||||
"use_cuda": true
|
||||
}
|
||||
}
|
||||
@@ -53,6 +53,7 @@ class Synthesizer(object):
|
||||
for sen in text.split('.'):
|
||||
if len(sen) < 3:
|
||||
continue
|
||||
sen = sen.strip()
|
||||
sen +='.'
|
||||
print(sen)
|
||||
sen = sen.strip()
|
||||
@@ -68,4 +69,4 @@ class Synthesizer(object):
|
||||
wavs.append(wav)
|
||||
wavs.append(np.zeros(10000))
|
||||
self.save_wav(wav, out)
|
||||
return out
|
||||
return out
|
||||
Reference in new issue
Block a user