Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

1. Description

It is designed to generate a voice from a given text.

This component is present in flow types like:

  • Voice.

The block (Fig.1(1)) is used in space to build the Flow. The settings panel for this component opens (Fig.1(2)) when you click on the block.

Fig.1. Text-to-Speech component

1.1. Text-to-Speech block

The block consists of the following elements:

  1. The name of the component;
  2. in branch - receiving (connecting with the previous block) branch;
  3. out branch - outgoing (connecting with the following block) branch.

1.2. Text-to-Speech settings panel

It consists of the following elements:

  1. Provider;
  2. Key;
  3. Token;
  4. Language;
  5. Voice;
  6. Region;
  7. Add your custom flags here;
  8. ;
  9. Text;
  10. Get speech;
  11. Get digits;
  12. Break;
  13. Add limit.

1.2.1. Provider

Here you can choose where the voice will be generated.

The following options are available:

  • google;
  • microsoft;
  • yandex.

1.2.2. Key

When you select microsoft, an additional Key field appears in which you must enter the key.

1.2.3. Token

When you select yandex, an additional Token field appears in which you must enter the authorization token.

1.2.4. Language

Here you can select the language in which you want to voice the text.

1.2.5.Voice

Here you can select the voice that will be used to voice the given text.

1.2.6. Region

The field is present when microsoft is selected in the Provider field.

It is designed to select a region.

1.2.7. Add your custom flags here

The field is present when google is selected in the Provider field.

The field for adding custom flags by writing code in JSON format.

1.2.8.

The field for selecting the type of text. The following options are available:

  • ssml (speech synthesis markup language) is an XML-based markup language for speech synthesis applications;
  • text - regular text.

1.2.9. Text

Here you enter the text you want to convert to audio.

1.2.10. Get speech

It is designed to recognize what the subscriber says while listening to the sounds configured in this component.

It consists of the following elements:

  1. Get speech;
  2. Timeout.

Recognized speech is stored in a variable - google_transcript

1.2.10.1. Get speech

It is designed to enable/disable the ability to recognize what the subscriber says while listening to the sounds configured in this component.

1.2.10.2. Timeout

Here you can enter the number of milliseconds after the end of the speech when we still recognize what the subscriber is saying.

Only one of the Get speech or Get digits switches can be in an active position at a time.

1.2.11. Get digits

It is designed to receive information about what the subscriber presses on the phone while listening to the sounds configured in this component.

It consists of the following elements:

  1. Get digits;
  2. Min;
  3. Max;
  4. Set result to variable;
  5. Tries;
  6. Flush DTMF.

1.2.11.1. Get digits

It is designed to enable/disable the ability to receive information about what the subscriber presses on the phone while listening to the sounds configured in this component.

1.2.11.2. Min

Here you enter the minimum number of digits we expect to receive from the subscriber.

1.2.11.3. Max

Here you enter the maximum number of digits we expect to receive from a subscriber.

1.2.11.4. Set result to variable

Here enters the variable's name to which the values selected by the subscriber will be recorded while listening to the sounds configured in this component.

When the Get speech switch is enabled, the recognized speech of the subscriber is written to the variable in the form of text.

When the Get digits switch is enabled, the digit(s) pressed by the subscriber is written to the variable.

Here you enter the waiting time for the subscriber to enter the required number of digits.

1.2.11.6. Tries

Here you enter the number of times the subscriber tries to enter the required number of digits.

1.2.11.7. Flush DTMF

Responsible for canceling the digits dialed to subscribers before the recording starts playing.

- cancels the numbers dialed to subscribers;

- does not cancel the numbers dialed to subscribers.

1.2.12. Break

Responsible for the completion of the flow execution.

- initiates the end of the flow execution after the given component.

- the switch is in the off position.

1.2.13. Add limit

Unable to render {include} The included page could not be found.

Fig. 5. Setting a limit

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.