Preparation ⚙️
- Third-party account registration and environment variable configuration
- Required software installation
Account Registration
Register as needed based on your use case
Name | Environment Variable | Use Case | Free |
---|---|---|---|
OpenAi | OPENAI_API_KEY | Translation | 🚫 |
Gemini | GOOGLE_API_KEY | Translation | ✅ |
AzureTts | AZURE_API_KEY | Speech Synthesis | 🚫 |
Elevenlabs | ELEVENLABS_API_KEY | Speech Synthesis | 🚫 |
Huggingface | HUGGINGFACEHUB_API_TOKEN | Multi-Speaker | ✅ |
Ngrok | NGROK_AUTH_TOKEN | Intranet 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
)
Right-click on This PC and select Properties
Click Advanced system settings, then select Environment Variables
In the System variables section, click New and add the following variable
OPENAI_API_KEY
Open Command Prompt or PowerShell, run the following command to verify:
echo $env:GOOGLE_API_KEY
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.
- Download and Install
Go to official website to download Python installer based on your operating system
- Verify Installation
python --version
Normal installation returns
Python 3.11.11
Recommended Downloads
Miniconda can quickly create clean, isolated Python virtual environments, suitable for data analysis, AI projects, custom scripts and other scenarios
- 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
- Verify Installation
conda env list
Normal installation returns
PS C:\Users\home> conda env list
# conda environments:
#
base D:\Projects\miniconda3
- Common Commands
Command | Description |
---|---|
conda create --name creatorbox python=3.11.11 | Create environment named creatorbox , specify Python version 3.11.11 |
conda env list | List all created virtual environments |
conda activate creatorbox | Activate and enter environment named creatorbox |
conda deactivate | Exit current activated environment |
conda remove -n creatorbox --all | Delete entire environment named creatorbox |