@onereach/step-voice 7.0.0 → 7.0.1-VOIC1419.0

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.
@@ -8,6 +8,7 @@ interface INPUT {
8
8
  recordDurationSeconds: string;
9
9
  isTerminateOnSilence: boolean;
10
10
  silenceHits: string;
11
+ disableDefaultBeepSound: boolean;
11
12
  }
12
13
  interface EVENT extends VoiceEvent {
13
14
  mediaPath: string;
@@ -9,12 +9,13 @@ class Recording extends voice_1.default {
9
9
  const { tts, sensitiveData, textType } = this.data;
10
10
  const ttsSettings = tts.getSettings(call.tts);
11
11
  const sections = this.buildSections({ sections: this.data.audio, textType, ttsSettings });
12
- sections.push({
13
- // TODO make this configurable?
14
- url: 'https://bot-service-recordings.s3.us-west-2.amazonaws.com/beep_sound.wav',
15
- bargeInVoice: false,
16
- bargeInKeypad: false
17
- });
12
+ if (!this.data?.disableDefaultBeepSound) {
13
+ sections.push({
14
+ url: 'https://bot-service-recordings.s3.us-west-2.amazonaws.com/beep_sound.wav',
15
+ bargeInVoice: false,
16
+ bargeInKeypad: false
17
+ });
18
+ }
18
19
  const command = {
19
20
  name: 'start-record',
20
21
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.0",
3
+ "version": "7.0.1-VOIC1419.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",