Fix SSML voice bug
This commit is contained in:
parent
40a74df2e6
commit
eea1f4b7b3
3 changed files with 47 additions and 2 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
.PHONY: dist
|
||||
|
||||
dist:
|
||||
cd opentts-abc && python3 setup.py sdist
|
||||
cd mimic3-tts && python3 setup.py sdist
|
||||
cd mimic3-http && python3 setup.py sdist
|
||||
mkdir -p dist
|
||||
cp opentts-abc/dist/opentts_abc-*.tar.gz dist/
|
||||
cp mimic3-tts/dist/mimic3_tts-*.tar.gz dist/
|
||||
cp mimic3-http/dist/mimic3_http-*.tar.gz dist/
|
||||
|
|
@ -310,7 +310,7 @@ class Mimic3TextToSpeechSystem(TextToSpeechSystem):
|
|||
self._results.append(MarkResult(name=name))
|
||||
|
||||
def end_utterance(self) -> typing.Iterable[BaseResult]:
|
||||
last_settings = self.settings
|
||||
last_settings: typing.Optional[Mimic3Settings] = None
|
||||
|
||||
sent_phonemes: PHONEMES_LIST_TYPE = []
|
||||
|
||||
|
|
@ -356,7 +356,7 @@ class Mimic3TextToSpeechSystem(TextToSpeechSystem):
|
|||
|
||||
audio = voice.ids_to_audio(
|
||||
sent_phoneme_ids,
|
||||
speaker=self.speaker,
|
||||
speaker=settings.speaker,
|
||||
length_scale=settings.length_scale,
|
||||
noise_scale=settings.noise_scale,
|
||||
noise_w=settings.noise_w,
|
||||
|
|
|
|||
20
mimic3-tts/run.sh
Executable file
20
mimic3-tts/run.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
# Directory of *this* script
|
||||
this_dir="$( cd "$( dirname "$0" )" && pwd )"
|
||||
|
||||
# Kebab to snake case
|
||||
module_name="$(basename "${this_dir}" | sed -e 's/-/_/g')"
|
||||
src_dir="${this_dir}/${module_name}"
|
||||
|
||||
# Path to virtual environment
|
||||
: "${venv:=${this_dir}/.venv}"
|
||||
|
||||
if [ -d "${venv}" ]; then
|
||||
# Activate virtual environment if available
|
||||
source "${venv}/bin/activate"
|
||||
fi
|
||||
|
||||
export PYTHONPATH="${this_dir}"
|
||||
python3 -m "${module_name}" "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue