The operation is carried out synchronously, that is, control is transferred to the next component only after playback is completed.

Component Reproduction of numerals

:icons:font :hardbreaks: :imagesdir: ../../../assets/images :toc-title: Contents :toc:

Description

Constructs a phrase based on the number and specified format and then plays it back to the subscriber. +\

Numeral files for playback in runtime are located in the local automatically synchronized directory :SYNC in the subdirectory /common/standardexpressions/<VOICE>.

Table 1. System characteristics

Index

205

Short name

playnum

Script types

IVR

Start module

r_sip_ivr_script_component_playnum

Mode

Asynchronous

Icon

205

Branching type

Branching, interrupting

Properties

Table 2. Properties
Specification Description

Name: Number

Code: number

Visibility condition: no

Default: — 

An argument containing a playable numeral or type phrase.

Name: Language algorithm

Code: lang

Visibility condition: no Default: RUS

Selecting a language algorithm.

Possible options:

  • RUS (ru, 0) - Russian language.

  • ENG (en, 1) – English language.

Name: Format Code: mode Visibility condition: no

Default: Quantity

Select playback format.

Possible options:

  • By format (byformat, 0) – Select the format for constructing a phrase by meaning: splitting method.

  • Quantity (quantity, 1) – Numeral XXX, for example one hundred twenty three.

  • Ordinal number (ordinal, 2) – XXX, for example one hundred twenty-third. Applies gender.

  • Phone number (phone, 3) – XXX XXX-XX-XX, XXX-XX-XX, XX-XX-XX, XX-XX, XXX, for example nine hundred twenty-five sixty-three twenty.

  • Date (date, 4) – For example, the twenty-fifth of December two thousand and sixty.

  • Time (time, 5) – For example, thirteen hours twenty-five minutes.

  • Date/time (datetime, 6) – December twenty-fifth two thousand sixty thirteen hours twenty-five minutes.

  • Day of the week (weekday, 7) – For example, Monday.

  • Time without leading zeros (timewo0b, 8) – Time where leading zeros are not played, for example: twenty minutes zero seconds instead of zero hours twenty minutes zero seconds.

  • Time without trailing zeros (timewo0e, 9) – Time where trailing zeros are not played, for example: zero hours twenty minutes instead of zero hours twenty minutes zero seconds.

  • Time in seconds (timesec, 10) – For example, six hundred seconds.

  • Money, USD (moneyusd, 11) – XXX dollars or XXX dollars XX cents.

  • Money, EUR (moneyeur, 12) – XXX euros or XXX dollars XX euro cents.

  • Money, RUR (moneyrub, 13) – XXX rubles or XXX rubles XX kopecks.

  • Percentage (percent, 14) – XX percent.

It is important that the corresponding voice files are located in the directory of the selected voice, the file names must be in lower case.

Name: Playback type Code: format Visibility condition: yes

Default: Character by character

Selecting the method of voicing the numeral.

Possible options:

  • Character by character (sym1, 0) – Each digit of the number is spoken separately.

  • 2 characters each (sym2, 1) – Numbers are combined in pairs.

  • 3 characters each (sym3, 2) – Numbers are combined into groups of three.

  • Entirely (number, 3) – The number is spoken in its entirety.

  • Letters and numbers (letters, 4) – The meaning is pronounced in the form of separate letters (abbreviations) and numbers.

  • Words and phrases (words, 5) – Individual words are spoken, separated by spaces, previously voiced and presented in the voice-over catalogue.

Name: Rod Code: gender Visibility condition: yes

Default: Masculine

Select gender for endings when forming a phrase.

Possible options:

  • Male (masculine, 0)

  • Female (feminine, 1)

  • Medium (neuter, 2)

Name: Lower tone

Code: downTone

Visibility condition: no

Default: No

Switch for the mode of preferential use of an audio file with a decreasing tone at the end of the phrase.

Such files exist separately in voiceover directories and have the prefix _.

Name: Voice

Code: voice

Visibility condition: no

Default: — 

Voice selection. Directories with voice acting are located in assets.

Name: Interrupt characters

Code: interruptSymbols

Visibility condition: yes Default: — 

A string containing sequences of break characters separated by commas.

After detecting a character sequence at the end of the DTMF buffer that matches one of the specified interrupt sequences, the recording is automatically completed and the last portion of data is sent to the recognition service.

For example, *, 7, 123, 9395.

Name: Transition

Code: transfer

Visibility condition: no Default: — 

The component to which control is transferred if the operation completes successfully.

Name: Transition, error

Code: transferError

Visibility condition: no

Default: — 

Component to which control is transferred in case of an error.

See also