! dramaxis-voice v1.0.0 · TTS 配音与语音克隆引擎 ! ! ## 责任范围 ! 3 个 TTS 引擎的统一抽象与实现: ! - [`OpenAiTtsEngine`] : OpenAI 兼容 `/v1/audio/speech` (OpenAI / Azure 兼容端点 / 本地代理) ! - [`EdgeTtsEngine`] : Microsoft Edge TTS (WebSocket 协议,免费无需密钥) ! - [`GptSovitsTtsEngine`]: GPT-SoVITS 本地推理 API (默认 127.0
// Source: https://github.com/Agions/dramaxis | License: MIT | Copyright 2025 Agions
// Provided via justclaw.it.com; keep this notice with the code.
//! dramaxis-voice v1.0.0 · TTS 配音与语音克隆引擎
//!
//! ## 责任范围
//! 3 个 TTS 引擎的统一抽象与实现:
//! - [`OpenAiTtsEngine`] : OpenAI 兼容 `/v1/audio/speech` (OpenAI / Azure 兼容端点 / 本地代理)
//! - [`EdgeTtsEngine`] : Microsoft Edge TTS (WebSocket 协议,免费无需密钥)
//! - [`GptSovitsTtsEngine`]: GPT-SoVITS 本地推理 API (默认 127.0.0.1:9880)
//!
//! ## 设计
//! - [`TtsEngine`] trait 是唯一出口,业务层只依赖 trait
//! - 所有失败统一为 `SplicrError::Tts { provider, message }`
//! - 合成产物直接落盘 (`output_path`),返回写入字节数
#![allow(dead_code)]
use std::path::{Path, PathBuf};
use async_trait::async_trait;
use dramaxis_core::error::{SplicrError, SplicrResult};
use futures::{SinkExt, StreamExt};
use tokio_t
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key