Billing rules

Updated at:

This topic describes the billing methods for Voice Studio's text-to-speech (TTS) and real-time speech recognition (ASR) services. It covers pricing, billable items, how usage is calculated, what generates usage, and how to view your usage data.

Billing rules

Voice Studio uses a pay-as-you-go billing model. TTS and ASR services are metered and priced separately based on actual usage.

Service

Billing basis

Pricing

Text-to-speech (TTS)

The character count of the input text. Output audio is not billed.

CNY 1.2 per 10,000 characters, or CNY 0.00012 per character.

Real-time speech recognition (ASR)

The duration of the input audio. Output text is not billed.

CNY 0.00083 per second, which is approximately CNY 0.0498 per minute or CNY 2.988 per hour.

  • TTS billing is not affected by the voice, model, or API type used. A single price applies to all TTS tasks.

  • ASR billing is not affected by the recognition model, audio format, or sample rate. A single price applies.

  • Fees are calculated based on actual usage. TTS usage is not rounded up to the nearest 10,000 characters. ASR usage is billed based on the duration of each task, which is rounded according to the duration calculation rules described in this topic.

Billable items

Billable item

Billing rules

Text-to-speech (TTS)

Billed based on the character count of the input text. The output is not billed.

Real-time speech recognition (ASR)

Billed based on the duration of the audio sent to the recognition engine. The output is not billed.

All TTS billable items follow the character calculation rules, and ASR uses the duration calculation rules.


Text-to-speech (TTS)

Character count rules

  • One Chinese character (including simplified, traditional, Japanese kanji, and Korean hanja) is counted as 2 characters.

  • Other characters, such as an English letter, a digit, a punctuation mark, a space, a Japanese kana, a Korean letter, or an emoji, are each counted as 1 character.

  • Control characters like line breaks and tabs are not included in the character count.

  • When you use SSML, the SSML tags are not counted. Only the text to be synthesized is billed.

Example: 你好 = 4 characters; Hello 123 = 9 characters; 你好,世界 = 9 characters; <speak>你好</speak> = 4 characters.

As a rough estimate, the billable count for a text containing only Chinese characters is about twice its written length. For a purely English text, the billable character count is roughly the same as the number of characters in the text.

Billing based on normalized text

The billable text is the actual text sent to the synthesis engine, not the original text you submit. The difference comes from text normalization (TN), a process that converts written forms like numbers, dates, and currency into their spoken-word equivalents before synthesis. TN is disabled by default and can be enabled with the X-TTS-TN: enable request header.

  • TN disabled (default): You are billed for the original text you submit.

  • TN enabled: You are billed for the normalized text. The spoken form is typically longer than the original text. For example, 123 (3 characters) is expanded to one hundred twenty-three (23 characters, assuming English).

If you require precise and predictable bills, you can disable TN and process the text into its spoken form before submitting it.

What generates usage

You are billed as soon as text is sent to the synthesis engine. You are not billed for failures caused by platform-side issues.

  • You are billed for all text sent to the engine, even if the task is subsequently canceled, disconnected, or terminated due to a timeout.

  • You are not billed for requests that are rejected before text reaches the engine, for instance, due to invalid parameters or a non-existent voice. Failures caused by platform or engine errors are also not billed.

How to view usage

The task-finished event for a real-time synthesis task returns the character count for that task:

"payload": { "usage": { "characters": 42 } }

The result-generated event's sentence-end sub-event also includes usage.characters, which represents the cumulative count up to the current sentence. The value in the task-finished event is the final and definitive one.

Billing example

Scenario

Billable characters

Cost

Synthesize Hello, World

9

9 × 0.00012 = CNY 0.00108

Synthesize a purely Chinese text of 10,000 characters

Approx. 20,000

Approx. CNY 2.4


Real-time speech recognition (ASR)

Duration calculation rules

The billable duration is the duration of the audio sent to the recognition engine, not the connection duration, the length of the recognized text, or the speaking time.

  • The duration is calculated based on the audio content itself, including any leading, in-sentence, and trailing silence. This calculation does not include audio that has not yet been sent to the engine.

  • For PCM audio, the duration is calculated based on the sample rate declared in the run-task message. For WAV files, it is based on the file's actual sample rate, counting only the audio data portion. For compressed formats such as Opus, MP3, AAC, and AMR, the duration is calculated from the decoded audio and is not estimated from the compressed file size.

  • Rounding is performed on a per-task basis. The total audio duration for each task is rounded to the nearest second for billing.

  • Multiple tasks are rounded individually before their durations are summed. For example, two tasks of 2.5 seconds each are rounded to 3 seconds each, resulting in a total billable duration of 6 seconds, rather than being combined into 5 seconds first.

