whio-api-sdk 1.0.11 → 1.0.12

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.
@@ -327,7 +327,7 @@ export class ApiSDK {
327
327
  transcribeBase64Audio(base64String) {
328
328
  return __awaiter(this, void 0, void 0, function* () {
329
329
  const transcript = yield this.request(urls.transcribeBase64Audio, 'POST', { base64Audio: base64String });
330
- return transcript;
330
+ return transcript.transcript;
331
331
  });
332
332
  }
333
333
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -399,11 +399,11 @@ export class ApiSDK {
399
399
  }
400
400
 
401
401
  public async transcribeBase64Audio(base64String: String): Promise<String> {
402
- const transcript = await this.request<String>(
402
+ const transcript = await this.request<any>(
403
403
  urls.transcribeBase64Audio,
404
404
  'POST',
405
405
  { base64Audio: base64String });
406
- return transcript;
406
+ return transcript.transcript;
407
407
  }
408
408
 
409
409
  }