단어장

TTS API와 연동 가능한 발음 사전 관리

개요

단어장 API를 사용하여 조직별 커스텀 발음 사전을 관리하세요. TTS 요청 시 자동으로 텍스트를 대체하여 정확한 발음을 보장합니다.

조직별 커스텀 발음 사전

TTS 요청 시 자동 텍스트 대체

대소문자 구분 옵션

요금제별 제한

요금제별 제한

요금제에 따라 생성 가능한 단어장 개수가 제한됩니다.

Plan단어장 개수단어장당 항목
무료0-
스타터3100
프로10500
엔터프라이즈1001000

API 엔드포인트

https://agitvxptajouhvoatxio.supabase.co/functions/v1/dictionaries-v1

Required Headers

X-API-Key: {YOUR_API_KEY}
Content-Type: application/json
POSThttps://agitvxptajouhvoatxio.supabase.co/functions/v1/dictionaries-v1

새로운 단어장을 생성합니다

// Request

{
  "name": "string",
  "description": "string",
  "caseSensitive": boolean
}

// Response (201 Created)

{
  "id": "uuid"
}
GEThttps://agitvxptajouhvoatxio.supabase.co/functions/v1/dictionaries-v1

모든 단어장 목록을 조회합니다

// Response (200 OK)

{
  "dictionaries": [
    {
      "id": "uuid",
      "name": "string",
      "description": "string",
      "caseSensitive": boolean
    }
  ]
}
GEThttps://agitvxptajouhvoatxio.supabase.co/functions/v1/dictionaries-v1/{id}

특정 단어장의 상세 정보를 조회합니다

// Response (200 OK)

{
  "id": "uuid",
  "name": "string",
  "description": "string",
  "entries": {
    "sourceText": "targetText"
  },
  "caseSensitive": boolean,
  "createdAt": "ISO 8601 datetime (UTC)",
  "updatedAt": "ISO 8601 datetime (UTC)"
}
PATCHhttps://agitvxptajouhvoatxio.supabase.co/functions/v1/dictionaries-v1/{id}

단어장 정보 및 항목을 업데이트합니다 (모든 필드 선택적, 최소 1개 필수)

// Request

{
  "name": "string",
  "description": "string",
  "caseSensitive": boolean,
  "entries": {
    "sourceText": "targetText"
  }
}

최소 1개 필드 필수

// Response (200 OK)

// body 없음
DELETEhttps://agitvxptajouhvoatxio.supabase.co/functions/v1/dictionaries-v1/{id}

단어장을 삭제합니다

// Response (200 OK)

// body 없음

TTS API와 연동

DIVE 또는 FRTTS API 요청 시 dictionaryId 파라미터에 단어장 ID를 포함하세요

TTS API Request Body

{
  "text": "AI와 API를 사용한 TTS 테스트",
  "dictionaryId": "{DICTIONARY_ID}",
  // ... other TTS parameters
}

// The text will be automatically replaced:
// "에이아이와 에이피아이를 사용한 티티에스 테스트"