Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
waysolong
/
text_to_speech
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f5b630a
text_to_speech
/
mtts
/
utils
/
utils.py
wuxulong19950206
First model version
14d1720
about 1 year ago
raw
Copy download link
history
blame
Safe
188 Bytes
import
matplotlib.pyplot
as
plt
import
numpy
as
np
def
save_image
(
mel1, mel2, name
):
mel = np.concatenate([mel1, mel2],
1
)
plt.imshow(mel.T)
plt.show()
plt.savefig(name)