Часть информации взято отсюда
Конфигурация компьютера — i3/8Gb/1Tb/
Установлено: CentOS Linux release 7.6.1810 (Core)
Установлено: FusionPBX 4.4.3
Установлено: Freeswitch 1.6.20 (64 bit)
Добавляем UniMRCP
yum install freeswitch-asrtts-unimrcp
Можно проверить запуск модуля из fs_cli командой
load mod_unimrcp
Редактируем /etc/freeswitch/autoload_configs/modules.conf.xml
Добавляем строку:
<load module="mod_unimrcp"/>
Создаем файл /etc/freeswitch/mrcp_profiles/vn.xml
<include> <!-- VoiceNavigator --> <profile name="vn" version="1"> <param name="server-ip" value="192.168......"/> <!-- IP-адрес компьютера с VoiceNavigator --> <param name="server-port" value="8000"/> <!-- Порт подключения к MRCP-серверу --> <param name="resource-location" value=""/> <param name="speechsynth" value="tts"/> <param name="speechrecog" value="asr"/> <param name="rtp-ip" value="192.168........."/> <!--IP-адрес компьютера с FreeSWITCH--> <param name="rtp-port-min" value="32768"/> <param name="rtp-port-max" value="33268"/> <param name="codecs" value="PCMU PCMA L16/96/8000"/> </profile> </include>
Меняем владельца файла и выставляем права 664
chown -R freeswitch:daemon vn.xml
Изменяем файл /etc/freeswitch/autoload_configs/unimrcp.conf.xml
<!-- UniMRCP profile to use for TTS --> <param name="default-tts-profile" value="vn"/> <!-- UniMRCP profile to use for ASR --> <param name="default-asr-profile" value="vn"/>
Создаем папку /etc/freeswitch/grammar
Меняем права на папку
chown -R freeswitch:daemon grammar
Создаем файл /etc/freeswitch/grammar/digits.gram
<?xml version="1.0"?> <grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="ru-ru" version="1.0" mode="voice" root="test"> <rule id="test"> <one-of> <item>один</item> <item>два</item> <item>три</item> <item>четыре</item> <item>пять</item> <item>шесть</item> <item>семь</item> <item>восемь</item> <item>девять</item> <item>десять</item> </one-of> </rule> </grammar>
и меняем права на него
chown -R freeswitch:daemon digits.gram
После загрузки из FS_CLI командой
load mod_unimrcp
Получаем лог
+OK Reloading XML +OK 2019-02-10 23:00:56.150625 [INFO] mod_enum.c:879 ENUM Reloaded 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:3884 Config parsed ok! 2019-02-10 23:00:56.150625 [INFO] mod_unimrcp.c:4431 UniMRCP log level = DEBUG 2019-02-10 23:00:56.150625 [NOTICE] mrcp_client.c:172 () Create MRCP Client 2019-02-10 23:00:56.150625 [NOTICE] mrcp_resource_loader.c:90 () Register Resource [speechsynth] 2019-02-10 23:00:56.150625 [NOTICE] mrcp_resource_loader.c:90 () Register Resource [speechrecog] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:317 () Register Resource Factory 2019-02-10 23:00:56.150625 [INFO] mpf_codec_manager.c:57 () Register Codec [PCMU] 2019-02-10 23:00:56.150625 [INFO] mpf_codec_manager.c:57 () Register Codec [PCMA] 2019-02-10 23:00:56.150625 [INFO] mpf_codec_manager.c:57 () Register Codec [L16] 2019-02-10 23:00:56.150625 [NOTICE] mrcp_client_connection.c:79 () Create MRCPv2 Agent [MRCPv2ConnectionAgent] [100] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:454 () Register Connection Agent [MRCPv2ConnectionAgent] 2019-02-10 23:00:56.150625 [NOTICE] mpf_engine.c:69 () Create Media Engine [MediaEngine] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:349 () Register Media Engine [MediaEngine] 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4298 Loading MRCPv1 profile: vn 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param server-ip:IP_SERVER_VN 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param server-port:8000 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param resource-location: 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param speechsynth:tts 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param speechrecog:asr 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param rtp-ip:IP_ATS_FREESWITCH 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param rtp-port-min:32768 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param rtp-port-max:33268 2019-02-10 23:00:56.150625 [DEBUG] mod_unimrcp.c:4307 Loading Param codecs:PCMU PCMA L16/96/8000 2019-02-10 23:00:56.150625 [NOTICE] rtsp_client.c:167 () Create RTSP Client [vn] [100] 2019-02-10 23:00:56.150625 [NOTICE] mpf_rtp_termination_factory.c:199 () Create RTP Termination Factory IP_ATS_FREESWITCH:[32768,33268] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:373 () Register RTP Termination Factory [vn] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:390 () Register RTP Settings [RTP-Settings] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:431 () Register Signaling Settings [Signaling-Settings] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:407 () Register Signaling Agent [vn] 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:598 () Register Profile [vn] 2019-02-10 23:00:56.150625 [NOTICE] mrcp_application.c:43 () Create Application 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:648 () Register Application [synth] 2019-02-10 23:00:56.150625 [NOTICE] mrcp_application.c:43 () Create Application 2019-02-10 23:00:56.150625 [INFO] mrcp_client.c:648 () Register Application [recog] 2019-02-10 23:00:56.150625 [INFO] apt_task.c:155 () Start Task [MRCP Client] 2019-02-10 23:00:56.150625 [INFO] apt_task.c:155 () Start Task [MRCPv2ConnectionAgent] 2019-02-10 23:00:56.150625 [INFO] apt_task.c:155 () Start Task [MediaEngine] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:530 () Task Started [MediaEngine] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f3e4c00e810;0;1] 2019-02-10 23:00:56.150625 [INFO] apt_task.c:155 () Start Task [vn] 2019-02-10 23:00:56.150625 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f3e4c00e810;0;1] 2019-02-10 23:00:56.150625 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:530 () Task Started [MRCPv2ConnectionAgent] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f3e280008c0;0;1] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:530 () Task Started [vn] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f3e300013b0;0;1] 2019-02-10 23:00:56.150625 [DEBUG] apt_poller_task.c:251 () Wait for Messages [vn] 2019-02-10 23:00:56.150625 [DEBUG] apt_poller_task.c:251 () Wait for Messages [MRCPv2ConnectionAgent] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f3e280008c0;0;1] 2019-02-10 23:00:56.150625 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f3e300013b0;0;1] 2019-02-10 23:00:56.150625 [DEBUG] apt_task.c:530 () Task Started [MRCP Client] 2019-02-10 23:00:56.150625 [NOTICE] mrcp_client.c:722 () MRCP Client Started 2019-02-10 23:00:56.150625 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client] 2019-02-10 23:00:56.150625 [CONSOLE] switch_loadable_module.c:1540 Successfully Loaded [mod_unimrcp] 2019-02-10 23:00:56.150625 [NOTICE] switch_loadable_module.c:420 Adding Speech interface 'unimrcp' 2019-02-10 23:00:56.150625 [NOTICE] switch_loadable_module.c:441 Adding ASR interface 'unimrcp' 2019-02-10 23:00:56.190423 [INFO] switch_time.c:1423 Timezone reloaded 530 definitions
Устанавливаем SN-SetupPackage-Linux_2.0.66
Копируем дистрибутив и раскрываем архив
tar -xvf SN-SetupPackage-Linux_2.0.66.tar.gz
Устанавливаем
cd SN-SetupPackage-Linux_2.0.66 ./SpeechNavigator.sh
При выполнении происходит ошибка при установке пакета
stc-rs-2.0.562.24187-2.rhel7.x86_64.rpm:
Загружены модули: fastestmirror Проверка stc-rs-2.0.562.24187-2.rhel7.x86_64.rpm: stc-rs-2.0.562.24187-2.rhel7.x86_64 Разрешение зависимостей --> Проверка сценария ---> Пакет stc-rs.x86_64 0:2.0.562.24187-2.rhel7 помечен для установки --> Обработка зависимостей: libStcAsrDtmf.so.2.0.13()(64bit) пакета: stc-rs-2.0.562.24187-2.rhel7.x86_64 Loading mirror speeds from cached hostfile * base: mirror.reconn.ru * epel: mirror.logol.ru * extras: mirror.logol.ru * nux-dextop: mirror.li.nux.ro * updates: dedic.sh --> Обработка зависимостей: libStcAsrDtmf.so.2.0.264()(64bit) пакета: stc-rs-2.0.562.24187-2.rhel7.x86_64 --> Обработка зависимостей: libStcAsrSdk.so.4.37.1109()(64bit) пакета: stc-rs-2.0.562.24187-2.rhel7.x86_64 --> Обработка зависимостей: libStcAsrSrrs.so.2.0.13()(64bit) пакета: stc-rs-2.0.562.24187-2.rhel7.x86_64 --> Обработка зависимостей: libStcAsrSrrs.so.2.0.236()(64bit) пакета: stc-rs-2.0.562.24187-2.rhel7.x86_64 --> Проверка зависимостей окончена Ошибка: Пакет: stc-rs-2.0.562.24187-2.rhel7.x86_64 (/stc-rs-2.0.562.24187-2.rhel7.x86_64) Необходимо: libStcAsrDtmf.so.2.0.264()(64bit) Ошибка: Пакет: stc-rs-2.0.562.24187-2.rhel7.x86_64 (/stc-rs-2.0.562.24187-2.rhel7.x86_64) Необходимо: libStcAsrSrrs.so.2.0.236()(64bit) Ошибка: Пакет: stc-rs-2.0.562.24187-2.rhel7.x86_64 (/stc-rs-2.0.562.24187-2.rhel7.x86_64) Необходимо: libStcAsrSrrs.so.2.0.13()(64bit) Ошибка: Пакет: stc-rs-2.0.562.24187-2.rhel7.x86_64 (/stc-rs-2.0.562.24187-2.rhel7.x86_64) Необходимо: libStcAsrDtmf.so.2.0.13()(64bit) Ошибка: Пакет: stc-rs-2.0.562.24187-2.rhel7.x86_64 (/stc-rs-2.0.562.24187-2.rhel7.x86_64) Необходимо: libStcAsrSdk.so.4.37.1109()(64bit) Вы можете попробовать --skip-broken чтобы обойти проблему ** Предварительно ошибок в rpmdb: 5, «yum check» выдает следующее: stc-rs-2.0.562.24187-2.rhel7.x86_64 требует недостающего libStcAsrDtmf.so.2.0.13()(64bit) stc-rs-2.0.562.24187-2.rhel7.x86_64 требует недостающего libStcAsrDtmf.so.2.0.264()(64bit) stc-rs-2.0.562.24187-2.rhel7.x86_64 требует недостающего libStcAsrSdk.so.4.37.1109()(64bit) stc-rs-2.0.562.24187-2.rhel7.x86_64 требует недостающего libStcAsrSrrs.so.2.0.13()(64bit) stc-rs-2.0.562.24187-2.rhel7.x86_64 требует недостающего libStcAsrSrrs.so.2.0.236()(64bit)
Соответственно статус
systemctl status stcMRCP systemctl status stcMRCP.service
Выдает ошибку.
Перезапускаем установку скриптом SpeechNavigator1.sh
Продолжение следует…………