См. определение в файле audio.php строка 21
◆ __construct()
SpeechRate constructor.
См. определение в файле audio.php строка 49
◆ create()
Create instance.
- Возвращает
- static
См. определение в файле audio.php строка 41
◆ createdFromPreset()
Does audio created from a preset
- Возвращает
- bool
См. определение в файле audio.php строка 151
◆ getDbValue()
Get value for db (as json string)
- Возвращает
- bool|string
- Исключения
-
См. определение в файле audio.php строка 187
◆ getDefaultFileUrl()
Get default audio preset url for player.
- Возвращает
- string
См. определение в файле audio.php строка 212
◆ getDuration()
get duration of current audio
- Возвращает
- integer
См. определение в файле audio.php строка 249
◆ getFileId()
Get file id
- Возвращает
- string
См. определение в файле audio.php строка 222
◆ getFileUrl()
getFileUrl |
( |
| $useAbsoluteUrl = false | ) |
|
Get audio file url
- Аргументы
-
bool | $useAbsoluteUrl | Force using absolute url. |
- Возвращает
- bool|string|null
- Исключения
-
Bitrix\Main\ArgumentNullException
- Исключения
-
Bitrix\Main\ArgumentOutOfRangeException
См. определение в файле audio.php строка 163
◆ getMessageCode()
Get message code
- Возвращает
- string
См. определение в файле audio.php строка 240
◆ getMp3fileDuration()
getMp3fileDuration |
( |
| $fileId | ) |
|
|
protected |
Get mp3 file duration
- Аргументы
-
- Возвращает
- int
См. определение в файле audio.php строка 290
◆ getPreset()
Get preset code
- Возвращает
- string
См. определение в файле audio.php строка 231
◆ getPresetFileDuration()
getPresetFileDuration |
( |
| $presetCode | ) |
|
|
protected |
Get preset audio duration
- Аргументы
-
string | $presetCode | Preset code. |
- Возвращает
- bool
См. определение в файле audio.php строка 270
◆ withFile()
withFile |
( |
| $fileId = null | ) |
|
With file.
- Аргументы
-
- Возвращает
- $this
См. определение в файле audio.php строка 127
◆ withJsonString()
With json value.
- Аргументы
-
string | $json | Value as json string from DB. |
- Возвращает
- $this
См. определение в файле audio.php строка 81
◆ withMessageCode()
withMessageCode |
( |
| $messageCode = null | ) |
|
With message code.
- Аргументы
-
string | $messageCode | Message code. |
- Возвращает
- $this
См. определение в файле audio.php строка 114
◆ withPreset()
withPreset |
( |
| $presetName = null | ) |
|
With preset.
- Аргументы
-
string | $presetName | Preset code. |
- Возвращает
- $this
См. определение в файле audio.php строка 140
◆ withValue()
With value.
- Аргументы
-
string | $value | Value from user interface. |
- Возвращает
- $this
См. определение в файле audio.php строка 59
◆ AUDIO_TYPE_FILE
const AUDIO_TYPE_FILE = 'file' |
◆ AUDIO_TYPE_PRESET
const AUDIO_TYPE_PRESET = 'preset' |