bunch of short fixes

pull/367/head
Eren Gölge 2021-03-08 14:51:27 +01:00
parent 5dcc4be560
commit 1e169a5ba5
4 changed files with 3 additions and 17 deletions

View File

@ -5,7 +5,7 @@ TF_CPP_MIN_LOG_LEVEL=3
nosetests tests -x &&\
# runtime tests
./tests/test_server_package.sh && \
./tests/test_demo_server.sh && \
./tests/test_tacotron_train.sh && \
./tests/test_glow-tts_train.sh && \
./tests/test_vocoder_gan_train.sh && \

View File

@ -1,8 +1,6 @@
#!/usr/bin/env python
import argparse
import os
import shutil
import subprocess
import sys
from distutils.version import LooseVersion
@ -20,18 +18,6 @@ if LooseVersion(sys.version) < LooseVersion("3.6") or LooseVersion(sys.version)
"but your Python version is {}".format(sys.version)
)
# parameters for wheeling server.
parser = argparse.ArgumentParser(add_help=False, allow_abbrev=False)
parser.add_argument('--checkpoint',
type=str,
help='Path to checkpoint file to embed in wheel.')
parser.add_argument('--model_config',
type=str,
help='Path to model configuration file to embed in wheel.')
args, unknown_args = parser.parse_known_args()
# Remove our arguments from argv so that setuptools doesn't see them
sys.argv = [sys.argv[0]] + unknown_args
version = '0.0.10'
cwd = os.path.dirname(os.path.abspath(__file__))

View File

@ -7,7 +7,7 @@ SERVER_PID=$!
echo 'Waiting for server...'
sleep 30
curl -o /tmp/audio.wav "http://localhost:8080/api/tts?text=synthesis%20schmynthesis"
curl -o /tmp/audio.wav "http://localhost:5002/api/tts?text=synthesis%20schmynthesis"
python -c 'import sys; import wave; print(wave.open(sys.argv[1]).getnframes())' /tmp/audio.wav
kill $SERVER_PID

View File

@ -9,7 +9,7 @@ from TTS.tts.utils.text.symbols import make_symbols, phonemes, symbols
from TTS.utils.io import load_config
class DemoServerTest(unittest.TestCase):
class SynthesizerTest(unittest.TestCase):
# pylint: disable=R0201
def _create_random_model(self):
# pylint: disable=global-statement