feat: support openai tts

This commit is contained in:
Hk-Gosuto
2024-03-03 15:15:23 +08:00
parent d2733a9128
commit c3656609ab
17 changed files with 475 additions and 20 deletions

View File

@@ -42,6 +42,8 @@ const cn = {
PinToastAction: "查看",
Delete: "删除",
Edit: "编辑",
Speech: "播放",
StopSpeech: "停止",
},
Commands: {
new: "新建聊天",
@@ -373,6 +375,25 @@ const cn = {
SubTitle: "是否返回插件调用的中间步骤",
},
},
TTS: {
Enable: {
Title: "启用文本转语音",
SubTitle: "启用基于 OpenAI 的文本生成语音服务",
},
Autoplay: {
Title: "启用自动播放",
SubTitle: "自动生成语音并播放,需先开启文本转语音开关",
},
Model: "模型",
Voice: {
Title: "声音",
SubTitle: "生成语音时使用的声音",
},
Speed: {
Title: "速度",
SubTitle: "生成语音的速度",
},
},
},
Store: {
DefaultTopic: "新的聊天",

View File

@@ -44,6 +44,8 @@ const en: LocaleType = {
PinToastAction: "View",
Delete: "Delete",
Edit: "Edit",
Speech: "Play",
StopSpeech: "Stop",
},
Commands: {
new: "Start a new chat",
@@ -379,6 +381,26 @@ const en: LocaleType = {
SubTitle: "Return Intermediate Steps",
},
},
TTS: {
Enable: {
Title: "Enable TTS",
SubTitle: "Enable text-to-speech service based on OpenAI",
},
Autoplay: {
Title: "Enable Autoplay",
SubTitle:
"Automatically generate speech and play, you need to enable the text-to-speech switch first",
},
Model: "Model",
Voice: {
Title: "Voice",
SubTitle: "The voice to use when generating the audio",
},
Speed: {
Title: "Speed",
SubTitle: "The speed of the generated audio",
},
},
},
Store: {
DefaultTopic: "New Conversation",