Quick Start for the developer suite

Updated at:

This guide shows you how to get started with TINGWU.

Note

If you have questions about the product, join our TINGWU product consultation group on DingTalk. Search for group number 44604776.

1. Create an account

Go to the Alibaba Cloud website. In the upper-right corner, click Log In/Sign Up and follow the prompts to create an account.

2. Activate the service

  1. Log in to the TINGWU console.

  2. On the Overview page, click Activate Now.

  3. On the Product Activation page, select a service type.

    • Select Trial. New users are eligible for a 90-day free trial of the service.

      image

      Service Capability

      Benefits During the Free Trial

      How to Continue After the Trial

      Real-time recording

      • You receive a free quota of 48 hours per day. After you use up the daily quota, the service is unavailable for 24 hours.

      • Microphone: No usage limits.

      • Concurrent connections: 2.

      1. On the Service Management and Activation page, upgrade the Real-time Recording service to the commercial version.

      2. After you upgrade, the service switches to a pay-as-you-go billing model based on usage duration.

      Audio and video file recording

      • File upload: You receive a free quota of 2 hours of audio per day. After you use up the daily quota, the service is unavailable for 24 hours.

      • Microphone: No usage limits.

      • Concurrent connections: 1.

      1. On the Service Management and Activation page, upgrade the Audio and Video File Recording service to the commercial version.

      2. After you upgrade, the service switches to a pay-as-you-go billing model based on usage duration.

    • Select Commercial. After activation, you are charged based on the duration of your API requests. The TINGWU Developer Suite charges your Alibaba Cloud account balance based on your actual usage.

      image

      Note

      For more information about the billing rules for the commercial version, see Billing.

  4. Select the TINGWU Developer Suite Terms of Service checkbox, and then click Activate Now to activate the TINGWU Developer Suite.

3. Set an access policy (for RAM users only)

Important

Alibaba Cloud accounts using Tongyi Tingwu can ignore this step.

The TINGWU Developer Suite needs to read lists from Object Storage Service (OSS) and RocketMQ. If a Resource Access Management (RAM) user does not have permission to read these lists, an error message appears, as shown in the following figure.

Before a RAM user can use TINGWU, the Alibaba Cloud account owner must grant permissions in the RAM console.

  1. In the RAM console, go to Permission Management > Policies. Create a custom policy with the following content.

  2. {
        "Version": "1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": "oss:ListBuckets",
                "Resource": "acs:oss:*:*:*"
            },
            {
                "Effect": "Allow",
                "Action": "mq:QueryInstanceBaseInfo",
                "Resource": "acs:mq:*:*:*"
            }
        ]
    }
  1. In the RAM console, go to Identity Management > Users. Find the RAM user, and in the Actions column, click Add Permissions. Select the custom policy that you created in the previous step and the AliyunTingwuFullAccess system policy to grant the RAM user permissions to manage the TINGWU service.

After you grant these permissions, the RAM user can use the TINGWU Developer Suite.

4. Create a project

  1. In the navigation pane on the left of the TINGWU console, click My Projects.

  2. On the My Projects page, click Create Project. If this is your first project, you can also click Create Now.

    image

    1. If this is your first time creating a project, you must grant the TINGWU Developer Suite service access to key roles in OSS and RocketMQ.

      imageThis authorization allows the TINGWU Developer Suite to use Alibaba Cloud's RAM service to receive notifications, such as when smart summaries are written to OSS or when audio and video file recording tasks are complete. This authorization is required to proceed. The TINGWU Developer Suite will only use this authorization to notify you of the status of your service tasks and write the processing results. It will not read or query your data.

    2. Enter a project name.

    3. Select an OSS bucket. If the bucket you need is not in the drop-down list, click Create OSS Bucket on the right.

      TINGWU writes a test file named tingwu/initfile.txt to the configured OSS bucket. If the file is written successfully, the verification passes.image

      Note

      We recommend that the bucket and the project are in the same region. Using different regions can decrease the success rate of data storage. For each request, TINGWU writes the processing result data to an object that starts with "tingwu" in this bucket.

    4. Select a callback method.

      • If you select the HTTP POST protocol, enter a URL. TINGWU sends a POST request to the configured HTTP URL. If the returned HTTP status is 200, the verification passes.

      • If you select RocketMQ over HTTP, you must first create a RocketMQ 4.0 instance and a topic that starts with "TOPIC_TINGWU_". TINGWU sends a message to the configured RocketMQ instance over HTTP. If the message is written successfully, the verification passes.

      • If you choose to use active polling instead of a callback, you must poll the GetMeetingTrans API for real-time recording and the GetFileTrans API for audio and video file recording. The queries per second (QPS) limit for polling is 100 per account.

        image

        Note
        • The RAM user for the TINGWU Developer Suite service obtains service authorization for RocketMQ. Only RocketMQ 4.0 instances are supported, and the topic must start with "TOPIC_TINGWU_".

        • If you select the HTTP POST protocol or the RocketMQ callback method, TINGWU sends a connectivity check message to the configured webhook address: {"Code":"0","Data":{"Test":"checkSyncConf+timestamp"},"Message":"success.","RequestId":"xxxxxx"}.

    5. Enter a project description (optional).

5. Test the service (optional)

  1. On the My Projects page of the TINGWU Developer Suite console, find your project. In the Actions column, click Details and Voice Service Test.

    image

  1. Test the detection accuracy for Chinese, English, and Cantonese.

    1. If you select Chinese/English/Cantonese as the test language and Microphone input as the test method, click Start Recording. You can view the real-time transcription results. The recording stops automatically after 60 seconds. Click Confirm to return to the project list page.

      image

    2. If you select Chinese/English/Cantonese as the test language and Audio file as the test method, click Upload Local File. After the upload is successful, you can view the transcription results. You can play the uploaded audio file online. Click Confirm to return to the project list page.

      image

6. Developer integration

For more information about integration methods, see Developer Guide.

7. View service usage and bills

For more information about how to query service usage, see View Service Usage.

For more information about how to query bills, see Query Billing Details.