TWI815161B - Control method, system, and electronic equipment - Google Patents
Control method, system, and electronic equipment Download PDFInfo
- Publication number
- TWI815161B TWI815161B TW110129809A TW110129809A TWI815161B TW I815161 B TWI815161 B TW I815161B TW 110129809 A TW110129809 A TW 110129809A TW 110129809 A TW110129809 A TW 110129809A TW I815161 B TWI815161 B TW I815161B
- Authority
- TW
- Taiwan
- Prior art keywords
- audio
- played
- audio playback
- playback device
- instruction
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Selective Calling Equipment (AREA)
- Telephone Function (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
Description
本發明關於互聯網領域,具體地說,關於一種音訊播放控制方法、系統及電子設備。 The present invention relates to the field of the Internet, specifically, to an audio playback control method, system and electronic equipment.
手遊市場逐年擴大,在疫情衝擊全球經濟的情況下,發展更是呈現逆勢成長,然而,現今手遊配置的藍牙耳機卻普遍存在聲音延遲等問題,嚴重影響遊戲使用者體驗。。 The mobile game market is expanding year by year. With the epidemic impacting the global economy, development has shown growth against the trend. However, Bluetooth headsets equipped with mobile games today commonly have problems such as sound delay, which seriously affects the game user experience. .
藍牙無線傳輸的聲音源(如手機)是通過藍牙音訊廣播模型協定(Advanced Audio Distribution Profile,A2DP)來傳輸訊號的,其訊號傳輸的位元速率是十分有限,無法像有線傳輸完整地將聲音訊號傳遞到耳機端,因此,須通過編碼壓縮的方式傳遞音樂訊號,藍牙接收端(耳機)接收訊號後,便會解壓縮藍牙訊號、轉成數位音訊,最後再輸出給裝置上的數位類比轉換器(DAC)。 Sound sources for Bluetooth wireless transmission (such as mobile phones) transmit signals through the Bluetooth Audio Broadcasting Model Protocol (Advanced Audio Distribution Profile, A2DP). The bit rate of the signal transmission is very limited and cannot completely transmit the sound signal like wired transmission. Passed to the headset, therefore, the music signal must be transmitted through encoding and compression. After the Bluetooth receiving end (headphone) receives the signal, it will decompress the Bluetooth signal, convert it into digital audio, and finally output it to the digital-to-analog converter on the device. (DAC).
一般來說,人耳無法有效識別70ms以內差異的聲音延遲,而當延遲超過150ms時,人耳則很容易識別聲音有延遲,測出的市面上大部分藍牙音訊系統的延遲資料約在200ms至300ms之間。 Generally speaking, the human ear cannot effectively identify the difference in sound delay within 70ms. When the delay exceeds 150ms, the human ear can easily identify the sound delay. The measured delay data of most Bluetooth audio systems on the market is about 200ms to between 300ms.
目前,解決藍牙延遲傳輸的技術方案主要有: At present, the technical solutions to solve Bluetooth delayed transmission mainly include:
影音同步技術,即發射端(手機)與接收端(耳機)在播放 影片時,會互相核對播放時間,並通過畫面等待音訊延遲的方法,來確保影片與音訊能夠同步,此技術的缺點是無法支援遊戲、打字音等隨使用者動作發出聲音的事件;發射到接收端上做出系統性的整合來降低延遲,藉由將手機晶片到藍牙晶片做到系統性整合,直接降低發射端與接收端音訊延遲處理時間。此技術的缺點是發射端與接收端須是同品牌的,當兩者非同品牌時,仍會有聲音延遲問題;通過特規藍牙編碼來降低延遲,即通過特規藍牙編碼來降低藍牙音訊處理時間,如:高通所擁有的專利藍牙編碼aptXTM,apple的AAC編碼,索尼的LDAC編碼,此技術的缺點是需要發射端跟接收端同時支持相同的特規藍牙編碼,且實測結果不容易達到官方公告的理論值。 Audio-visual synchronization technology means that when the transmitter (mobile phone) and the receiver (headphones) play a video, they will check the playback time with each other and wait for the audio delay through the screen to ensure that the video and audio can be synchronized. The disadvantage of this technology is that it cannot Supports games, typing sounds and other events that produce sounds according to the user's movements; the transmission to the receiving end is systematically integrated to reduce latency. By systematically integrating the mobile phone chip into the Bluetooth chip, it directly reduces the delay between the transmitting end and the receiving end. Terminal audio delay processing time. The disadvantage of this technology is that the transmitter and receiver must be of the same brand. When the two are not of the same brand, there will still be sound delay problems; the delay is reduced through special Bluetooth encoding, that is, the Bluetooth audio is reduced through special Bluetooth encoding. Processing time, such as: Qualcomm's patented Bluetooth code aptX TM , Apple's AAC code, Sony's LDAC code. The disadvantage of this technology is that the transmitter and receiver need to support the same special Bluetooth code at the same time, and the actual measurement results are not easy Reach the theoretical value announced by the official.
需要說明的是,在上述背景技術部分公開的資訊僅用於加強對本發明的背景的理解,因此可以包括不構成對本領域普通技術人員已知的現有技術的資訊。 It should be noted that the information disclosed in the above background section is only used to enhance understanding of the background of the present invention, and therefore may include information that does not constitute prior art known to those of ordinary skill in the art.
有鑑於此,本發明的目的在於提供了一種音訊播放控制方法、系統電子設備及儲存媒介,該控制方法通過在音訊播放設備中預載入有音訊包,省去傳統藍牙語音音訊廣播過程中資料壓縮和解壓縮階段消耗的時間,將音訊播放設備端的聲音延遲降到最低,實現音訊無損播放。 In view of this, the purpose of the present invention is to provide an audio playback control method, system electronic device and storage medium. The control method eliminates the need for data in the traditional Bluetooth voice audio broadcast process by preloading audio packets in the audio playback device. The time consumed in the compression and decompression stages minimizes the sound delay on the audio playback device and achieves lossless audio playback.
本發明的一些實施例提供了一種音訊播放控制方法,適用於使用者終端,包括以下步驟:接收音訊播放指令;根據該音訊播放指令獲得待播放音訊的 指令代碼;將該待播放音訊的指令代碼發送到音訊播放設備,該音訊播放設備預載入有音訊包和指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集,且該音訊播放設備配置為根據接收到的指令代碼查詢預載入的待播放音訊並播放。 Some embodiments of the present invention provide an audio playback control method, which is suitable for user terminals and includes the following steps: receiving an audio playback instruction; obtaining an audio frequency to be played according to the audio playback instruction. Instruction code; send the instruction code of the audio to be played to the audio playback device. The audio playback device is preloaded with an audio package and an instruction code set. The audio package includes multiple pieces of information. The instruction code set includes each piece of information and the corresponding instruction. A mapping relationship set of codes, and the audio playback device is configured to query the preloaded audio to be played and play it according to the received instruction code.
本發明的一些實施例還提供了一種音訊播放控制方法,適用於音訊播放設備,包括以下步驟: Some embodiments of the present invention also provide an audio playback control method, suitable for audio playback equipment, including the following steps:
接收並儲存使用者終端發送的音訊包和指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集;接收待播放音訊的指令代碼;根據該指令代碼集獲得該待播放音訊的指令代碼對應的待播放音訊;播放該待播放音訊。 Receive and store the audio packet and command code set sent by the user terminal. The audio packet includes multiple pieces of audio. The command code set includes a mapping relationship set between each message and the corresponding command code; receives the command code of the audio to be played; according to the command The code set obtains the audio to be played corresponding to the instruction code of the audio to be played; and plays the audio to be played.
本發明的一些實施例還提供了一種音訊播放控制系統,實現該音訊播放控制方法,包括接收模組、指令代碼模組和通訊模組,其中: Some embodiments of the present invention also provide an audio playback control system to implement the audio playback control method, including a receiving module, an instruction code module and a communication module, wherein:
該接收模組用於接收音訊播放指令;該指令代碼模組用於根據該音訊播放指令獲得待播放音訊的指令代碼;該通訊模組用於將該待播放音訊的指令代碼發送到音訊播放設備,該音訊播放設備預載入有音訊包和指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集,且該音訊播放設備配置為根據接收到的指令代碼查詢預載入的待播放音訊並播放。 The receiving module is used to receive an audio playback command; the command code module is used to obtain the command code of the audio to be played according to the audio playback command; the communication module is used to send the command code of the audio to be played to the audio playback device , the audio playback device is preloaded with an audio package and a command code set. The audio package includes multiple pieces of information. The command code set includes a mapping relationship set between each message and the corresponding command code, and the audio playback device is configured to receive the The command code queries the preloaded audio to be played and plays it.
本發明的實施例還提供了一種電子設備,包括:處理器;記憶體,其中儲存有該處理器的可執行指令;其中,該處理器配置為經由執行該可執行指令來執行該音訊播放控制方法的步驟。 An embodiment of the present invention also provides an electronic device, including: a processor; a memory in which executable instructions of the processor are stored; wherein the processor is configured to execute the audio playback control by executing the executable instructions. Method steps.
本發明的音訊播放控制方法通過在音訊播放設備中預載入 有音訊包省去傳統藍牙音訊廣播過程中資料壓縮和解壓縮階段消耗的時間,將音訊播放設備端的聲音延遲降到最低,實現音訊無損播放,從而大幅提高用戶的聲音體驗。 The audio playback control method of the present invention preloads Audio packets save the time consumed in the data compression and decompression stages in the traditional Bluetooth audio broadcast process, minimize the sound delay on the audio playback device, and achieve lossless audio playback, thus greatly improving the user's sound experience.
本發明的音訊播放控制方法適用於遊戲、導航等領域,可在遊戲、導航中制定音訊包及音訊包代碼解析規則,使用者終端通過下載音訊包和對應的音訊代碼指令集並將其提前導入音訊播放設備,在需要播放音訊時,使用者終端和音訊播放設備只需要發送待播放音訊的指令代碼而不需要發送壓縮後的音訊,極大地減少了使用者終端和音訊播放設備之間資料傳輸的量,同時也就不需要音訊播放設備對音訊壓縮包進行解壓縮,從而減少音訊播放設備的聲音延遲。 The audio playback control method of the present invention is suitable for fields such as games and navigation. Audio packets and audio packet code parsing rules can be formulated in games and navigation. The user terminal downloads the audio packet and the corresponding audio code instruction set and imports them in advance. Audio playback equipment, when it is necessary to play audio, the user terminal and the audio playback equipment only need to send the command code of the audio to be played instead of the compressed audio, which greatly reduces the data transmission between the user terminal and the audio playback equipment. At the same time, there is no need for the audio playback device to decompress the audio compressed package, thereby reducing the sound delay of the audio playback device.
S100~S520:步驟 S100~S520: steps
M100:接收模組 M100: receiving module
M200:指令代碼模組 M200: Command code module
M300:通訊模組 M300: Communication module
600:電子設備 600: Electronic equipment
610:處理單元 610: Processing unit
620:儲存單元 620:Storage unit
6201:RAM 6201: RAM
6202:快取記憶體 6202: cache memory
6203:ROM 6203:ROM
6204:程式/實用工具 6204:Programs/Utilities
6205:程式模組 6205:Program module
630:匯流排 630:Bus
640:顯示單元 640: Display unit
650:I/O介面650
650:I/
660:網路介面卡 660:Network interface card
700:外部設備 700:External device
圖1為本發明一實施例的音訊播放控制方法的流程圖。 FIG. 1 is a flow chart of an audio playback control method according to an embodiment of the present invention.
圖2為本發明另一實施例的音訊播放控制方法的流程圖。 FIG. 2 is a flow chart of an audio playback control method according to another embodiment of the present invention.
圖3為本發明一實施例的音訊播放控制系統的結構示意圖。 FIG. 3 is a schematic structural diagram of an audio playback control system according to an embodiment of the present invention.
圖4為本發明一實施例的電子設備的結構示意圖。 FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
為了讓本發明的優點,精神與特徵可以更容易且明確地了解,後續將以實施例並參照所附圖式進行詳述與討論。值得注意的是,這些實施例僅為本發明代表性的實施例,其中所舉例的特定方法,裝置,條件,材質等並非用以限定本發明或對應的實施例。 In order that the advantages, spirit and features of the present invention can be more easily and clearly understood, embodiments will be described and discussed in detail with reference to the accompanying drawings. It is worth noting that these embodiments are only representative embodiments of the present invention, and the specific methods, devices, conditions, materials, etc. exemplified therein are not intended to limit the present invention or the corresponding embodiments.
圖1為本發明一實施例的音訊播放控制方法的流程圖,該音 訊播放控制方法適用於使用者終端,具體包括以下步驟: Figure 1 is a flow chart of an audio playback control method according to an embodiment of the present invention. The message playback control method is applicable to user terminals and specifically includes the following steps:
S100:接收音訊播放指令; S100: Receive audio playback instructions;
S200:根據該音訊播放指令獲得待播放音訊的指令代碼; S200: Obtain the command code of the audio to be played according to the audio playback command;
S300:將該待播放音訊的指令代碼發送到音訊播放設備,該音訊播放設備預載入有音訊包和指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集,且該音訊播放設備配置為根據接收到的指令代碼查詢預載入的待播放音訊並播放。 S300: Send the command code of the audio to be played to the audio playback device. The audio playback device is preloaded with an audio package and a command code set. The audio package includes multiple pieces of audio. The command code set includes each message and the corresponding command code. The set of mapping relationships, and the audio playback device is configured to query the preloaded audio to be played and play it according to the received instruction code.
此處的使用者終端可以是手機、電腦等終端,音訊播放設備可以是藍牙耳機、藍牙音箱等。本發明的音訊播放控制方法通過在音訊播放設備預載入有音訊包,省去傳統藍牙音訊廣播過程中最耗時的資料壓縮和解壓縮階段過程,同時,也不需要發送壓縮後的音訊,極大地減少了使用者終端和音訊播放設備之間資料傳輸的量,將音訊播放設備端的聲音延遲降到最低,實現音訊無損播放,從而大幅提高用戶的聲音體驗。 The user terminal here can be a terminal such as a mobile phone or a computer, and the audio playback device can be a Bluetooth headset, a Bluetooth speaker, etc. The audio playback control method of the present invention preloads audio packets into the audio playback device, eliminating the most time-consuming data compression and decompression stages in the traditional Bluetooth audio broadcast process. At the same time, there is no need to send compressed audio, which greatly improves the audio playback control method. It greatly reduces the amount of data transmission between the user terminal and the audio playback device, minimizes the sound delay on the audio playback device, and achieves lossless audio playback, thus greatly improving the user's sound experience.
在該實施例中,以將該音訊播放控制方法應用於遊戲場景為例進行說明。可理解的是,本發明的應用場景不限於此,在其他可替代的實施方式中,也可以將該音訊播放控制方法應用於導航、音樂播放等其他場景中,均屬於本發明的保護範圍之內。例如,對於遊戲來說,該遊戲中包括有多種不同的音效,例如背景音樂、人物對話音訊、提示音等等,一個遊戲中的各段音訊可以集合成一個音訊包,或者一個遊戲中某個特定階段的各段音訊可以集合成一個音訊包。對於音樂播放來說,使用者可以在使用者終端創建一個播放清單,在該播放清單中加入多個音樂,該播放清單中音樂的音訊可以集合成一個音訊包。 In this embodiment, the audio playback control method is applied to a game scene as an example for description. It is understandable that the application scenarios of the present invention are not limited to this. In other alternative implementations, the audio playback control method can also be applied to other scenarios such as navigation and music playback, which all fall within the protection scope of the present invention. within. For example, for a game, the game includes a variety of different sound effects, such as background music, character dialogue audio, prompt sounds, etc. Each piece of audio in a game can be integrated into an audio package, or a certain Each piece of information at a specific stage can be assembled into an information package. For music playback, the user can create a playlist on the user terminal, add multiple pieces of music to the playlist, and the audio of the music in the playlist can be assembled into an audio package.
在音訊播放設備預載入有音訊包和指令代碼集可以是人為觸發。在另一些實施例中,也可以是自動觸發。此時,該音訊播放控制方法還包括: The preloading of audio packets and command code sets on the audio playback device can be triggered manually. In other embodiments, it can also be automatically triggered. At this time, the audio playback control method also includes:
接收使用音訊播放設備指令;例如,此處使用音訊播放設備指令可以是遊戲啟動時自動觸發,即使用者在使用使用者終端啟動遊戲應用時,使用者終端接收到使用音訊播放設備指令。 Receive the command to use the audio playback device; for example, the command to use the audio playback device here can be automatically triggered when the game is started, that is, when the user starts the game application using the user terminal, the user terminal receives the command to use the audio playback device.
將音訊包和指令代碼集發送至音訊播放設備。 Send the audio packet and command code set to the audio playback device.
實際的場景中,如遊戲啟動時自動觸發使用音訊播放設備指令,其中,使用音訊播放設備指令可以是採用傳統的播放模式的指令,即採用壓縮待播放音訊、傳輸待播放音訊壓縮包、音訊播放設備解壓縮的播放模式的指令,此時,使用者終端則不需將音訊包和指令代碼集發送至音訊播放設備;使用音訊播放設備指令也可以是本發明的播放模式的指令。因此,本發明的音訊播放控制方法還可以包括如下步驟: In an actual scenario, for example, when the game starts, the command to use the audio playback device is automatically triggered. The command to use the audio playback device can be a command using the traditional playback mode, that is, compressing the audio to be played, transmitting the compressed audio package to be played, and playing the audio. At this time, the user terminal does not need to send the audio packet and instruction code set to the audio playback device; the command for using the audio playback device can also be the playback mode command of the present invention. Therefore, the audio playback control method of the present invention may also include the following steps:
根據音訊播放設備指令確定音訊播放設備的播放模式,可供選擇的播放模式包括:根據指令代碼播放音訊和不根據指令代碼播放音訊; The playback mode of the audio playback device is determined according to the instruction of the audio playback device. The available playback modes include: playing audio according to the instruction code and playing audio not according to the instruction code;
如播放模式是不根據指令代碼播放音訊,則使用者終端不執行後續步驟,而是按照現有的音訊廣播方法控制音訊播放設備的播放,即需要播放一段音訊時,將指定待播放的音訊本身發給音訊播放設備; If the playback mode is not to play audio according to the command code, the user terminal does not perform subsequent steps, but controls the playback of the audio playback device according to the existing audio broadcast method. That is, when a piece of audio needs to be played, the audio designated to be played will be sent by itself. Provide audio playback equipment;
如播放模式為根據該待播放音訊的指令代碼播放音訊,則使用者終端獲取音訊包並創建指令代碼集。 If the play mode is to play audio according to the command code of the audio to be played, the user terminal obtains the audio package and creates a command code set.
上述步驟中,舉例來說,當判斷需要使用指令代碼模式播放音訊時,使用者終端則執行預載入音訊包和指令代碼集的步驟。當使用者 終端為手機或伺服器時,使用者終端的預載入可以是先通過空中下載技術(Over-The-Air,OTA)下載音訊包並創建指令代碼集,此處下載音訊包為使用者終端從應用伺服器端下載音訊包。OTA空中下載技術是一項基於短消息機制,通過使用者終端或伺服器(網上)方式實現SIM卡內業務功能表的動態下載、刪除與更新,使用者終端,如手機使用者只要進行簡單操作,就可以通過OTA空中下載技術供應商提供的音訊包。然後可以通過OTA的方式將音訊包和指令代碼集導入到音訊播放設備。 In the above steps, for example, when it is determined that the command code mode needs to be used to play audio, the user terminal performs the step of preloading the audio package and the command code set. when user When the terminal is a mobile phone or a server, the user terminal can be preloaded by first downloading the audio package through Over-The-Air (OTA) technology and creating a command code set. Here, the audio package is downloaded from the user terminal. Use the server side to download the information package. OTA over-the-air download technology is a short message-based mechanism that realizes the dynamic download, deletion and update of the business menu in the SIM card through the user terminal or server (online). The user terminal, such as a mobile phone user, only needs to perform a simple Operation, you can download the audio package provided by the technology provider through OTA air. The audio package and command code set can then be imported to the audio playback device through OTA.
以音訊包為遊戲的音效包為例,遊戲商家在提供音訊包的同時,可以在制定遊戲音訊包的同時制定音訊包代碼解析規則,此時,音訊包代碼解析規則可以理解為音訊包中各段音訊與指令代碼的對應關係,此時,使用者終端下載音效包的同時可下指令代碼集。在另外一些場景中,使用者終端也可以根據下載的音訊包創建指令代碼集。 Taking the audio package as the sound effect package of the game as an example, the game merchant can formulate the audio package code parsing rules while formulating the game audio package while providing the audio package. At this time, the audio package code parsing rules can be understood as each element in the audio package. The corresponding relationship between the audio segment and the command code. At this time, the user terminal can download the command code set while downloading the sound effect package. In other scenarios, the user terminal can also create a command code set based on the downloaded audio package.
以音樂播放為例,使用者可以選擇一部分音樂音訊加入到播放清單,使用者終端創建播放清單中各個音訊與指令代碼的映射關係,得到指令代碼集,然後將播放清單中的音樂音訊打包後與指令代碼集一起發送到音樂播放設備。 Taking music playback as an example, the user can select part of the music audio to add to the playlist. The user terminal creates a mapping relationship between each audio in the playlist and the instruction code, obtains the instruction code set, and then packages the music audio in the playlist and combines it with A set of instruction codes are sent together to the music playback device.
一些實施例中,接收使用音訊播放設備指令步驟後,該音訊播放控制方法還可以包括: In some embodiments, after receiving the instruction step of using the audio playback device, the audio playback control method may further include:
S210:根據該待播放音訊的指令代碼集獲得該待播放音訊的指令代碼對應的待播放音訊; S210: Obtain the audio to be played corresponding to the instruction code of the audio to be played according to the instruction code set of the audio to be played;
S211:判斷該待播放音訊是否已發送至音訊播放設備;此步驟實際中對應的場景是判斷音訊播放設備儲存的音訊包是否已包括待播放 音訊; S211: Determine whether the audio to be played has been sent to the audio playback device; the actual scenario corresponding to this step is to determine whether the audio package stored by the audio playback device includes the audio to be played. audio;
如未發送至音訊播放設備,則將該待播放音訊和該待播放音訊的指令代碼發送至音訊播放設備,音訊播放設備配置為接收待播放音訊和指令代碼後,儲存兩者的映射關係,並儲存該待播放音訊; If it is not sent to the audio playback device, the audio to be played and the command code of the audio to be played are sent to the audio playback device. The audio playback device is configured to receive the audio to be played and the command code, store the mapping relationship between the two, and Save the audio to be played;
如已發送至音訊播放設備,則將該待播放音訊的指令代碼發送到音訊播放設備。 If it has been sent to the audio playback device, the command code of the audio to be played is sent to the audio playback device.
在一些使用場景中音訊包比較大,而音訊播放設備的儲存空間有限,此時,該音訊播放控制方法還可以包括: In some usage scenarios, the audio packets are relatively large and the storage space of the audio playback device is limited. In this case, the audio playback control method may also include:
接收停止使用音訊播放設備指令; Receive instructions to stop using audio playback equipment;
向音訊播放設備發送停止播放指令,該音訊播放設備配置為接收到停止播放指令時刪除本機存放區的音訊包和指令代碼集。與觸發使用音訊播放設備指令相同,停止使用音訊播放設備指令可以是使用者人為觸發,也可以是自動觸發的,如在實際的場景中,在關閉遊戲時自動觸發停止音訊播放設備指令。上述步驟可以實現即時地清理音訊播放設備的儲存空間,方便下一次音訊播放,也降低了該功能對音訊播放設備本身的儲存空間大小的要求。 Send a stop play command to the audio playback device, and the audio playback device is configured to delete the audio packet and command code set in the local storage area when receiving the stop play command. Similar to triggering the command to use the audio playback device, the command to stop using the audio playback device can be triggered manually by the user or automatically. For example, in an actual scenario, the command to stop the audio playback device is automatically triggered when the game is closed. The above steps can instantly clear the storage space of the audio playback device to facilitate the next audio playback, and also reduce the storage space requirements of this function on the audio playback device itself.
在該實施例中,該指令代碼至少包括映射到待播放音訊所需的資訊,例如:待播放音訊的編號。在每一個音訊包中,每個待播放音訊的編號是唯一的,即在該音訊包中,根據指令代碼可以唯一確定一個待播放音訊。 In this embodiment, the instruction code at least includes information required for mapping to the audio to be played, such as the number of the audio to be played. In each audio packet, the number of each audio to be played is unique, that is, in the audio packet, one audio to be played can be uniquely determined according to the instruction code.
進一步地,在可替代的實施方式中,該指令代碼還可以包括對待播放音訊的處理參數。該處理參數可以包括但不限於是否進行降噪處 理、音量、是否倍速播放等。該處理參數可以是通過解析遊戲提供方的音訊包代碼解析規則得到的,即在遊戲提供方的音訊包代碼解析規則中可能有規定特定音訊播放時的特定要求。通過將處理參數一併發送給音訊播放設備,可以實現最優還原遊戲音效。該處理參數也可以是使用者在使用者終端中手動設置的,例如對一些本身音量比較高的音訊,可以預先設定其處理參數中音量調低,對於人物對話部分的音訊,預先設定其處理參數中需要降噪處理等,以實現更好的播放體驗。該音訊播放設備配置為根據該處理參數播放該待播放音訊,如播放時對待播放音訊做降噪處理以達到更好的音質、或者根據處理參數進行音量調節等。 Further, in an alternative implementation, the instruction code may also include processing parameters for the audio to be played. The processing parameters may include but are not limited to whether to perform noise reduction processing. management, volume, whether to play at double speed, etc. The processing parameters may be obtained by parsing the game provider's audio package code parsing rules. That is, the game provider's audio package code parsing rules may stipulate specific requirements for playing specific audio. By sending the processing parameters to the audio playback device, the game sound effects can be optimally restored. The processing parameters can also be manually set by the user in the user terminal. For example, for some audio with a relatively high volume, the volume in the processing parameters can be preset to be lowered. For audio in the dialogue part of the character, the processing parameters can be preset. Noise reduction processing, etc. are needed to achieve a better playback experience. The audio playback device is configured to play the audio to be played according to the processing parameters, such as performing noise reduction processing on the audio to be played during playback to achieve better sound quality, or adjusting the volume according to the processing parameters.
本發明的一些實施例還提供了一種音訊播放控制方法,適用於音訊播放設備,包括以下步驟: Some embodiments of the present invention also provide an audio playback control method, suitable for audio playback equipment, including the following steps:
接收並儲存使用者終端發送的音訊包和指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集; Receive and store the audio packet and command code set sent by the user terminal. The audio packet includes multiple pieces of information, and the command code set includes a mapping relationship set between each message and the corresponding command code;
S410:接收待播放音訊的指令代碼; S410: Receive the command code of the audio to be played;
S510:根據該指令代碼集獲得該待播放音訊的指令代碼對應的待播放音訊; S510: Obtain the audio to be played corresponding to the instruction code of the audio to be played according to the instruction code set;
播放該待播放音訊。 Play the audio to be played.
通常,適用於音訊播放設備的音訊播放控制方法與適用於使用者終端的音訊播放控制方法相適配,圖2為本發明另一實施例的音訊播放控制方法的流程圖。其中,當判斷該待播放音訊未發送至音訊播放設備,使用者終端將該待播放音訊和該待播放音訊的指令代碼發送至音訊播放設 備時,執行如下步驟: Generally, the audio playback control method applicable to the audio playback device is adapted to the audio playback control method applicable to the user terminal. FIG. 2 is a flow chart of an audio playback control method according to another embodiment of the present invention. When it is determined that the audio to be played is not sent to the audio playback device, the user terminal sends the audio to be played and the command code of the audio to be played to the audio playback device. To prepare, perform the following steps:
S320:音訊播放設備接收待播放音訊和該待播放音訊的指令代碼; S320: The audio playback device receives the audio to be played and the command code of the audio to be played;
S420:音訊播放設備儲存待播放音訊和該待播放音訊的指令代碼; S420: The audio playback device stores the audio to be played and the command code of the audio to be played;
S520:音訊播放設備根據該指令代碼集獲得該待播放音訊的指令代碼對應的待播放音訊。 S520: The audio playback device obtains the audio to be played corresponding to the instruction code of the audio to be played according to the instruction code set.
在該實施例中,該指令代碼至少包括映射到待播放音訊所需的資訊,例如,待播放音訊的編號。在每一個音訊包中,每個待播放音訊的編號是唯一的,即在該音訊包中,根據指令代碼可以唯一確定一個待播放音訊。 In this embodiment, the instruction code at least includes information required for mapping to the audio to be played, for example, the number of the audio to be played. In each audio packet, the number of each audio to be played is unique, that is, in the audio packet, one audio to be played can be uniquely determined according to the instruction code.
需要指出的是,該指令代碼可能不僅包括了映射的待播放音訊所需的資訊,還可以包括對待播放音訊的處理參數。該處理參數可以包括但不限於是否進行降噪處理、音量、是否倍速播放等。該處理參數可以是通過解析遊戲提供方的音訊包代碼解析規則得到的,即在遊戲提供方的音訊包代碼解析規則中可能有規定特定音訊播放時的特定要求。通過將處理參數一併發送給音訊播放設備,可以實現最優還原遊戲音效。該處理參數也可以是使用者在使用者終端中手動設置的,例如對一些本身音量比較高的音訊,可以預先設定其處理參數中音量調低,對於人物對話部分的音訊,預先設定其處理參數中需要降噪處理等,以實現更好的播放體驗。此時,該播放該待播放音訊包括:音訊播放設備根據該處理參數播放該待播放音訊,如播放時對待播放音訊做降噪處理以達到更好的音質、或者根據 處理參數進行音量調節等。 It should be pointed out that the instruction code may not only include the mapped information required for the audio to be played, but may also include processing parameters for the audio to be played. The processing parameters may include but are not limited to whether to perform noise reduction processing, volume, whether to play at double speed, etc. The processing parameters may be obtained by parsing the game provider's audio package code parsing rules. That is, the game provider's audio package code parsing rules may stipulate specific requirements for playing specific audio. By sending the processing parameters to the audio playback device, the game sound effects can be optimally restored. The processing parameters can also be manually set by the user in the user terminal. For example, for some audio with a relatively high volume, the volume in the processing parameters can be preset to be lowered. For audio in the dialogue part of the character, the processing parameters can be preset. Noise reduction processing, etc. are needed to achieve a better playback experience. At this time, playing the audio to be played includes: the audio playing device plays the audio to be played according to the processing parameters, such as performing noise reduction processing on the audio to be played during playback to achieve better sound quality, or according to Process parameters for volume adjustment, etc.
如上所述,由於音訊播放設備的儲存空間有限,相應地,適用於音訊播放設備的音訊播放控制方法還可以包括: As mentioned above, since the storage space of the audio playback device is limited, accordingly, the audio playback control method suitable for the audio playback device may also include:
接收到停止播放指令;停止播放指令可以是使用者終端發送的; Receive a stop play instruction; the stop play instruction may be sent by the user terminal;
刪除該音訊包和該指令代碼集。 Delete the message package and the command code set.
上述步驟可以實現即時地清理音訊播放設備的儲存空間,為下一次音訊播放提供方便,也降低了該功能對音訊播放設備本身的儲存空間大小的要求。 The above steps can realize real-time clearing of the storage space of the audio playback device, providing convenience for the next audio playback, and also reducing the requirement of this function on the storage space of the audio playback device itself.
本發明的一些實施例還提供了一種音訊播放控制系統,實現該適用於使用者終端的音訊播放控制方法。 Some embodiments of the present invention also provide an audio playback control system to implement the audio playback control method suitable for user terminals.
圖3為本發明一實施例的音訊播放控制系統的結構示意圖,音訊播放控制系統包括接收模組M100、指令代碼模組M200和通訊模組M300,其中: Figure 3 is a schematic structural diagram of an audio playback control system according to an embodiment of the present invention. The audio playback control system includes a receiving module M100, an instruction code module M200 and a communication module M300, where:
該接收模組M100用於接收音訊播放指令; The receiving module M100 is used to receive audio playback instructions;
該指令代碼模組M200用於根據該音訊播放指令獲得待播放音訊的指令代碼; The command code module M200 is used to obtain the command code of the audio to be played according to the audio playback command;
該通訊模組M300用於將該待播放音訊的指令代碼發送到音訊播放設備,該音訊播放設備預載入有音訊包和指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集,且該音訊播放設備配置為根據接收到的指令代碼查詢預載入的待播放音訊並播放。 The communication module M300 is used to send the command code of the audio to be played to the audio playback device. The audio playback device is preloaded with an audio packet and a command code set. The audio packet includes multiple pieces of audio. The command code set includes each piece of audio. and the corresponding command code mapping relationship set, and the audio playback device is configured to query the preloaded audio to be played and play it according to the received command code.
實施例的音訊播放控制系統中的各個功能模組的功能實現方式均可以採用上述音訊播放控制方法中各個步驟的具體實施方式來實現。例如,接收模組M100、指令代碼模組M200和通訊模組M300可以分別採用上述步驟S100至S300的具體實施方式實現其功能,此處不予贅述。本發明的音訊播放控制系統通過減少了使用者終端和音訊播放設備之間資料傳輸的量以及省去兩者之間傳統傳輸過程中的資料壓縮和解壓縮階段過程,實現將音訊播放設備播放音訊時的聲音延遲降到最低,以達到音訊無損播放,從而大幅提高用戶的聲音體驗。 The functions of each functional module in the audio playback control system of the embodiment can be implemented using the specific implementation of each step in the audio playback control method. For example, the receiving module M100, the instruction code module M200, and the communication module M300 can implement their functions using the specific implementation of the above-mentioned steps S100 to S300, which will not be described again here. The audio playback control system of the present invention reduces the amount of data transmission between the user terminal and the audio playback device and eliminates the data compression and decompression stages in the traditional transmission process between the two. The sound delay is reduced to a minimum to achieve lossless audio playback, thereby greatly improving the user's sound experience.
下面參照圖4來描述根據本發明的這種實施方式的電子設備600。圖4顯示的電子設備600僅僅是一個實施例,不應對本發明實施例的功能和使用範圍帶來任何限制。
An
如圖4所示,電子設備600以通用計算設備的形式表現。電子設備600的元件可以包括但不限於:至少一個處理單元610、至少一個儲存單元620、連接不同平台元件(包括儲存單元620和處理單元610)的匯流排630、顯示單元640等。
As shown in Figure 4,
其中,儲存單元儲存有程式碼,程式碼可以被處理單元610執行,使得處理單元610執行本說明書上述方法部分中描述的根據本發明各種示例性實施方式的步驟。例如,處理單元610可以執行如圖1中所示的步驟。
Wherein, the storage unit stores program code, and the program code can be executed by the
儲存單元620可以包括易失性儲存單元形式的可讀媒介,例如隨機存取儲存單元(RAM)6201和/或快取記憶體儲存單元6202,還可以進一步包括唯讀儲存單元(ROM)6203。
The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a
儲存單元620還可以包括具有一組(至少一個)程式模組6205的程式/實用工具6204,這樣的程式模組6205包括但不限於:作業系統、一個或者多個應用程式、其它程式模組以及程式資料,這些實施例中的每一個或某種組合中可能包括網路環境的實現。
Storage unit 620 may also include a program/
匯流排630可以為表示幾類匯流排結構中的一種或多種,包括儲存單元匯流排或者儲存單元控制器、周邊匯流排、圖形加速埠、處理單元或者使用多種匯流排結構中的任意匯流排結構的局域匯流排。
電子設備600也可以與一個或多個外部設備700(例如鍵盤、指向設備、藍牙設備等)通信,還可與一個或者多個使得使用者能與該電子設備600交互的設備通信,和/或與使得該電子設備600能與一個或多個其它計算設備進行通信的任何設備(例如路由器、數據機等等)通信。這種通信可以通過輸入/輸出(I/O)介面650進行。並且,電子設備600還可以通過網路介面卡660與一個或者多個網路(例如局域網(LAN),廣域網路(WAN)和/或公共網路,例如網際網路)通信。網路介面卡660可以通過匯流排630與電子設備600的其它模組通信。應當明白,儘管圖中未示出,可以結合電子設備600使用其它硬體和/或軟體模組,包括但不限於:微代碼、裝置驅動程式、冗餘處理單元、外部磁片驅動陣列、RAID系統、磁帶驅動器以及資料備份儲存平臺等。
綜上所述,本發明提供了一種音訊播放控制方法及系統電子設備,該音訊播放控制方法適用於使用者終端,包括以下步驟:接收音訊播放指令;根據該音訊播放指令獲得待播放音訊的指令代碼;將該待播放音訊的指令代碼發送到音訊播放設備,該音訊播放設備預載入有音訊包和 指令代碼集,該音訊包包括多段音訊,該指令代碼集包括各個音訊和對應的指令代碼的映射關係集,且該音訊播放設備配置為根據接收到的指令代碼查詢預載入的待播放音訊並播放。本發明的控制方法通過在音訊播放設備中預載入有音訊包,省去傳統藍牙音訊廣播過程中資料壓縮和解壓縮階段消耗的時間;同時,極大地減少了使用者終端和音訊播放設備之間資料傳輸的量,將音訊播放設備端的聲音延遲降到最低,實現音訊無損播放,從而大幅提高用戶的聲音體驗。 To sum up, the present invention provides an audio playback control method and system electronic equipment. The audio playback control method is suitable for user terminals and includes the following steps: receiving an audio playback instruction; and obtaining an instruction for audio to be played according to the audio playback instruction. Code; send the command code of the audio to be played to the audio playback device, which is preloaded with the audio package and Instruction code set, the audio package includes multiple pieces of audio, the instruction code set includes a mapping relationship set between each message and the corresponding instruction code, and the audio playback device is configured to query the preloaded audio to be played based on the received instruction code and Play. The control method of the present invention saves the time consumed in the data compression and decompression stages in the traditional Bluetooth audio broadcast process by preloading audio packets into the audio playback device; at the same time, it greatly reduces the time required between the user terminal and the audio playback device. The amount of data transmitted minimizes the sound delay on the audio playback device, achieving lossless audio playback, thereby greatly improving the user's sound experience.
藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。因此,本發明所申請之專利範圍的範疇應該根據上述的說明作最寬廣的解釋,以致使其涵蓋所有可能的改變以及具相等性的安排。 Through the above detailed description of the preferred embodiments, it is hoped that the characteristics and spirit of the present invention can be more clearly described, but the scope of the present invention is not limited by the above disclosed preferred embodiments. On the contrary, the intention is to cover various modifications and equivalent arrangements within the scope of the patent for which the present invention is intended. Therefore, the scope of the patentable scope of the present invention should be interpreted in the broadest manner according to the above description, so as to cover all possible changes and equivalent arrangements.
S100、S200、S300:步驟 S100, S200, S300: steps
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110535665.2 | 2021-05-17 | ||
| CN202110535665.2A CN113515255B (en) | 2021-05-17 | 2021-05-17 | Audio playing control method, system, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202247146A TW202247146A (en) | 2022-12-01 |
| TWI815161B true TWI815161B (en) | 2023-09-11 |
Family
ID=78064386
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW110129809A TWI815161B (en) | 2021-05-17 | 2021-08-12 | Control method, system, and electronic equipment |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113515255B (en) |
| TW (1) | TWI815161B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114253148A (en) * | 2021-12-09 | 2022-03-29 | 英华达(上海)科技有限公司 | Intelligent device control method, gateway device and intelligent device control system |
| CN115881098B (en) * | 2022-11-03 | 2025-09-23 | 国网浙江省电力有限公司温州供电公司 | A power site satisfaction evaluation and feedback method based on speech recognition |
| CN117854514B (en) * | 2024-03-06 | 2024-05-31 | 深圳市增长点科技有限公司 | Wireless earphone communication decoding optimization method and system for sound quality fidelity |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004097800A1 (en) * | 2003-05-02 | 2004-11-11 | Konami Corporation | Audio reproducing program, audio reproducing method and audio reproducing apparatus |
| US20070127353A1 (en) * | 2005-08-30 | 2007-06-07 | Hideo Ando | Information playback system using information storage medium |
| TW200941232A (en) * | 2007-12-05 | 2009-10-01 | Onlive Inc | Video compression system and method for reducing the effects of packet loss over a communication channel |
| TW200943078A (en) * | 2007-12-05 | 2009-10-16 | Onlive Inc | Method for acceleration of web page delivery |
| US20100146085A1 (en) * | 2008-12-05 | 2010-06-10 | Social Communications Company | Realtime kernel |
| TW201816795A (en) * | 2016-10-19 | 2018-05-01 | 合肥兆芯電子有限公司 | Mapping table loading method, memory control circuit unit and memory storage apparatus |
| TW202119797A (en) * | 2019-11-05 | 2021-05-16 | 瑞昱半導體股份有限公司 | Main bluetooth circuit and auxiliary bluetooth circuit of multi-member bluetooth device be capable of synchronizing audio playback between different bluetooth circuits |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105072614B (en) * | 2015-08-10 | 2019-07-02 | 小米科技有限责任公司 | Audio-frequence player device control method and device |
| CN105611356A (en) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | Method and device for controlling terminal device |
| CN106155623B (en) * | 2016-06-16 | 2017-11-14 | 广东欧珀移动通信有限公司 | A kind of audio collocation method, system and relevant device |
| CN109274405B (en) * | 2018-08-14 | 2021-08-17 | Oppo广东移动通信有限公司 | Data transmission method, apparatus, electronic device and computer readable medium |
| CN109656511A (en) * | 2018-10-30 | 2019-04-19 | 努比亚技术有限公司 | A kind of audio frequency playing method, terminal and computer readable storage medium |
| CN110996160B (en) * | 2019-11-15 | 2022-10-28 | 广州方硅信息技术有限公司 | Video processing method and device, electronic equipment and computer readable storage medium |
| CN111026357A (en) * | 2019-12-23 | 2020-04-17 | 珠海格力电器股份有限公司 | Audio playing control method, storage medium and air conditioner |
| CN111292771B (en) * | 2020-02-24 | 2025-03-21 | 青岛海尔多媒体有限公司 | Method and device for controlling audio-visual equipment, and terminal equipment |
| CN112153140B (en) * | 2020-09-23 | 2022-12-06 | Oppo广东移动通信有限公司 | Remote control method, device, equipment, storage medium and system |
-
2021
- 2021-05-17 CN CN202110535665.2A patent/CN113515255B/en active Active
- 2021-08-12 TW TW110129809A patent/TWI815161B/en active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004097800A1 (en) * | 2003-05-02 | 2004-11-11 | Konami Corporation | Audio reproducing program, audio reproducing method and audio reproducing apparatus |
| US20070127353A1 (en) * | 2005-08-30 | 2007-06-07 | Hideo Ando | Information playback system using information storage medium |
| TW200941232A (en) * | 2007-12-05 | 2009-10-01 | Onlive Inc | Video compression system and method for reducing the effects of packet loss over a communication channel |
| TW200943078A (en) * | 2007-12-05 | 2009-10-16 | Onlive Inc | Method for acceleration of web page delivery |
| US20100146085A1 (en) * | 2008-12-05 | 2010-06-10 | Social Communications Company | Realtime kernel |
| TW201816795A (en) * | 2016-10-19 | 2018-05-01 | 合肥兆芯電子有限公司 | Mapping table loading method, memory control circuit unit and memory storage apparatus |
| TW202119797A (en) * | 2019-11-05 | 2021-05-16 | 瑞昱半導體股份有限公司 | Main bluetooth circuit and auxiliary bluetooth circuit of multi-member bluetooth device be capable of synchronizing audio playback between different bluetooth circuits |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113515255B (en) | 2023-02-07 |
| TW202247146A (en) | 2022-12-01 |
| CN113515255A (en) | 2021-10-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI815161B (en) | Control method, system, and electronic equipment | |
| CN106155623B (en) | A kind of audio collocation method, system and relevant device | |
| CN107005800B (en) | Audio file transmission and receiving method, device, equipment and system | |
| CN108737648B (en) | Music volume adaptive adjustment method, device, storage medium and terminal | |
| CN108319443B (en) | audio output method, mobile terminal and audio playing device | |
| CN106126163A (en) | A method and terminal for adjusting sound effects | |
| CN106373600A (en) | An audio synchronous playback method, device, system and terminal | |
| WO2016011814A1 (en) | Method and apparatus for audio mixing and playing | |
| CN107633849B (en) | Bluetooth device volume adjustment method, device and computer-readable storage medium | |
| WO2017215640A1 (en) | Sound effect processing method and apparatus | |
| CN106126160A (en) | A kind of effect adjusting method and user terminal | |
| CN112188342B (en) | Equalization parameter determining method, apparatus, electronic device and storage medium | |
| CN116755653A (en) | Audio playback methods, devices, media and electronic equipment | |
| CN106506437B (en) | Audio data processing method and device | |
| WO2022111381A1 (en) | Audio processing method, electronic device and readable storage medium | |
| US20080144860A1 (en) | Adjustable Resolution Volume Control | |
| CN105959482A (en) | Scene sound effect control method and electronic device | |
| CN106506834A (en) | Method, terminal and system for adding background sound during call | |
| US8078745B2 (en) | Method and device for controlling the transmission and playback of digital signals | |
| WO2025016070A1 (en) | Reverberation control method, apparatus and device, and storage medium | |
| CN115167806B (en) | A network audio broadcast gradient audio processing method and server | |
| JP6875484B2 (en) | Content playback program, content playback device, content playback method and content playback system | |
| CN111739496B (en) | Audio processing method, device and storage medium | |
| US20210125594A1 (en) | Wireless midi headset | |
| CN106155624A (en) | A sound effect adjustment method and user terminal |