本文整理汇总了PHP中FreePBX::Ttsengines方法的典型用法代码示例。如果您正苦于以下问题:PHP FreePBX::Ttsengines方法的具体用法?PHP FreePBX::Ttsengines怎么用?PHP FreePBX::Ttsengines使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FreePBX
的用法示例。
在下文中一共展示了FreePBX::Ttsengines方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ttsengines_delete_engine
ttsengines_delete_engine($_REQUEST['engineid']);
} else {
if ($_POST['edit']) {
ttsengines_update_engine($_POST['engineid'], $_POST['enginename'], $_POST['enginepath']);
} else {
if ($_POST['addengine']) {
ttsengines_add_engine($_POST['enginename'], $_POST['enginepath']);
}
}
}
$engines = ttsengines_get_all_engines();
$info = show_help(_('On this page you can manage text to speech engines on your system. When you add an engine you give it a name, and the full path to the engine on your system. After doing this the engine will be available on the text to speech page.'));
$heading = _('Text to Speech Engines');
$delurl = '';
if (isset($edit)) {
$data = \FreePBX::Ttsengines()->getEngine($edit);
$enginename = isset($data['name']) ? $data['name'] : '';
$enginepath = isset($data['path']) ? $data['path'] : '';
$delurl = '?display=ttsengines&delete=true&engineid=' . $edit . '&edit=' . $edit;
}
?>
<div class="container-fluid">
<h1><?php
echo $heading;
?>
</h1>
<?php
echo $info;
?>
<div class = "display full-border">
<div class="row">