如何上傳和播放自定義音頻文件?

介紹

概述

工業對講設備可能需要在特定場景下播放自訂音訊檔案。本文說明如何上傳自訂音訊並在工業設備上播放。

適用型號

所有工業對講設備。

準備工具

① 工業對講設備一台(以 BHP-SOS16V 為例)、PoE 交換器一台(或 DC 電源)。將設備連接到交換器。
② 一台調試電腦,連接到同一台交換器,以確保網路連通性。

設備與電腦連接圖

將 BHP-SOS16V 和電腦連接到同一台交換器。連接圖如圖 1 所示。

設備與電腦連接圖

                                             圖 1 設備與電腦連接圖

自訂音訊播放

要播放自訂音訊,必須先上傳檔案,然後使用多種播放方法之一。詳細步驟如下。

上傳自訂音訊

可透過網頁介面上傳音訊檔案。登入設備(以 BHP-SOS16V 為例),前往 系統升級鈴聲升級,然後上傳您的 WAV 檔案。

  • 格式:WAV

  • 建議大小:≤ 200 KB

上傳自訂音訊

圖 2 上傳自訂音訊

播放音訊檔案

共有三種播放方法。詳細說明如下。

2.2.1 排程音訊播放

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

步驟: (1) 登入設備網頁介面(預設 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:從 USB 隨身碟播放

(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 .