Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ unSpeech lets you use various online TTS with OpenAI-compatible API.
- [Alibaba Cloud Model Studio / 阿里云百炼 / CosyVoice](https://www.alibabacloud.com/en/product/modelstudio)
- [Volcano Engine / 火山引擎语音技术](https://www.volcengine.com/product/voice-tech)
- [ElevenLabs](https://elevenlabs.io/docs/api-reference/text-to-speech/convert)
- [MiniMax](https://platform.minimaxi.com/docs/guides/speech-t2a-http)
- [Koemotion (by Rinna)](https://koemotion.rinna.co.jp/)

## Getting Started
Expand Down
5 changes: 5 additions & 0 deletions pkg/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/moeru-ai/unspeech/pkg/backend/elevenlabs"
"github.com/moeru-ai/unspeech/pkg/backend/koemotion"
"github.com/moeru-ai/unspeech/pkg/backend/microsoft"
"github.com/moeru-ai/unspeech/pkg/backend/minimax"
"github.com/moeru-ai/unspeech/pkg/backend/openai"
"github.com/moeru-ai/unspeech/pkg/backend/types"
"github.com/moeru-ai/unspeech/pkg/backend/volcengine"
Expand Down Expand Up @@ -37,6 +38,8 @@ func Speech(c echo.Context) mo.Result[any] {
return volcengine.HandleSpeech(c, utils.ResultToOption(options))
case "ali", "aliyun", "alibaba", "bailian", "alibaba-model-studio":
return alibaba.HandleSpeech(c, utils.ResultToOption(options))
case "minimax", "minimax-tts":
return minimax.HandleSpeech(c, utils.ResultToOption(options))
default:
return mo.Err[any](apierrors.NewErrBadRequest().WithDetail("unsupported backend"))
}
Expand All @@ -63,6 +66,8 @@ func Voices(c echo.Context) mo.Result[any] {
return volcengine.HandleVoices(c, utils.ResultToOption(options))
case "ali", "aliyun", "alibaba", "bailian", "alibaba-model-studio":
return alibaba.HandleVoices(c, utils.ResultToOption(options))
case "minimax", "minimax-tts":
return minimax.HandleVoices(c, utils.ResultToOption(options))
default:
return mo.Err[any](apierrors.NewErrBadRequest().WithDetail("unsupported backend"))
}
Expand Down
Loading