语音自检功能介绍

简介

概述

本文档主要介绍产品的语音自检功能。
语音自检是指对设备扬声器和麦克风进行检测,也称为回声自检。其工作原理为设备通过扬声器播放声音,再由麦克风采集声音,以此判断扬声器与麦克风是否正常工作。该功能常用于远程检测设备音频部件的运行状态。下文将详细介绍工业设备语音自检的操作方法。

适用型号

i12、i11、i16V、i18S、i20S、i30、i32V、i33V、i16SV、i10SV、PA3、PA2S。

语音自检原理

设备通过扬声器播放音频(如短音频片段),麦克风同步采集声音并统计音频接收占比。若检测结果超出设定阈值,则判定测试成功;若低于阈值,则判定测试失败。工作原理如下图1所示:
语音自检原理
                                                                                图1 语音自检原理示意图

语音自检应用场景

语音自检广泛应用于设备远程巡检工作。为节省时间、提升运维效率,当广播无声音或播放音频突然中断时,工作人员可在控制室对设备发起远程自检。
语音自检应用场景
                                                                               图2 语音自检应用场景示意图

所需设备与工具

① 一台对讲系列设备(本次以i12为例)、一台PoE交换机(或直流电源)、一台云翼服务器,将设备接入交换机。
② 一台配置电脑与服务器,将电脑连接至同一交换机,确保电脑与设备网络互通。

设备与电脑连接示意图

① 将i12设备、服务器、电脑接入同一台交换机,保证两端网络正常连通。连接架构如下图3所示。
设备与电脑连接
                              图3 设备与电脑连接示意图

操作指南

回声自检支持多种实现方式,每种方法详情如下。

主动URI方式

主动URI指由远程控制台发起HTTP GET请求,设备内置HTTP服务器解析指令并响应,从而实现设备远程控制。
(1) 自检格式:http://device_ip/cgi-bin/ConfigManApp.com?key=ECHO_TEST;
① device_ip:待测设备IP地址,示例:172.18.8.15;
② 返回结果:扬声器、麦克风连接正常时显示success;未接入或硬件损坏时显示Failure
(2) 操作示例:在浏览器中输入上述地址。音频设备连接正常时,页面返回success,详见下图4。
扬声器接入设备
                                                                               图4 主动URI语音自检示意图

HTTP API方式

HTTP API是用于对接第三方应用及管理系统的程序接口。设备作为HTTP服务端,在http://ip/xmlservice 提供接口服务。第三方客户端发送XML格式的HTTP POST请求完成交互。
HTTP API请求格式:
(1) 客户端 → 服务端请求:
(?xml version="1.0" encoding="UTF-8" ?)
(FanvilPhoneExecute beep=”yes” )
(ExecuteItem>URI="cmd:echo_test"(/FanvilPhoneExecute
cmd:audio_play:代表指令为回声自检;
(2) 服务端 → 客户端响应:
?xml version="1.0" encoding="UTF-8"?
FanvilPhoneExecute
ExecuteItem>URI="cmd:echo_test")
RetCode>0)
info
![CDATA[success]]
/info

/FanvilPhoneExecute
(3) 返回结果:音频配件正常返回success;异常损坏返回Failure
(4) 操作示例:可使用Postman、ApiPost等工具,向http://device_ip/xmlservice 发送POST请求。填写合法请求内容后点击“发送”,即可获取自检结果,如图5所示。
HTTP API语音自检
                                                                               图5 HTTP API语音自检示意图

定时计划方式

可在定时计划配置中添加语音自检任务。设备将在设定时间段/时间点自动执行自检,并通过动作URL上报检测结果。
(1) 登录设备网页管理端,依次进入“对讲设置” --- “定时计划” --- “定时规则”,新增定时任务,参考图6:
① 执行类型:选择“语音自检”;
② 执行时间:选定需要自动检测的时段。
定时计划语音自检
                                                                                                                              图6 定时计划语音自检示意图

(2) 计划添加完成后,定时列表将显示新增条目。到达设定时间,设备将自动执行语音自检。

SIP消息方式

SIP消息方式适用于公网环境。服务器下发消息型主动URI指令,设备以200 OK应答MESSAGE请求;随后设备推送结果报文至管理平台,平台同样回复200 OK完成交互。
(1) 在服务器注册设备账号。
(2) 以云翼服务器为例,登录服务端网页,进入“自检任务” --- “新增”,创建自检任务。
(3) 选中任务并点击执行,扬声器与麦克风正常则任务执行成功;配件故障或未连接将判定失败,服务端页面展示异常状态。同时可点击“自检结果”查看历史记录。
SIP消息语音自检
                                                                                图7 SIP消息语音自检示意图
(4) 也可通过设备抓包验证自检结果。自检开始前,进入设备网页“系统” --- “辅助工具” --- “网络抓包”,点击“开始”。
网络抓包
                                                                                                                          图8 设备抓包示意图
自检完成后,在设备网页点击“停止”。使用Wireshark打开抓包文件,筛选“sip”字段。若MESSAGE报文中包含“Success”,代表自检成功;出现“Fail”或“Failure”则为自检失败。
通过抓包查看自检结果
                                                  图9 抓包结果示意图

语音自检故障处理方法

实际使用过程中,常会遇到语音自检失败的问题,故障诱因较多,可按以下步骤排查:
(1) 检查接线连接
语音自检失败时,首先检查扬声器与麦克风接线是否牢固。扬声器未接入通常直接判定失败,但嘈杂环境可能造成误判显示成功;麦克风断开连接,必然导致自检失败。
(2) 检查配件完好性
接线正常但依旧检测失败时,排查扬声器、麦克风是否物理损坏。若硬件无异常,请联系技术支持。
(3) 确认环境噪音
自检核心逻辑为设备播放1kHz音频信号,麦克风接收同频信号。若环境中存在1kHz同源噪音,会造成检测失真。例如扬声器损坏时,环境同频杂音可能被设备采集,从而误判测试通过。

目录
客服 电话
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .