Add copyright info

This commit is contained in:
Fangjun Kuang 2024-10-29 10:04:47 +08:00
parent ab883a71ec
commit 3a986335d7
13 changed files with 48 additions and 8 deletions

View File

@ -80,9 +80,6 @@ function export_onnx() {
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/data/cmvn.json
popd
curl -SL -O https://github.com/csukuangfj/models/raw/refs/heads/master/hifigan/generator_v2
curl -SL -O https://github.com/csukuangfj/models/raw/refs/heads/master/hifigan/generator_v3
./matcha/export_onnx.py \
--exp-dir ./matcha/exp \
--epoch 4000 \
@ -93,9 +90,13 @@ function export_onnx() {
if false; then
# THe CI machine does not have enough memory to run it
#
curl -SL -O https://github.com/csukuangfj/models/raw/refs/heads/master/hifigan/generator_v1
curl -SL -O https://github.com/csukuangfj/models/raw/refs/heads/master/hifigan/generator_v2
curl -SL -O https://github.com/csukuangfj/models/raw/refs/heads/master/hifigan/generator_v3
python3 ./matcha/export_onnx_hifigan.py
else
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/exp/hifigan_v2.onnx
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/exp/hifigan_v1.onnx
fi
ls -lh *.onnx
@ -103,13 +104,13 @@ function export_onnx() {
python3 ./matcha/onnx_pretrained.py \
--acoustic-model ./model-steps-6.onnx \
--vocoder ./hifigan_v2.onnx \
--vocoder ./hifigan_v1.onnx \
--tokens ./data/tokens.txt \
--input-text "how are you doing?" \
--output-wav /icefall/generated-matcha-tts-6.wav
--output-wav /icefall/generated-matcha-tts-steps-6-v1.wav
ls -lh /icefall/*.wav
soxi /icefall/generated-matcha-tts-6.wav
soxi /icefall/generated-matcha-tts-steps-6-v1.wav
}
prepare_data

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Shivam Mehta
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,3 +1,5 @@
# This file is copied from
# https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/audio.py
import numpy as np
import torch
import torch.utils.data

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# Copyright 2024 Xiaomi Corp. (authors: Fangjun Kuang)
"""
This script exports a Matcha-TTS model to ONNX.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# Copyright 2024 Xiaomi Corp. (authors: Fangjun Kuang)
import logging
from pathlib import Path

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# Copyright 2024 Xiaomi Corp. (authors: Fangjun Kuang)
import argparse
import datetime as dt

View File

@ -1,3 +1,5 @@
# This file is copied from
# https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/model.py
""" from https://github.com/jaywalnut310/glow-tts """
import numpy as np

View File

@ -0,0 +1,3 @@
# Introduction
Files in this folder are copied from
https://github.com/shivammehta25/Matcha-TTS/tree/main/matcha/models

View File

@ -1,3 +1,5 @@
# Copied from
# https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/monotonic_align/__init__.py
import numpy as np
import torch

View File

@ -1,3 +1,5 @@
# Copied from
# https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/monotonic_align/core.pyx
import numpy as np
cimport cython

View File

@ -1,3 +1,5 @@
# Copied from
# https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/monotonic_align/setup.py
from distutils.core import setup
from Cython.Build import cythonize
import numpy

View File

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright 2024 Xiaomi Corp. (authors: Fangjun Kuang)
import argparse
import datetime as dt
import logging

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2023 Xiaomi Corp. (authors: Fangjun Kuang)
# Copyright 2024 Xiaomi Corp. (authors: Fangjun Kuang)
import argparse