Method: projects.locations.customClasses.create

맞춤 클래스를 만듭니다.

HTTP 요청

POST https://speech.googleapis.com/v1p1beta1/{parent=projects/*/locations/*}/customClasses

URL은 gRPC 트랜스코딩 문법을 사용합니다.

경로 매개변수

매개변수
parent

string

필수 항목입니다. 이 맞춤 클래스가 생성될 상위 리소스입니다. 형식:

projects/{project}/locations/{location}/customClasses

Speech-to-Text는 global, us (미국 북미), eu (유럽)의 세 위치를 지원합니다. speech.googleapis.com 엔드포인트를 호출하는 경우 global 위치를 사용합니다. 리전을 지정하려면 일치하는 us 또는 eu 위치 값이 있는 리전 엔드포인트를 사용하세요.

승인을 처리하려면 지정된 리소스 parent에 대해 다음과 같은 IAM 권한이 필요합니다.

  • speech.customClasses.create

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "customClassId": string,
  "customClass": {
    object (CustomClass)
  }
}
필드
customClassId

string

필수 항목입니다. 맞춤 클래스에 사용할 ID이며, 맞춤 클래스의 리소스 이름에서 마지막 구성요소가 됩니다.

이 값은 문자, 숫자, 하이픈으로 제한되어야 하며, 첫 글자는 문자, 마지막 글자는 문자 또는 숫자여야 하고, 4~63자(영문 기준)여야 합니다.

customClass

object (CustomClass)

필수 항목입니다. 만들 맞춤 클래스입니다.

응답 본문

성공한 경우 응답 본문에 새로 생성된 CustomClass의 인스턴스가 포함됩니다.

승인 범위

다음 OAuth 범위가 필요합니다.

  • https://www.googleapis.com/auth/cloud-platform

자세한 내용은 Authentication Overview를 참조하세요.