Skip to content

302.AI Translation, Dubbing, and Speech Recognition Channel

What is it?

302.AI is an AI aggregation service platform that provides unified API access to a variety of AI models. In pyVideoTrans, 302.AI can serve as a translation channel, dubbing channel, and speech recognition channel all at once.

  • Translation: Supports ChatGPT-4o, Gemini, and other models
  • Dubbing: Supports hundreds of voices from Azure, Doubao (豆包), MiniMaxi, DubbingX, and OpenAI
  • Speech recognition: Supports speech-to-text via OpenAI's speech recognition API

Prerequisites

  • pyVideoTrans v2.10 or higher
  • A 302.AI platform account (to obtain an API key)

Getting an API Key

Step 1: Log in to 302.AI

Go to https://www.302.ai and register/log in to your account.

Step 2: Create an API Key

  1. After logging in, click "API Marketplace""API Management" in the left sidebar

  1. Enter a name in the "API Name" field, then click the "Add API" button at the bottom

  1. Scroll down and click the eye icon next to the created API to reveal the full API key, then copy it


Configuring Translation in pyVideoTrans

  1. Upgrade pyVideoTrans to v2.10+
  2. Click Settings in the top-left corner → 302.AI Translation
  3. Enter the API key you just created

  1. In the settings panel, select a model for subtitle translation, such as chatgpt-4o or gemini-2.0-flash
  2. On the main interface, select 302.AI from the Translation Channel dropdown

Dubbing Voice Configuration

Through 302.AI, you can use dubbing voices from the following platforms:

OpenAI Voices

Voice NameID
Alloyalloy
Ashash
Balladballad
Coralcoral
Echoecho
Fablefable
Onyxonyx
Novanova
Sagesage
Shimmershimmer
Verseverse

Doubao (豆包) Voices (partial)

Voice NameID
Beijing XiaoYe (multi-emotion)zh_male_beijingxiaoye_emo_v2_mars_bigtts
Gentle Girlfriend (multi-emotion)zh_female_roumeinvyou_emo_v2_mars_bigtts
Sunny Youth (multi-emotion)zh_male_yangguangqingnian_emo_v2_mars_bigtts
CanCan / Shinyzh_female_cancan_mars_bigtts
Fresh Female Voicezh_female_qingxinnvsheng_mars_bigtts
Intellectual Female Voicezh_female_zhixingnvsheng_mars_bigtts
Gentle Xiaoyazh_female_wenrouxiaoya_moon_bigtts
Magnetic Male Narrator / Morganzh_male_jieshuonansheng_mars_bigtts

MiniMaxi Voices (partial)

Voice NameID
Youthful Male Voicemale-qn-qingse
Elite Male Voicemale-qn-jingying
Young Girl Voicefemale-shaonv
Mature Female Voicefemale-yujie
Male Presenterpresenter_male
Female Presenterpresenter_female

DubbingX Voices (partial)

Voice NameID
MuJin (young girl, energetic, bright)30149
MaoMao (pleasant, magnetic, textured)30136
BaoBao (young, sweet, pleasant)30131
XiaoLiangGe (mature, warm)30002

SettingRecommended Value
API KeyObtained from 302.AI platform
Translation Modelchatgpt-4o or gemini-2.0-flash
Dubbing VoiceChoose from OpenAI/Doubao/MiniMaxi/DubbingX voices as needed

Troubleshooting

IssueCauseSolution
API key invalidKey copied incompletelyClick the eye icon again and copy the full key
Translation errorIncorrect model selectedVerify the model is available on the 302.AI platform
Dubbing produces no soundVoice ID incorrectRefer to the voice table above for the correct ID
Insufficient balanceAPI key credits exhaustedTop up on the 302.AI platform