Only the Chinese version of this page is provided currently. The English version will be provided soon.

API and SDK

Last updated: 2025-04-03 15:49:41

What Should I Do If HTTP Requests To ASR APIs Return an Authentication Failure?

Check whether your parameters are uploaded correctly against the parameter table. For quick integration, we recommend you use the official SDK.

ASR Service Recognition Result Reports an Invalid URL Address?

The URL you provide must be a public network URL accessible by Tencent Cloud. You can use Tencent Cloud COS to store audio files and use relevant URLs. You also need to check whether the firewall is blocking access, whether the URL is at a private IP, and whether the audio files stored at other service providers can be downloaded by Tencent Cloud properly.

What Should I Do If "Unregistered AppId" Is Reported During ASR API Call?

User not registered. The user needs to activate the ASR service according to the ASR Getting Started guide before using the service.

Do ASR APIs Have Restrictions On the Sample Rate Of Audio Files?

APIs don't restrict the sample rate of audio files, but if the sample rate is non-compliant, the recognition effect will be compromised.

Recording File Recognition Error: Audio Channel Num Not Match! What'S the Reason?

The number of sound channels in the audio must match the channel parameter. For example, if the audio has 2 sound channels, then channel = 2.

What Should I Do If No Callback Is Received For a Long Time After Recording File Recognition?

Ensure the callback service is functioning properly and the callback address is accessible over the public network.
If the callback address uses https, ensure the certificate is authenticated by a legitimate CA.

Single-Sentence Recognition Error: Failed To Recognize Audio! What'S the Reason?

Confirm whether the uploaded audio format matches the VoiceFormat parameter setting. If not, this error may occur.

How To Troubleshoot the 4002 Authentication Failure Error When Using the ASR SDK?

Common causes of this error when using the SDK include incorrect key information such as appid, secret_id, and secret_key. Additionally, if a subaccount is used, the main account needs to grant the subaccount permission, otherwise, this error will occur.

Real-Time ASR Error: 4008 Client Upload Timeout?

This error occurs because the server-side did not receive audio data for over 15 seconds and actively disconnected the link. It is recommended to actively send a tail packet to disconnect the link if no data is being sent.