File tree 5 files changed +13
-13
lines changed
5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
3
3
{
4
4
"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 " ,
6
6
"customizations" : {
7
7
"vscode" : {
8
8
"extensions" : [
Original file line number Diff line number Diff line change 27
27
matrix :
28
28
build_type : [debug, release]
29
29
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
31
31
steps :
32
32
- uses : actions/checkout@v4
33
33
with :
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ TEN extension of [azure Text to speech service](https://learn.microsoft.com/en-u
28
28
Only ` linux/amd64 ` building inside container is supported at the moment.
29
29
30
30
``` 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
32
32
33
33
task build
34
34
```
Original file line number Diff line number Diff line change 1
1
{
2
2
"type" : " extension" ,
3
3
"name" : " azure_tts" ,
4
- "version" : " 0.7.0 " ,
4
+ "version" : " 0.7.1 " ,
5
5
"dependencies" : [
6
6
{
7
7
"type" : " system" ,
8
8
"name" : " ten_runtime" ,
9
- "version" : " 0.5 "
9
+ "version" : " 0.6 "
10
10
},
11
11
{
12
12
"type" : " system" ,
Original file line number Diff line number Diff line change 15
15
#include " log.h"
16
16
#include " ten_runtime/binding/cpp/ten.h"
17
17
#include " ten_utils/macro/check.h"
18
- #include " tts.h"
19
18
#include " tmpl.h"
19
+ #include " tts.h"
20
20
21
21
namespace azure_tts_extension {
22
22
23
- std::string trimString (const std::string& input) {
23
+ std::string trimString (const std::string & input) {
24
24
std::string result = input;
25
25
std::string::size_type pos;
26
26
@@ -43,7 +43,7 @@ std::string trimString(const std::string& input) {
43
43
44
44
class azure_tts_extension_t : public ten ::extension_t {
45
45
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) {}
47
47
48
48
// on_start will be called when the extension is starting,
49
49
// properies can be read here to initialize and start the extension.
@@ -166,11 +166,11 @@ class azure_tts_extension_t : public ten::extension_t {
166
166
if (!language_.empty () && (!prosody_.empty () || !role_.empty () || !style_.empty ())) {
167
167
MsttsTemplate tmpl;
168
168
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}});
174
174
AZURE_TTS_LOGI (" input ssml text: [%s]" , ssml_text.c_str ());
175
175
azure_tts_->Push (ssml_text, true );
176
176
} else {
You can’t perform that action at this time.
0 commit comments