@rimelabs/sdk 0.1.0-alpha.3 → 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/transport.js +7 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.0-alpha.5](https://github.com/rimelabs/rime-sdk/compare/typescript-v0.1.0-alpha.4...typescript-v0.1.0-alpha.5) (2026-09-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* support API 0.1.0 in Python and TypeScript SDKs ([#16](https://github.com/rimelabs/rime-sdk/issues/16)) ([af0f646](https://github.com/rimelabs/rime-sdk/commit/af0f6467ffe662673e13a4f943351d4c8b88e0fa))
|
|
9
|
+
|
|
10
|
+
## [0.1.0-alpha.4](https://github.com/rimelabs/rime-sdk/compare/typescript-v0.1.0-alpha.3...typescript-v0.1.0-alpha.4) (2026-09-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** bump @rimelabs/api from 0.0.1 to 0.0.2 in /typescript ([8a57747](https://github.com/rimelabs/rime-sdk/commit/8a57747e6e07edfa7ec4f44238fb7074b7e010ab))
|
|
16
|
+
|
|
3
17
|
## [0.1.0-alpha.3](https://github.com/rimelabs/rime-sdk/compare/typescript-v0.1.0-alpha.2...typescript-v0.1.0-alpha.3) (2026-09-28)
|
|
4
18
|
|
|
5
19
|
|
package/dist/transport.js
CHANGED
|
@@ -203,10 +203,14 @@ export class SynthesisCall {
|
|
|
203
203
|
try {
|
|
204
204
|
const metadata = await abortable(this.metadataPromise, this.signal);
|
|
205
205
|
const contentType = metadata.get("x-rime-audio-content-type")[0];
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
const responses = this.call;
|
|
207
|
+
for await (const response of responses) {
|
|
208
|
+
if (response.payload.case !== "audio")
|
|
209
|
+
continue;
|
|
210
|
+
const audio = response.payload.value;
|
|
211
|
+
if (audio.length)
|
|
208
212
|
this.checkFormat(contentType);
|
|
209
|
-
yield
|
|
213
|
+
yield audio;
|
|
210
214
|
}
|
|
211
215
|
const status = await abortable(this.statusPromise, this.signal);
|
|
212
216
|
if (status.code !== grpc.status.OK)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimelabs/sdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"description": "Rime streaming text-to-speech SDK for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@bufbuild/protobuf": "^2.11.0",
|
|
38
38
|
"@grpc/grpc-js": "^1.14.0",
|
|
39
|
-
"@rimelabs/api": "0.0
|
|
39
|
+
"@rimelabs/api": "0.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^22.0.0",
|