Skip to content

Commit

Permalink
update melotts add model name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abandon-ht committed Nov 20, 2024
1 parent 4cb0d64 commit 7de1d92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/api_melotts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ String ApiMelotts::setup(ApiMelottsSetupConfig_t config, String request_id)
inputArray.add(str);
}
doc["data"]["enoutput"] = config.enoutput;
doc["data"]["enoutput"] = config.enaudio;
doc["data"]["enaudio"] = config.enaudio;
serializeJson(doc, cmd);
}

Expand Down
6 changes: 3 additions & 3 deletions src/api/api_melotts.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
namespace m5_module_llm {

struct ApiMelottsSetupConfig_t {
String model = "";
String response_format = "tts.base64.wav";
String model = "melotts_zh-cn";
String response_format = "sys.pcm";
std::vector<String> input = {"sys.pcm"};
bool enoutput = false;
bool enaudio = false;
bool enaudio = true;
};

class ApiMelotts {
Expand Down

0 comments on commit 7de1d92

Please sign in to comment.