From c5fa9b29c465314f5f99513999c21183bf3d95a1 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 3 May 2022 11:38:30 -0400 Subject: [PATCH] Remove unnecessary scripts --- mimic3-download.sh | 38 -------------------------------------- mimic3-server.sh | 38 -------------------------------------- mimic3.sh | 38 -------------------------------------- mimic3_tts/const.py | 4 +++- 4 files changed, 3 insertions(+), 115 deletions(-) delete mode 100755 mimic3-download.sh delete mode 100755 mimic3-server.sh delete mode 100755 mimic3.sh diff --git a/mimic3-download.sh b/mimic3-download.sh deleted file mode 100755 index 38d2a11..0000000 --- a/mimic3-download.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -# Copyright 2022 Mycroft AI Inc. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# ----------------------------------------------------------------------------- -# -# Run voice download tool. -# -set -eo pipefail - -# Directory of *this* script -this_dir="$( cd "$( dirname "$0" )" && pwd )" - -module_name='mimic3_tts' - -# Path to virtual environment -: "${venv:=${this_dir}/.venv}" - -if [ -d "${venv}" ]; then - # Activate virtual environment if available - source "${venv}/bin/activate" -fi - -PYTHONPATH="${this_dir}:${PYTHONPATH}" - -python3 -m "${module_name}.download" "$@" diff --git a/mimic3-server.sh b/mimic3-server.sh deleted file mode 100755 index 36edf81..0000000 --- a/mimic3-server.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -# Copyright 2022 Mycroft AI Inc. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# ----------------------------------------------------------------------------- -# -# Run local HTTP web server. -# -set -eo pipefail - -# Directory of *this* script -this_dir="$( cd "$( dirname "$0" )" && pwd )" - -module_name='mimic3_http' - -# Path to virtual environment -: "${venv:=${this_dir}/.venv}" - -if [ -d "${venv}" ]; then - # Activate virtual environment if available - source "${venv}/bin/activate" -fi - -PYTHONPATH="${this_dir}:${PYTHONPATH}" - -python3 -m "${module_name}" "$@" diff --git a/mimic3.sh b/mimic3.sh deleted file mode 100755 index c0665ca..0000000 --- a/mimic3.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -# Copyright 2022 Mycroft AI Inc. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# ----------------------------------------------------------------------------- -# -# Run command-line interface. -# -set -eo pipefail - -# Directory of *this* script -this_dir="$( cd "$( dirname "$0" )" && pwd )" - -module_name='mimic3_tts' - -# Path to virtual environment -: "${venv:=${this_dir}/.venv}" - -if [ -d "${venv}" ]; then - # Activate virtual environment if available - source "${venv}/bin/activate" -fi - -PYTHONPATH="${this_dir}:${PYTHONPATH}" - -python3 -m "${module_name}" "$@" diff --git a/mimic3_tts/const.py b/mimic3_tts/const.py index a55f839..4b8a48a 100644 --- a/mimic3_tts/const.py +++ b/mimic3_tts/const.py @@ -22,7 +22,9 @@ DEFAULT_LANGUAGE = "en_UK" DEFAULT_VOICES_URL_FORMAT = ( "https://github.com/MycroftAI/mimic3-voices/raw/master/voices/{lang}/{name}" ) -DEFAULT_VOICES_DOWNLOAD_DIR = Path(XDG().XDG_DATA_HOME) / "mycroft" / "mimic3" / "voices" +DEFAULT_VOICES_DOWNLOAD_DIR = ( + Path(XDG().XDG_DATA_HOME) / "mycroft" / "mimic3" / "voices" +) DEFAULT_VOLUME = 100.0 DEFAULT_RATE = 1.0