"This is a attempt to run [Realtime Voice Changer](https://github.com/w-okada/voice-changer) on Google Colab.\\\n",
"Colab File updated by [rafacasari](https://github.com/Rafacasari)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "vV1t7PBRm-o6"
},
"outputs": [],
"source": [
"# @title **Always use Colab GPU!**\n",
"# @markdown **A GPU can be used for faster processing.**\\\n",
"# @markdown You can check the Colab GPU running this cell.\\\n",
"# @markdown or use the menu **Runtime** -> **Change runtime** -> **Hardware acceleration** to select a GPU, if needed.\n",
"!nvidia-smi"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "aLypf-RLIK-w"
},
"source": [
"---"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "RhdqDSt-LfGr"
},
"outputs": [],
"source": [
"# @title **[Optional]** Setup/Start Google Drive\n",
"# @markdown Using Google Drive can improve load times in a next version that you use Voice Changer, since it will not need to download/install everything again.\n",
"import os\n",
"from google.colab import drive\n",
"\n",
"if not os.path.exists('/content/drive'):\n",
" drive.mount('/content/drive')\n",
"\n",
"%cd /content/drive/MyDrive"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "86wTFmqsNMnD"
},
"outputs": [],
"source": [
"# @title **[1]** Clone the repository\n",
"# @markdown Clone the repository using this cell, this process should be really fast.\n",
"print(\"\\033[92mSuccessfully installed all packages!\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "lQxvqDH2D1MK"
},
"outputs": [],
"source": [
"# @title **[3]** Setup ngrok account\n",
"# @markdown Setup a free account at [Ngrok](https://dashboard.ngrok.com/signup), then click [this link](https://dashboard.ngrok.com/get-started/your-authtoken) to get your auth token, copy it and place it here:\n",
"\n",
"NgrokToken = '' # @param {type:\"string\"}\n",
"\n",
"!ngrok config add-authtoken {NgrokToken}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "lLWQuUd7WW9U",
"cellView": "form"
},
"outputs": [],
"source": [
"# @title **[4]** Start Server\n",
"# @markdown **Run this cell AFTER ngrok setup!**\\\n",
"# @markdown This cell will start the server, the first time that you run it will download the example models, so it can take a while and console may be spammed a little bit. **So be fast to open the server link.**\n",