@rimelabs/sdk 0.1.0-alpha.4 → 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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
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)
4
11
 
5
12
 
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
- for await (const response of this.call) {
207
- if (response.audio.length)
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 response.audio;
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.4",
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.2"
39
+ "@rimelabs/api": "0.1.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^22.0.0",