如何上传和播放自定义音频文件?

介绍

概述

工业对讲设备可能需要在特定场景下播放自定义音频文件。本文介绍如何上传自定义音频并在工业设备上播放。

适用型号

所有工业对讲设备。

准备工具

① 工业对讲设备一台(以 BHP-SOS16V 为例)、PoE 交换机一台(或 DC 电源)。将设备连接到交换机。
② 一台调试电脑,连接到同一台交换机,以确保网络连通性。

设备与电脑连接图

将 BHP-SOS16V 和电脑连接到同一台交换机。连接图如图 1 所示。

设备与电脑连接图

                                             图 1 设备与电脑连接图

自定义音频播放

要播放自定义音频,必须先上传文件,然后使用多种播放方法之一。详细步骤如下。

上传自定义音频

音频文件可以通过 Web 界面上传。登录设备(以 BHP-SOS16V 为例),前往 系统升级铃声升级,然后上传您的 WAV 文件。

  • 格式:WAV

  • 建议大小:≤ 200 KB

上传自定义音频

图 2 上传自定义音频

播放音频文件

共有三种播放方法。详细说明如下。

2.2.1 定时音频播放

不支持: BHP-SOS10, BHP-SOS10V, BHP-SOS10D

步骤: (1) 登录设备 Web 界面(默认 admin/admin)。
(2) 前往 对讲机设置 → 时间管理,并如图 3 所示进行配置:

  • ① 名称:自定义

  • ② 类型:定时音频播放

  • ③ 音频路径:本地(或 USB/SD(若外部存储可用))

  • ④ 播放模式:循环或一次

  • ⑤ 设置重复周期与有效时间段

定时音频播放

图 3 定时音频播放

(3) 音频将在配置的时间段内自动播放。

2.2.2 主动 URI 播放

不支持: BHP-SOS10, BHP-SOS10V, BHP-SOS10D, BHP-SOS11, BHP-SOS11V

格式: (1) ActiveURI:http://IP/cgi-bin/audio_play?name=2.wav&path=usb&takelist=xxx&action=start&times=1

参数值 / 说明备注
ActionStart, Stop, Pause, Next, Prev
Times0=循环,1=一次,2=两次,N=重复 N 次
Takelist定时任务名称
PathUSB:从 U 盘播放

(2) 示例:http://172.18.8.15/cgi-bin/audio_play?name=2.wav&action=start&times=1
在浏览器中输入 URL。设备会播放音频并返回 200OK,如图 4 所示。

主动 URI 播放

图 4 主动 URI 播放

2.2.3 HTTP API 播放

不支持: BHP-SOS10, BHP-SOS10V, BHP-SOS10D, BHP-SOS11, BHP-SOS11V

请求格式: (1) 客户端 → 服务器请求:

(?xml version="1.0" encoding="UTF-8" ?)
(FanvilPhoneExecute beep="yes")
(ExecuteItem)URI="cmd:audio_play" name="xxx.wav" action="start/stop/pause" times="0/1/2/n"(/ExecuteItem)
(/FanvilPhoneExecute)
  • cmd:audio_play:播放音频命令

  • name:音频文件名

  • action:start, stop, pause

(2) 服务器 → 客户端响应:

(?xml version="1.0" encoding="UTF-8"?)
(FanvilPhoneExecute)
(ExecuteItem)URI="cmd:audio_play" name="ring.wav" action="start" times="1"(/ExecuteItem)
(RetCode>0

(3) 示例: 使用 Postman 或 ApiPost 发送 POST 请求至: http://DeviceIP/xmlservice 点击 发送 即可播放音频。

HTTP API 播放测试


目录
客服 电话
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 .