All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::NLS::Project

更新時間:Jul 25, 2024

ALIYUN::NLS::Project is used to create a project in Intelligent Speech Interaction.

Syntax

{
  "Type": "ALIYUN::NLS::Project",
  "Properties": {
    "Name": String,
    "ProjectType": String,
    "Description": String,
    "SdkType": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Name

String

Yes

No

The project name.

None.

ProjectType

String

Yes

No

The project type.

Valid values:

  • SpeechRecognitionOnly

  • SpeechRecognitionAndSynthesisAndAnalysis

  • DeviceSDKSolution

  • SpeechSynthesisOnly

Description

String

No

No

The description of the project.

None.

SdkType

String

No

No

The SDK type.

Valid values:

  • ProTTSOfflineSDK

  • DeviceSideSolutionSDK

  • StandardTTSOfflineSDK

Return values

Fn::GetAtt

  • AppKey: the appkey of the project.

  • ProjectId: the project ID.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  Project:
    Type: ALIYUN::NLS::Project
    Properties:
      ProjectType: SpeechRecognitionOnly
      Name: test
Outputs:
  AppKey:
    Description: The app key of the project.
    Value:
      Fn::GetAtt:
        - Project
        - AppKey
  ProjectId:
    Description: The ID of the project.
    Value:
      Fn::GetAtt:
        - Project
        - ProjectId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "Project": {
      "Type": "ALIYUN::NLS::Project",
      "Properties": {
        "ProjectType": "SpeechRecognitionOnly",
        "Name": "test"
      }
    }
  },
  "Outputs": {
    "AppKey": {
      "Description": "The app key of the project.",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "AppKey"
        ]
      }
    },
    "ProjectId": {
      "Description": "The ID of the project.",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "ProjectId"
        ]
      }
    }
  }
}