Skip to content

Commit e433f12

Browse files
committed
feat: update ten runtime to 0.6
1 parent 0bee664 commit e433f12

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
33
{
44
"name": "azure_tts",
5-
"image": "ghcr.io/ten-framework/ten_agent_build:0.3.2",
5+
"image": "ghcr.io/ten-framework/ten_agent_build:0.3.3",
66
"customizations": {
77
"vscode": {
88
"extensions": [

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
build_type: [debug, release]
2929
container:
30-
image: ghcr.io/ten-framework/ten_agent_build:0.3.2
30+
image: ghcr.io/ten-framework/ten_agent_build:0.3.3
3131
steps:
3232
- uses: actions/checkout@v4
3333
with:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TEN extension of [azure Text to speech service](https://learn.microsoft.com/en-u
2828
Only `linux/amd64` building inside container is supported at the moment.
2929

3030
```bash
31-
# inside docker ghcr.io/ten-framework/ten_agent_build:0.3.2
31+
# inside docker ghcr.io/ten-framework/ten_agent_build:0.3.3
3232

3333
task build
3434
```

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"type": "extension",
33
"name": "azure_tts",
4-
"version": "0.7.0",
4+
"version": "0.7.1",
55
"dependencies": [
66
{
77
"type": "system",
88
"name": "ten_runtime",
9-
"version": "0.5"
9+
"version": "0.6"
1010
},
1111
{
1212
"type": "system",

src/main.cc

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
#include "log.h"
1616
#include "ten_runtime/binding/cpp/ten.h"
1717
#include "ten_utils/macro/check.h"
18-
#include "tts.h"
1918
#include "tmpl.h"
19+
#include "tts.h"
2020

2121
namespace azure_tts_extension {
2222

23-
std::string trimString(const std::string& input) {
23+
std::string trimString(const std::string &input) {
2424
std::string result = input;
2525
std::string::size_type pos;
2626

@@ -43,7 +43,7 @@ std::string trimString(const std::string& input) {
4343

4444
class azure_tts_extension_t : public ten::extension_t {
4545
public:
46-
explicit azure_tts_extension_t(const std::string &name) : extension_t(name) {}
46+
explicit azure_tts_extension_t(const char *name) : extension_t(name) {}
4747

4848
// on_start will be called when the extension is starting,
4949
// properies can be read here to initialize and start the extension.
@@ -166,11 +166,11 @@ class azure_tts_extension_t : public ten::extension_t {
166166
if (!language_.empty() && (!prosody_.empty() || !role_.empty() || !style_.empty())) {
167167
MsttsTemplate tmpl;
168168
auto ssml_text = tmpl.replace(json{{"role", role_},
169-
{"voice", voice_},
170-
{"lang", language_},
171-
{"style", style_},
172-
{"prosody", prosody_},
173-
{"text", text}});
169+
{"voice", voice_},
170+
{"lang", language_},
171+
{"style", style_},
172+
{"prosody", prosody_},
173+
{"text", text}});
174174
AZURE_TTS_LOGI("input ssml text: [%s]", ssml_text.c_str());
175175
azure_tts_->Push(ssml_text, true);
176176
} else {

0 commit comments

Comments
 (0)