@xapp/stentor-text-to-speech 1.43.34 → 1.43.38

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.
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type TTSServiceAmazonPolly = "amznPolly";
2
+ export type TTSServiceAmazonPolly = "amznPolly";
3
3
  export declare const TTS_SERVICE_AMAZON_POLLY: TTSServiceAmazonPolly;
4
- export declare type TTSServices = TTSServiceAmazonPolly;
5
- export declare type TTSVoiceId = "Geraint" | "Gwyneth" | "Mads" | "Naja" | "Hans" | "Marlene" | "Nicole" | "Russell" | "Amy" | "Brian" | "Emma" | "Raveena" | "Ivy" | "Joanna" | "Joey" | "Justin" | "Kendra" | "Kimberly" | "Salli" | "Conchita" | "Enrique" | "Miguel" | "Penelope" | "Chantal" | "Celine" | "Mathieu" | "Dora" | "Karl" | "Carla" | "Giorgio" | "Mizuki" | "Liv" | "Lotte" | "Ruben" | "Ewa" | "Jacek" | "Jan" | "Maja" | "Ricardo" | "Vitoria" | "Cristiano" | "Ines" | "Carmen" | "Maxim" | "Tatyana" | "Astrid" | "Filiz";
4
+ export type TTSServices = TTSServiceAmazonPolly;
5
+ export type TTSVoiceId = "Geraint" | "Gwyneth" | "Mads" | "Naja" | "Hans" | "Marlene" | "Nicole" | "Russell" | "Amy" | "Brian" | "Emma" | "Raveena" | "Ivy" | "Joanna" | "Joey" | "Justin" | "Kendra" | "Kimberly" | "Salli" | "Conchita" | "Enrique" | "Miguel" | "Penelope" | "Chantal" | "Celine" | "Mathieu" | "Dora" | "Karl" | "Carla" | "Giorgio" | "Mizuki" | "Liv" | "Lotte" | "Ruben" | "Ewa" | "Jacek" | "Jan" | "Maja" | "Ricardo" | "Vitoria" | "Cristiano" | "Ines" | "Carmen" | "Maxim" | "Tatyana" | "Astrid" | "Filiz";
@@ -7,18 +7,6 @@ const stentor_utils_1 = require("stentor-utils");
7
7
  const querystring_1 = require("querystring");
8
8
  const Constants_1 = require("./Constants");
9
9
  class TTSURLBuilder extends patterns_1.AbstractBuilder {
10
- constructor(props) {
11
- super();
12
- this._baseUrl = "https://api.xapp.media";
13
- this._service = Constants_1.TTS_SERVICE_AMAZON_POLLY;
14
- this._voiceId = "Joanna";
15
- if (props) {
16
- this._baseUrl = props.baseUrl || this._baseUrl;
17
- this._organizationId = props.organizationId || this._organizationId;
18
- this._service = props.service || this._service;
19
- this._voiceId = props.voiceId || this._voiceId;
20
- }
21
- }
22
10
  get baseUrl() {
23
11
  return this._baseUrl;
24
12
  }
@@ -34,6 +22,18 @@ class TTSURLBuilder extends patterns_1.AbstractBuilder {
34
22
  get text() {
35
23
  return this._text;
36
24
  }
25
+ constructor(props) {
26
+ super();
27
+ this._baseUrl = "https://api.xapp.media";
28
+ this._service = Constants_1.TTS_SERVICE_AMAZON_POLLY;
29
+ this._voiceId = "Joanna";
30
+ if (props) {
31
+ this._baseUrl = props.baseUrl || this._baseUrl;
32
+ this._organizationId = props.organizationId || this._organizationId;
33
+ this._service = props.service || this._service;
34
+ this._voiceId = props.voiceId || this._voiceId;
35
+ }
36
+ }
37
37
  /**
38
38
  * Set the organization ID
39
39
  *
@@ -1 +1 @@
1
- {"version":3,"file":"TTSURLBuilder.js","sourceRoot":"","sources":["../src/TTSURLBuilder.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,6CAAiD;AACjD,iDAAwC;AACxC,6CAAqC;AACrC,2CAAgF;AAShF,MAAa,aAAc,SAAQ,0BAAuB;IA0BtD,YAAY,KAA0B;QAClC,KAAK,EAAE,CAAC;QAvBJ,aAAQ,GAAW,wBAAwB,CAAC;QAU5C,aAAQ,GAAgB,oCAAwB,CAAC;QAKjD,aAAQ,GAAe,QAAQ,CAAC;QAUpC,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC;YAC/C,IAAI,CAAC,eAAe,GAA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AC,CAAC;SACpD;QAED,GAAG,IAAI,SAAS,IAAA,oBAAM,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAEpC,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,GAAG,IAAI,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC;SACrC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AA3HD,sCA2HC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.43.34",
7
+ "version": "1.43.38",
8
8
  "description": "Text to speech for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -20,12 +20,12 @@
20
20
  "@xapp/config": "0.2.3",
21
21
  "chai": "4.3.7",
22
22
  "mocha": "10.2.0",
23
- "stentor-models": "1.57.19",
24
- "stentor-utils": "1.57.20",
25
- "typescript": "4.8.4"
23
+ "stentor-models": "1.57.39",
24
+ "stentor-utils": "1.57.39",
25
+ "typescript": "4.9.4"
26
26
  },
27
27
  "dependencies": {
28
- "@xapp/patterns": "1.43.34",
28
+ "@xapp/patterns": "1.43.38",
29
29
  "query-string": "7.1.3"
30
30
  },
31
31
  "peerDependencies": {
@@ -36,5 +36,5 @@
36
36
  "build": "tsc -d true -p .",
37
37
  "clean": "rm -rf ./lib/*"
38
38
  },
39
- "gitHead": "b2f73ff84e98dacf2581cf5573b4be30490e0a2f"
39
+ "gitHead": "20cf1f5889cc4a3ac7531b91178bc1ba63e1decd"
40
40
  }