文档

ALIYUN::NLS::Project

更新时间:

ALIYUN::NLS::Project类型用于创建智能语音交互项目。

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

Name

String

项目名称。

ProjectType

String

项目类型。

取值:

  • SpeechRecognitionOnly:仅语音识别。

  • SpeechRecognitionAndSynthesisAndAnalysis:语音识别+语音合成+语音分析。

  • DeviceSDKSolution:设备端解决方案。

  • SpeechSynthesisOnly:语音合成

Description

String

项目描述。

SdkType

String

SDK类型。

取值:

  • ProTTSOfflineSDK:专业版SDK。

  • DeviceSideSolutionSDK:面向设备端的解决方案SDK

  • StandardTTSOfflineSDK:标准版SDK.

返回值

Fn::GetAtt

  • AppKey:项目AppKey。

  • ProjectId:项目ID。

示例

YAML格式

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格式

{
  "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"
        ]
      }
    }
  }
}