Spaces:
Sleeping
Sleeping
Rohit Patnaik
commited on
Commit
·
6b496e9
1
Parent(s):
b2d652c
Refactor code: clean and format
Browse files- Voice2VoiceTranslation.ipynb +41 -14
Voice2VoiceTranslation.ipynb
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
"id": "NnO-D2woRdMR",
|
| 38 |
"outputId": "8cad081e-a644-4db2-9d47-2e576ae4e6bb"
|
| 39 |
},
|
| 40 |
-
"execution_count":
|
| 41 |
"outputs": [
|
| 42 |
{
|
| 43 |
"output_type": "stream",
|
|
@@ -56,7 +56,7 @@
|
|
| 56 |
{
|
| 57 |
"cell_type": "markdown",
|
| 58 |
"source": [
|
| 59 |
-
"# Speech to Text"
|
| 60 |
],
|
| 61 |
"metadata": {
|
| 62 |
"id": "HBzVTrKIjCFz"
|
|
@@ -75,7 +75,7 @@
|
|
| 75 |
"id": "poBUySdreSA9",
|
| 76 |
"outputId": "d7ccf58d-0f1a-44da-c7df-ae0a055204d8"
|
| 77 |
},
|
| 78 |
-
"execution_count":
|
| 79 |
"outputs": [
|
| 80 |
{
|
| 81 |
"output_type": "stream",
|
|
@@ -260,8 +260,8 @@
|
|
| 260 |
{
|
| 261 |
"cell_type": "code",
|
| 262 |
"source": [
|
| 263 |
-
"from google.colab import drive\n",
|
| 264 |
-
"drive.mount('/content/drive')"
|
| 265 |
],
|
| 266 |
"metadata": {
|
| 267 |
"id": "l5_Por0JfvCv",
|
|
@@ -350,7 +350,7 @@
|
|
| 350 |
{
|
| 351 |
"cell_type": "markdown",
|
| 352 |
"source": [
|
| 353 |
-
"# Translate text
|
| 354 |
],
|
| 355 |
"metadata": {
|
| 356 |
"id": "V7ipQTRbjPXq"
|
|
@@ -416,6 +416,15 @@
|
|
| 416 |
"execution_count": null,
|
| 417 |
"outputs": []
|
| 418 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 419 |
{
|
| 420 |
"cell_type": "markdown",
|
| 421 |
"source": [
|
|
@@ -734,6 +743,15 @@
|
|
| 734 |
"execution_count": null,
|
| 735 |
"outputs": []
|
| 736 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 737 |
{
|
| 738 |
"cell_type": "markdown",
|
| 739 |
"source": [
|
|
@@ -746,7 +764,7 @@
|
|
| 746 |
{
|
| 747 |
"cell_type": "code",
|
| 748 |
"source": [
|
| 749 |
-
"!pip install TTS"
|
| 750 |
],
|
| 751 |
"metadata": {
|
| 752 |
"colab": {
|
|
@@ -922,9 +940,9 @@
|
|
| 922 |
{
|
| 923 |
"cell_type": "code",
|
| 924 |
"source": [
|
| 925 |
-
"!pip install -U pip\n",
|
| 926 |
-
"!pip install numpy==1.24.3\n",
|
| 927 |
-
"!pip install TTS==0.20.2"
|
| 928 |
],
|
| 929 |
"metadata": {
|
| 930 |
"colab": {
|
|
@@ -1102,7 +1120,7 @@
|
|
| 1102 |
{
|
| 1103 |
"cell_type": "code",
|
| 1104 |
"source": [
|
| 1105 |
-
"!pip install numpy.strings"
|
| 1106 |
],
|
| 1107 |
"metadata": {
|
| 1108 |
"id": "4YcCW7A1uO33",
|
|
@@ -1127,7 +1145,7 @@
|
|
| 1127 |
{
|
| 1128 |
"cell_type": "code",
|
| 1129 |
"source": [
|
| 1130 |
-
"from TTS.api import TTS"
|
| 1131 |
],
|
| 1132 |
"metadata": {
|
| 1133 |
"colab": {
|
|
@@ -1179,7 +1197,16 @@
|
|
| 1179 |
{
|
| 1180 |
"cell_type": "markdown",
|
| 1181 |
"source": [
|
| 1182 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1183 |
],
|
| 1184 |
"metadata": {
|
| 1185 |
"id": "J5lPeBu1THYg"
|
|
@@ -1250,7 +1277,7 @@
|
|
| 1250 |
{
|
| 1251 |
"cell_type": "markdown",
|
| 1252 |
"source": [
|
| 1253 |
-
"#
|
| 1254 |
],
|
| 1255 |
"metadata": {
|
| 1256 |
"id": "Mg0EtNk_mFzE"
|
|
|
|
| 37 |
"id": "NnO-D2woRdMR",
|
| 38 |
"outputId": "8cad081e-a644-4db2-9d47-2e576ae4e6bb"
|
| 39 |
},
|
| 40 |
+
"execution_count": null,
|
| 41 |
"outputs": [
|
| 42 |
{
|
| 43 |
"output_type": "stream",
|
|
|
|
| 56 |
{
|
| 57 |
"cell_type": "markdown",
|
| 58 |
"source": [
|
| 59 |
+
"# Convert Speech to Text"
|
| 60 |
],
|
| 61 |
"metadata": {
|
| 62 |
"id": "HBzVTrKIjCFz"
|
|
|
|
| 75 |
"id": "poBUySdreSA9",
|
| 76 |
"outputId": "d7ccf58d-0f1a-44da-c7df-ae0a055204d8"
|
| 77 |
},
|
| 78 |
+
"execution_count": null,
|
| 79 |
"outputs": [
|
| 80 |
{
|
| 81 |
"output_type": "stream",
|
|
|
|
| 260 |
{
|
| 261 |
"cell_type": "code",
|
| 262 |
"source": [
|
| 263 |
+
"# from google.colab import drive\n",
|
| 264 |
+
"# drive.mount('/content/drive')"
|
| 265 |
],
|
| 266 |
"metadata": {
|
| 267 |
"id": "l5_Por0JfvCv",
|
|
|
|
| 350 |
{
|
| 351 |
"cell_type": "markdown",
|
| 352 |
"source": [
|
| 353 |
+
"# Translate text-to-text"
|
| 354 |
],
|
| 355 |
"metadata": {
|
| 356 |
"id": "V7ipQTRbjPXq"
|
|
|
|
| 416 |
"execution_count": null,
|
| 417 |
"outputs": []
|
| 418 |
},
|
| 419 |
+
{
|
| 420 |
+
"cell_type": "markdown",
|
| 421 |
+
"source": [
|
| 422 |
+
"Not Open Source"
|
| 423 |
+
],
|
| 424 |
+
"metadata": {
|
| 425 |
+
"id": "o-XnMjQnWuBo"
|
| 426 |
+
}
|
| 427 |
+
},
|
| 428 |
{
|
| 429 |
"cell_type": "markdown",
|
| 430 |
"source": [
|
|
|
|
| 743 |
"execution_count": null,
|
| 744 |
"outputs": []
|
| 745 |
},
|
| 746 |
+
{
|
| 747 |
+
"cell_type": "markdown",
|
| 748 |
+
"source": [
|
| 749 |
+
"Not open Source"
|
| 750 |
+
],
|
| 751 |
+
"metadata": {
|
| 752 |
+
"id": "g8Ar6zd5WW3J"
|
| 753 |
+
}
|
| 754 |
+
},
|
| 755 |
{
|
| 756 |
"cell_type": "markdown",
|
| 757 |
"source": [
|
|
|
|
| 764 |
{
|
| 765 |
"cell_type": "code",
|
| 766 |
"source": [
|
| 767 |
+
"# !pip install TTS"
|
| 768 |
],
|
| 769 |
"metadata": {
|
| 770 |
"colab": {
|
|
|
|
| 940 |
{
|
| 941 |
"cell_type": "code",
|
| 942 |
"source": [
|
| 943 |
+
"# !pip install -U pip\n",
|
| 944 |
+
"# !pip install numpy==1.24.3\n",
|
| 945 |
+
"# !pip install TTS==0.20.2"
|
| 946 |
],
|
| 947 |
"metadata": {
|
| 948 |
"colab": {
|
|
|
|
| 1120 |
{
|
| 1121 |
"cell_type": "code",
|
| 1122 |
"source": [
|
| 1123 |
+
"# !pip install numpy.strings"
|
| 1124 |
],
|
| 1125 |
"metadata": {
|
| 1126 |
"id": "4YcCW7A1uO33",
|
|
|
|
| 1145 |
{
|
| 1146 |
"cell_type": "code",
|
| 1147 |
"source": [
|
| 1148 |
+
"# from TTS.api import TTS"
|
| 1149 |
],
|
| 1150 |
"metadata": {
|
| 1151 |
"colab": {
|
|
|
|
| 1197 |
{
|
| 1198 |
"cell_type": "markdown",
|
| 1199 |
"source": [
|
| 1200 |
+
"Doesn't support Hindi"
|
| 1201 |
+
],
|
| 1202 |
+
"metadata": {
|
| 1203 |
+
"id": "lepUM3hTWgVB"
|
| 1204 |
+
}
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"cell_type": "markdown",
|
| 1208 |
+
"source": [
|
| 1209 |
+
"## Suno Bark TTS"
|
| 1210 |
],
|
| 1211 |
"metadata": {
|
| 1212 |
"id": "J5lPeBu1THYg"
|
|
|
|
| 1277 |
{
|
| 1278 |
"cell_type": "markdown",
|
| 1279 |
"source": [
|
| 1280 |
+
"# Voice Cloning"
|
| 1281 |
],
|
| 1282 |
"metadata": {
|
| 1283 |
"id": "Mg0EtNk_mFzE"
|