Skip to content

설정 가이드 (config.yaml) ​

OneTTS는 프로젝트 루트에 위치한 config.yaml 파일을 통해 중앙 집중식으로 설정됩니다.


📄 전체 설정 예시 ​

yaml
# API Key (모든 엔드포인트 요청 시 필수)
api_key: sk-onetts-v1-k9L3mX8QZ2sT4vA7wE1rY6u

# TTS 툴킷 설정
TTS-Toolkit:
  cache:
    enable: true
    cache_dir: "data/outputs/cache"
    max_cache_size_mb: 1024

  text_splitter:
    enable: true
    max_chunk_chars: 80
    split_delimiters: "。!?!?;;
"

# TTS Provider 설정
TTS-Providers:
  edgetts:
    enable: true
    engine: edgetts
    default_voice: "zh-CN-XiaoxiaoNeural"
    voice_aliases:
      alloy: "zh-CN-XiaoxiaoNeural"
      echo: "zh-CN-YunxiNeural"
      fable: "zh-CN-YunjianNeural"
      onyx: "zh-CN-YunyangNeural"
      nova: "zh-CN-XiaoyiNeural"
      shimmer: "zh-CN-liaoning-XiaobeiNeural"

  openai:
    enable: false
    engine: openai
    base_url: "https://api.openai.com/v1"
    api_key: ""
    models: ["tts-1", "tts-1-hd"]

Released under the Apache-2.0 License.