Actual audio duration

Billable duration

0.49 seconds

0 seconds

0.5 seconds

1 second

2.5 seconds

3 seconds

8.245 seconds

8 seconds

As a rough estimate, when you are streaming audio in real time, the billable duration is approximately equal to the streaming duration. Silence within the audio is also billed. If you do not need to recognize silent segments, you can perform silence detection on the client side before streaming the audio.

What generates usage

You are billed as soon as audio is sent to the recognition engine. You are not billed for failures caused by platform-side issues.

  • You are billed for all audio sent to the engine, even if the task is subsequently disconnected, interrupted, closed due to inactivity, or fails because of a timeout.

  • You are not billed for requests that are rejected before audio reaches the engine, for instance, due to authentication failures or invalid parameters. Failures caused by platform or engine errors, and tasks with a billable duration of 0 seconds, are also not billed.

How to view usage

The task-finished event for a real-time recognition task returns the billable duration for that task in seconds:

"payload": { "usage": { "duration": 8 } }
  • The end-of-sentence result (sentence_end=true) in the result-generated event also includes usage.duration. This value represents the cumulative duration up to that point and should not be summed across multiple events. The value in the task-finished event is the final and definitive one.

  • If a task fails, the task-failed event also returns the duration of the audio already sent to the engine. This value indicates usage, but whether it is billed depends on the rules described in the What generates usage section.

Billing example

Scenario

Billable duration

Cost

One recognition task of 8.245 seconds

8 seconds

8 × 0.00083 = CNY 0.00664

Two recognition tasks of 2.5 seconds each

3 + 3 = 6 seconds

6 × 0.00083 = CNY 0.00498

Recognize 1 hour of continuous audio

3,600 seconds

3,600 × 0.00083 = CNY 2.988


View bills

To view your usage and detailed bills for each billing cycle, go to the Billing Center. The usage data returned in events is for reference only and does not confirm the final charges. Your official bill in the Billing Center is the definitive record for settlement.

Concurrency limits

In addition to pay-as-you-go billing, real-time APIs are subject to a concurrency limit:

  • Real-time TTS: The default limit is 5 concurrent WebSocket connections per workspace. A connection occupies one slot as soon as it is established and releases it upon closing. Idle connections also count toward this limit. New connections exceeding the limit will be rejected, but established connections are not affected.

  • Real-time ASR: The default limit is 5 concurrent WebSocket connections per workspace. A connection occupies one slot as soon as it is established and releases it upon closing. Idle connections also count toward this limit. New connections exceeding the limit will be rejected, but established connections are not affected.

To request a limit increase, contact support.

FAQ

Text-to-speech (TTS)

  • Why is the billable character count higher than the number of characters I submitted? A Chinese character is counted as 2 characters. The billable count for a purely Chinese text is approximately twice the number of written characters.

  • Why do I get a different character count for the same text on different attempts? This occurs when text normalization (TN) is enabled.

  • Are SSML tags billed? No, only the text content within the tags is counted.

  • Am I billed for canceled or disconnected tasks? Yes. You are billed for any text sent to the engine before the task was canceled or disconnected.

  • Do I pay for failed API calls? Requests that are rejected before the text is sent to the engine (due to parameter errors, non-existent voices, etc.) are not billed.

Real-time speech recognition (ASR)

  • Is silence billed? Yes. The billable duration is calculated based on the audio sent to the engine, which includes any leading, in-sentence, and trailing silence.

  • Why does the billable duration differ from the duration reported by the recognition engine? The platform calculates a unified billable duration for all recognition models based on the input audio duration, rounded to the nearest second. The usage.duration returned by the platform and your final bill are the definitive sources for billing.

  • Am I billed if the connection is interrupted? Yes. You are billed for any audio sent to the engine before the interruption.

  • Do I pay for failed API calls? Requests that are rejected before the audio is sent to the engine (due to authentication or parameter errors) are not billed. Failures caused by platform or engine issues are also not billed.

  • How are compressed formats billed? They are billed based on the duration of the audio after decoding, regardless of the compression ratio.