Skip to content

Preparation ⚙️

Word count
715 words
Reading time
5 minutes
  • Third-party account registration and environment variable configuration
  • Required software installation

Account Registration

Register as needed based on your use case

NameEnvironment VariableUse CaseFree
OpenAiOPENAI_API_KEYTranslation🚫
GeminiGOOGLE_API_KEYTranslation
AzureTtsAZURE_API_KEYSpeech Synthesis🚫
ElevenlabsELEVENLABS_API_KEYSpeech Synthesis🚫
HuggingfaceHUGGINGFACEHUB_API_TOKENMulti-Speaker
NgrokNGROK_AUTH_TOKENIntranet Penetration

Note

Ngrok is not required for local deployment

Environment Variables

Please replace environment variables and corresponding API keys according to your needs. All information is stored in your local computer's environment variables, and the program will not record or save apikey information; Example (OPENAI_API_KEY)

  1. Right-click on This PC and select Properties

  2. Click Advanced system settings, then select Environment Variables

  3. In the System variables section, click New and add the following variable OPENAI_API_KEY

  4. Open Command Prompt or PowerShell, run the following command to verify:

powershell
echo $env:GOOGLE_API_KEY
cmd
echo %GOOGLE_API_KEY%

Hint

For Colab usage, see the 《Remote Deployment》 section.

Required Software

Recommended to download Integrated Installation Package with built-in portable integrated environment, no additional configuration needed 🔥🔥🔥🔥🔥

Python is a high-level programming language with concise, readable syntax, suitable for rapid development, data analysis and automation scripts.

  1. Download and Install
Go to official website to download Python installer based on your operating system
  1. Verify Installation
bash
python --version

Normal installation returns

log
Python 3.11.11

Miniconda can quickly create clean, isolated Python virtual environments, suitable for data analysis, AI projects, custom scripts and other scenarios

  1. Download and Install

Miniconda is recommended over Anaconda for smaller size, faster startup, and purer dependencies

Go to official website to download Miniconda installer based on your operating system; Taking `Windows` as an example

- Double-click the `.exe` installer
- Check "**Add Miniconda to PATH**" (optional but recommended)
- After completion, search for "Anaconda Prompt" in Start menu
  1. Verify Installation
bash
conda env list

Normal installation returns

log
PS C:\Users\home> conda env list
# conda environments:
#
base                   D:\Projects\miniconda3
  1. Common Commands
CommandDescription
conda create --name creatorbox python=3.11.11Create environment named creatorbox, specify Python version 3.11.11
conda env listList all created virtual environments
conda activate creatorboxActivate and enter environment named creatorbox
conda deactivateExit current activated environment
conda remove -n creatorbox --allDelete entire environment named creatorbox