Skip to content

Commit

Permalink
updated demo model links
Browse files Browse the repository at this point in the history
  • Loading branch information
justachetan committed Dec 15, 2023
1 parent 809401d commit 1a9df78
Showing 1 changed file with 50 additions and 52 deletions.
102 changes: 50 additions & 52 deletions Demo_DL_Based_Emotional_TTS.ipynb
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Demo - DL Based Emotional TTS",
"provenance": [],
"collapsed_sections": [],
"include_colab_link": true
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/Emotional-Text-to-Speech/dl-for-emo-tts/blob/master/Demo_DL_Based_Emotional_TTS.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
Expand All @@ -28,8 +13,8 @@
{
"cell_type": "markdown",
"metadata": {
"id": "f9ds3NJZ5T92",
"colab_type": "text"
"colab_type": "text",
"id": "f9ds3NJZ5T92"
},
"source": [
"# DL Based Emotional Text to Speech\n",
Expand Down Expand Up @@ -64,11 +49,13 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "V4d2LXHbC-Es",
"colab": {},
"colab_type": "code",
"colab": {}
"id": "V4d2LXHbC-Es"
},
"outputs": [],
"source": [
"! git clone https://github.com/Emotional-Text-to-Speech/pytorch-dc-tts\n",
"! git clone --recursive https://github.com/Emotional-Text-to-Speech/tacotron_pytorch.git\n",
Expand All @@ -78,33 +65,31 @@
"! mkdir trained_models\n",
"\n",
"import gdown\n",
"url = 'https://drive.google.com/uc?id=1rmhtEl3N3kAfnQM6J0vDGSCCHlHLK6kw'\n",
"url = 'https://drive.google.com/uc?id=1QDqQ28-9HKwbk-tvbuxdVgZWqP4esAWi'\n",
"output = 'trained_models/angry_dctts.pth'\n",
"gdown.download(url, output, quiet=False)\n",
"url = 'https://drive.google.com/uc?id=1bP0eJ6z4onr2klolzU17Y8SaNspxQjF-'\n",
"url = 'https://drive.google.com/uc?id=15W26uWXF-OGaA5Kl0uZMBrCwtLA7TSZD'\n",
"output = 'trained_models/neutral_dctts.pth'\n",
"gdown.download(url, output, quiet=False)\n",
"url = 'https://drive.google.com/uc?id=1WWE9zxS3FRgD0Y5yIdNmLY9-t5gnBsNt'\n",
"url = 'https://drive.google.com/uc?id=1SGLBcq57nbNuUjvLauSdpZ82aJxsPhVi'\n",
"output = 'trained_models/ssrn.pth'\n",
"gdown.download(url, output, quiet=False)\n",
"url = 'https://drive.google.com/uc?id=1N6Ykrd1IaPiNdos_iv0J6JbY2gBDghod'\n",
"output = 'trained_models/disgust_tacotron.pth'\n",
"gdown.download(url, output, quiet=False)\n",
"url = 'https://drive.google.com/uc?id=15m0PZ8xaBocb_6wDjAU6S4Aunbr3TKkM'\n",
"url = 'https://drive.google.com/uc?id=1vq581_o3eOHPdxziiaIDbDX-QKiqJCCs'\n",
"output = 'trained_models/amused_tacotron.pth'\n",
"gdown.download(url, output, quiet=False)\n",
"url = 'https://drive.google.com/uc?id=1D6HGWYWvhdvLWQt4uOYqdmuVO7ZVLWNa'\n",
"url = 'https://drive.google.com/uc?id=1-kytGBfrb-P8BNguS58a87V5fACO9vJU'\n",
"output = 'trained_models/sleepiness_tacotron.pth'\n",
"gdown.download(url, output, quiet=False)"
],
"execution_count": 0,
"outputs": []
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "LaZ8INV0IOgH",
"colab_type": "text"
"colab_type": "text",
"id": "LaZ8INV0IOgH"
},
"source": [
"## Setup the required code\n",
Expand All @@ -114,11 +99,13 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "GnZPVzThIBkd",
"colab": {},
"colab_type": "code",
"colab": {}
"id": "GnZPVzThIBkd"
},
"outputs": [],
"source": [
"%tensorflow_version 1.x \n",
"%pylab inline\n",
Expand Down Expand Up @@ -227,15 +214,13 @@
"fs = 20000 #20000\n",
"hop_length = 250\n",
"model.decoder.max_decoder_steps = 200"
],
"execution_count": 0,
"outputs": []
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "wiSAxs7XIUO7",
"colab_type": "text"
"colab_type": "text",
"id": "wiSAxs7XIUO7"
},
"source": [
"## Run the Demo\n",
Expand All @@ -250,12 +235,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"colab": {},
"colab_type": "code",
"id": "3jKM6GfzlgpS",
"colab": {}
"id": "3jKM6GfzlgpS"
},
"outputs": [],
"source": [
"#@title Select the emotion and type the text\n",
"\n",
Expand All @@ -280,22 +267,33 @@
"\n",
"present(wav, Emotion, (align,mel))\n",
"\n"
],
"execution_count": 0,
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "AchHD0xLcaE1",
"colab": {},
"colab_type": "code",
"colab": {}
"id": "AchHD0xLcaE1"
},
"source": [
""
],
"execution_count": 0,
"outputs": []
"outputs": [],
"source": []
}
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"collapsed_sections": [],
"include_colab_link": true,
"name": "Demo - DL Based Emotional TTS",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit 1a9df78

Please sign in to comment.