This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Convert TTS to ONNX | |
Using ESPnet. | |
Test command: | |
python convert_tts2onnx.py --tts-tag espnet/kan-bayashi_ljspeech_vits | |
""" | |
import argparse | |
import logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import numpy as np | |
import torchaudio | |
import torch | |
from torch import nn | |
from speechbrain.inference.classifiers import EncoderClassifier | |
from matplotlib import pyplot as plt |