Updated on 2023-11-07 GMT+08:00

Obtaining SDKs

Downloading SDK Software Packages

Table Downloading SDK software packages describes how to download the SIS SDK software packages.

To obtain audio examples, go to Audio Examples.

Importing SDKs Using Maven

The Java SDK can also be imported through Maven. For details about the sample file, see Downloading SDK software packages. The procedure is as follows:

  1. Add the following dependencies to the pom.xml file:
            <dependency>
                <groupId>com.huawei.sis</groupId>
                <artifactId>huaweicloud-java-sdk-sis</artifactId>
                <version>1.8.1</version>
            </dependency>
  2. Add a repository to the pom.xml file of the project, for example, sis-repo.

    The repository address is https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk.

        <repositories>
            <repository>
                <id>sis-repo</id>
                <name>Sis Release Repository</name>
                <url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
        </repositories>
  3. Add an image to the configuration file setting.xml on Maven.

    Generally, the setting.xml file is stored in the user directory. In the Windows OS, the directory is C:\Users\${Username}\.m2\setting.xml. Replace ${Username} with the username of the PC.

        <mirror>
            <id>huaweicloud</id>
            <name>Huaweicloud Repository</name>
            <url>https://mirrors.huaweicloud.com/repository/maven/</url>
            <mirrorOf>*,!sis-repo</mirrorOf>
        </mirror>
    <mirrorOf>*,!sis-repo</mirrorOf>

    When configuring the image, to make the repository address configured in step 2 take effect, filter out the repository in the image settings so that the sis-repo repository in the image does not take effect.