Skip to content

一个聚合调用TTS的统一接口,便于快速调用各类TTS项目实现文本转语音

Notifications You must be signed in to change notification settings

the-lazy-me/One-TTS

Repository files navigation

One-TTS

一个用于将多个TTS平台聚合管理调用的后端Python项目。

安装

  1. 克隆项目:
git clone https://github.com/the-lazy-me/One-TTS.git
cd One-TTS
  1. 安装依赖:
pip install -r requirements.txt

使用方法

  1. 配置文件config/config.yaml

    # API服务配置
    api_server:
      host: "0.0.0.0"
      port: 5555
      base_url: "http://localhost:5555"
      debug: false # 默认关闭debug模式
    
    # TTS平台配置
    platforms:
      # 海豚Ai配音,地址:https://www.ttson.cn/
      ttson:
        base_url: "https://ht.ttson.cn:37284"
        token: "your_token_here"
        network_proxies:
          http: null
          https: null
    
      # TTS-Online,实际也是海豚Ai的,地址:https://acgn.ttson.cn/
      acgn_ttson:
        base_url: "https://ht.ttson.cn:37284"
        token: "your_token_here"
        network_proxies:
          http: null
          https: null
    
      # Fish Audio,地址:https://fish.audio/
      fish_audio:
        base_url: "https://api.fish.audio"
        token: "your_token_here"
        network_proxies:
          http: "http://127.0.0.1:7890"
          https: "http://127.0.0.1:7890"
  2. 运行示例程序:

python main.py

支持的平台

配置说明

  1. 复制示例配置文件:

About

一个聚合调用TTS的统一接口,便于快速调用各类TTS项目实现文本转语音

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published