Mainland China service
Set up Baidu AI Cloud in StoryWeave
Baidu AI Cloud speech is offered in StoryWeave's Mainland China service. StoryWeave accepts two kinds of credential. Choose one and follow only that branch below:
Option A — API Key and Secret Key: from a speech app you create in the 语音技术 (Speech) console. StoryWeave exchanges them for an access token.
Option B — API Key (new console): a single key starting with bce-v3/ALTAK-, created on the account's API Key page.
- Applies to
- Mainland China service
- In StoryWeave
- Baidu AI Cloud
- Credential
- Either a speech app's API Key + Secret Key, or one new-console API Key. StoryWeave uses exactly one of them per request.
What this key lets you use in StoryWeave
- Text to speech with Baidu system voices (Chinese)
- Text to speech with your cloned voices
- Transcription of audio files
- Voice cloning
Features also depend on what this service currently offers and on your provider account. Access to each model is confirmed on first use.
Before you start
- A computer with a web browser (provider consoles are easier to use there).
- A Baidu AI Cloud account with identity verification (实名认证) completed.
- StoryWeave on your iPhone, with the Mainland China service region.
Sign up and sign in
Step 1: Sign in and complete identity verification
Sign in to Baidu AI Cloud. Speech services can only be bought and used after identity verification (personal or business). Business users should verify as a business.
After verification, the first visit to the Speech console issues free test resources automatically; Baidu says this takes 5–10 minutes. Free amounts depend on the verification type.
Identity verification ↗ (opens the provider's site)Speech console ↗ (opens the provider's site)
Turn on the service and billing
Step 2: Activate paid speech products when you need them
The first time you open the Speech console, read the 语音技术服务条款 (speech service terms) and click 我已阅读并同意 to continue.
When the free resources run out, use 开通后付费 (activate pay-as-you-go) next to the product in the 服务列表 (service list) on the 概览 (Overview) page.
First visit: agree to the speech service terms. 应用管理 (Option A) is under 公有云服务 in the sidebar. Provider console screenshot
Create the API key
Step 3: Option A: create a speech app (API Key + Secret Key)
In the Speech console sidebar choose 公有云服务 → 应用管理 (app management) → 创建应用 (Create app). Enter an app name (it can't be changed later). The speech interfaces are selected by default; keep them. 语音包名 is only for Baidu's mobile SDK and can be left out.
After creating it, 应用管理 shows the app's API Key and Secret Key. Copy both.
This is the speech app's API Key and Secret Key, not the account AccessKey (AK/SK) under your avatar → 安全认证.
Step 4: Option B: create a new-console API Key
Open 安全认证 → API Key (link below) and click 创建API Key. Keep or edit the 名称 (name). Under 权限配置 choose 全部产品权限 (all products; simplest), or 自定义权限 and include 语音技术. Click 确定 (OK).
Copy the key. It starts with bce-v3/ALTAK-.
Baidu API Key management ↗ (opens the provider's site)
安全认证 → API Key → 创建API Key: a name and 权限配置. Provider console screenshot
Save the key in StoryWeave
Step 5: Open the provider in StoryWeave
On your iPhone, open StoryWeave and go to Settings → AI Providers → Baidu AI Cloud.
Check that "Service region" in Settings says Mainland China. If it shows a different region, follow that region's guide instead.
Settings → AI Providers. The service region is shown under the list. StoryWeave app screenshot Step 6: Paste the key and verify it
Tap Set Up API Key, read the first screen and tap Next.
Choose the Credential type that matches what you created — “API Key and Secret Key” (Option A) or “API Key (new console)” (Option B) — fill in the fields and tap Next.
The key is stored only in this iPhone's Keychain. It is never put in projects, backups or this website.
Check that it works
Step 7: Look for “Your key works”
A green “Your key works” message means the provider accepted the key. Tap Done. Settings now shows Key saved for this provider.
This check only proves the key is accepted. Whether each model is switched on, and whether your balance covers it, is confirmed on your first generation.
Step 8: Run a short first test
Generate a sentence or two with the provider. If it fails, the message tells you whether the key, a model's access, your balance or the region is the problem; see the FAQ below.
Common questions
Which option should I choose?
Either works. Option A is the classic speech app setup; Option B is a single key from Baidu's newer API Key system. Don't mix them: an Option A key pasted as Option B (or the reverse) will fail.
The key check fails with “unknown client id” or “Client authentication failed”.
For Option A, the first means the API Key is wrong and the second means the Secret Key is wrong. Copy them again from the App list.
Can I use English text to speech?
StoryWeave offers Baidu system voices for Auto and Chinese only, because Baidu rejected English requests in testing.
How long does Baidu keep a cloned voice?
Baidu deletes a cloned voice that hasn't been used for a year.
StoryWeave says the key works, but generation fails. Why?
Saving a key only proves the provider recognises it. The model may not be switched on for your account, the balance or plan may not cover it, or the key may be limited to other services. Check the provider console, then try again.
Does my page language decide which guide I need?
No. Follow the guide for the service region shown in StoryWeave → Settings → Service region. Reading in Chinese does not make you a Mainland China user, and the reverse.
Does StoryWeave charge for using my key?
StoryWeave adds no fee to work done with your own key. The provider bills your account at its own prices.
Cost and key safety
- Usage beyond the free resources is billed by Baidu AI Cloud at its published prices.
- If an app's Secret Key leaks, update it on the app's detail page; older access tokens stop working immediately.
- Treat the key like a password. Anyone who has it can spend your balance. Never post it in chats, screenshots or support tickets; StoryWeave will never ask you for it.
- If a key may have leaked, delete or disable it in the provider console, create a new one and save the new one in StoryWeave.
- Prices, free allowances and plan requirements are set by the provider and change over time. Check the provider's own pricing page before large jobs.