diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e66dd6a..2768256 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile { "name": "azure_tts", - "image": "ghcr.io/ten-framework/ten_agent_build:0.3.2", + "image": "ghcr.io/ten-framework/ten_agent_build:0.3.3", "customizations": { "vscode": { "extensions": [ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 431d1fa..2e239ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: matrix: build_type: [debug, release] container: - image: ghcr.io/ten-framework/ten_agent_build:0.3.2 + image: ghcr.io/ten-framework/ten_agent_build:0.3.3 steps: - uses: actions/checkout@v4 with: diff --git a/README.md b/README.md index 8ce55dc..0945657 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ TEN extension of [azure Text to speech service](https://learn.microsoft.com/en-u Only `linux/amd64` building inside container is supported at the moment. ```bash -# inside docker ghcr.io/ten-framework/ten_agent_build:0.3.2 +# inside docker ghcr.io/ten-framework/ten_agent_build:0.3.3 task build ``` diff --git a/manifest.json b/manifest.json index 7338b18..f8f79a6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,12 +1,12 @@ { "type": "extension", "name": "azure_tts", - "version": "0.7.0", + "version": "0.7.1", "dependencies": [ { "type": "system", "name": "ten_runtime", - "version": "0.5" + "version": "0.6" }, { "type": "system", diff --git a/src/main.cc b/src/main.cc index d979afa..ec1b388 100644 --- a/src/main.cc +++ b/src/main.cc @@ -15,12 +15,12 @@ #include "log.h" #include "ten_runtime/binding/cpp/ten.h" #include "ten_utils/macro/check.h" -#include "tts.h" #include "tmpl.h" +#include "tts.h" namespace azure_tts_extension { -std::string trimString(const std::string& input) { +std::string trimString(const std::string &input) { std::string result = input; std::string::size_type pos; @@ -43,7 +43,7 @@ std::string trimString(const std::string& input) { class azure_tts_extension_t : public ten::extension_t { public: - explicit azure_tts_extension_t(const std::string &name) : extension_t(name) {} + explicit azure_tts_extension_t(const char *name) : extension_t(name) {} // on_start will be called when the extension is starting, // properies can be read here to initialize and start the extension. @@ -166,11 +166,11 @@ class azure_tts_extension_t : public ten::extension_t { if (!language_.empty() && (!prosody_.empty() || !role_.empty() || !style_.empty())) { MsttsTemplate tmpl; auto ssml_text = tmpl.replace(json{{"role", role_}, - {"voice", voice_}, - {"lang", language_}, - {"style", style_}, - {"prosody", prosody_}, - {"text", text}}); + {"voice", voice_}, + {"lang", language_}, + {"style", style_}, + {"prosody", prosody_}, + {"text", text}}); AZURE_TTS_LOGI("input ssml text: [%s]", ssml_text.c_str()); azure_tts_->Push(ssml_text, true); } else {