CN115167806A - A kind of network audio broadcast gradient audio processing method and server - Google Patents
A kind of network audio broadcast gradient audio processing method and server Download PDFInfo
- Publication number
- CN115167806A CN115167806A CN202210813548.2A CN202210813548A CN115167806A CN 115167806 A CN115167806 A CN 115167806A CN 202210813548 A CN202210813548 A CN 202210813548A CN 115167806 A CN115167806 A CN 115167806A
- Authority
- CN
- China
- Prior art keywords
- audio
- volume
- gradient
- network
- playback volume
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
Description
技术领域technical field
本发明涉及音频传输技术领域,尤其涉及一种网络音频广播渐变音频处理方法及服务器。The invention relates to the technical field of audio transmission, and in particular, to a method and a server for processing gradient audio of network audio broadcasting.
背景技术Background technique
在音乐播放中,往往需要利用音量渐进渐出功能,实现音乐舒适过渡功能。即开始播放时,声音从小到大,逐渐上升。关闭播放时,声音从大到小,逐渐降低。而传统音乐播放都是本机播放,控制音乐播放时,控制本机音量进行渐进渐出变化即可。而在音频广播场合,音源和播放源往往不是单一设备,而是由系统主机与多个播放终端组成,系统主机负责发送音频流到播放终端进行播放音乐,而音乐渐进渐出效果则由主机控制。In music playback, it is often necessary to use the volume fade-in and fade-out function to achieve a comfortable transition of music. That is, when it starts to play, the sound gradually rises from small to large. When the playback is turned off, the sound gradually decreases from loud to quiet. The traditional music playback is played by the local machine. When controlling the music playback, you can control the volume of the local machine to change gradually and gradually. In audio broadcasting applications, the audio source and playback source are often not a single device, but consist of a system host and multiple playback terminals. The system host is responsible for sending the audio stream to the playback terminal to play music, and the music fade-in effect is controlled by the host. .
现有的网络音频广播技术,其实现渐进渐出功能,主要是由系统主机通过网络,发送指令控制播放终端,并在音频播放或停止时,发送音量控制指令,控制网络播放终端声音渐进渐出。现有技术主要存在以下问题:第一,音量控制与音频流分开,可能会造成音量变化与声音不同步;第二,主机控制逻辑复杂,有多个播放终端时,需要向多个播放终端发送控制指令,容易受网络丢包干扰,丢失控制指令无法控制终端渐进渐出。The existing network audio broadcasting technology, which realizes the function of gradual and gradual out, is mainly that the system host sends commands to control the playback terminal through the network, and when the audio is played or stopped, sends a volume control command to control the network playback terminal. The sound gradually fades out. . The prior art mainly has the following problems: first, the volume control is separated from the audio stream, which may cause the volume change to be out of sync with the sound; second, the host control logic is complex, and when there are multiple playback terminals, it is necessary to send a message to the multiple playback terminals. Control commands are easily disturbed by network packet loss. Loss of control commands cannot control the gradual exit of the terminal.
发明内容SUMMARY OF THE INVENTION
为了克服现有技术的不足,本发明的目的之一在于提供一种网络音频广播渐变音频处理方法,其能解决现有技术中的网络音频广播渐变中容易出现音量变化与声音不同步以及容易受网络丢包干扰,丢失控制指令无法控制终端渐进渐出的问题。In order to overcome the deficiencies of the prior art, one of the objects of the present invention is to provide a network audio broadcast gradual change audio processing method, which can solve the problem that the volume change and the sound asynchrony and easy to suffer from in the network audio broadcast gradual change in the prior art are prone to occur. The problem of network packet loss interference and loss of control commands cannot control the gradual exit of the terminal.
本发明的目的之而在于提供一种网络音频广播渐变音频处理服务器,其能解决现有技术中的网络音频广播渐变中容易出现音量变化与声音不同步以及容易受网络丢包干扰,丢失控制指令无法控制终端渐进渐出的问题。The purpose of the present invention is to provide a network audio broadcast gradient audio processing server, which can solve the problem that the volume change and the sound are easily out of sync in the network audio broadcast gradient in the prior art, and are easily disturbed by network packet loss and loss of control instructions. Unable to control terminal fading out problem.
为了达到上述目的之一,本发明所采用的技术方案如下:In order to achieve one of the above objects, the technical scheme adopted in the present invention is as follows:
一种网络音频广播渐变音频处理方法,包括以下步骤:A network audio broadcast gradient audio processing method, comprising the following steps:
S1:驱使系统主机通过USB配置单片机处理单元里的音频流中的音频信息,并通过网络分发到网络播放终端,其中,所述音频信息包括音频ID、音频流音量、渐变标志和渐变时长字段;S1: drive the system host to configure the audio information in the audio stream in the single-chip processing unit through USB, and distribute it to the network playback terminal through the network, wherein the audio information includes audio ID, audio stream volume, gradient mark and gradient duration field;
S2:驱使网络播放终端根据音频数据中的渐变标志判断当前音频流是否需要进行音量渐变,若否,则将音频流音量储存为播放音量,播放音频,若是,则执行S3;S2: drive the network playback terminal to judge whether the current audio stream needs to perform volume gradient according to the gradient mark in the audio data, if not, store the audio stream volume as the playback volume, and play the audio, and if so, execute S3;
S3:判断当前播放音量是否符合条件,若是,则以当前播放音量播放音频,结束音量渐变,若否,则调用音量比例表,获得音量比例表中与当前播放音量相对应的B值,并执行S4;S3: Determine whether the current playback volume meets the conditions. If so, play audio at the current playback volume and end the volume gradient. If not, call the volume scale table to obtain the B value corresponding to the current playback volume in the volume scale table, and execute S4;
S4:通过公式:S=A*B/65536,获得调整后的播放音量,将调整后的播放音量储存成当前播放音量,返回执行S3;其中S为调整后的播放音量,A为当前播放音量。S4: Obtain the adjusted playback volume through the formula: S=A*B/65536, store the adjusted playback volume as the current playback volume, and return to S3; where S is the adjusted playback volume, and A is the current playback volume .
优选的,所述S1具体由以下步骤实现:Preferably, the S1 is specifically implemented by the following steps:
S11:驱使系统主机通过USB配置单片机处理单元里的音频流中的音频信息;S11: Drive the system host to configure the audio information in the audio stream in the single-chip processing unit through USB;
S12:驱使系统主机通过USB传输音频帧到单片机处理单元上,并将音频帧和音频信息组成UDP包,通过网络分发到网络播放终端。S12: Drive the system host to transmit audio frames to the single-chip processing unit through USB, and combine the audio frames and audio information into UDP packets, which are distributed to the network playback terminal through the network.
优选的,所述S2具体由以下步骤实现:Preferably, the S2 is specifically implemented by the following steps:
驱使网络播放终端对UDP包进行解包,提取音频流音量、渐变标志与渐变时长,并根据音频数据中的渐变标志判断当前音频流是否需要渐变,若否,则将音频流音量储存为播放音量,播放音频,若是,则执行S3。Drive the network playback terminal to unpack the UDP packet, extract the audio stream volume, gradient flag and gradient duration, and judge whether the current audio stream needs gradient according to the gradient flag in the audio data, if not, store the audio stream volume as the playback volume , play audio, if yes, execute S3.
优选的,所述S2和S3还包括以下步骤:Preferably, the S2 and S3 also include the following steps:
判断渐变标志是否属于渐进标志,若是,则将渐变条件储存为当前播放音量等于音频流音量,若否,则渐变条件储存为播放音量为0。It is judged whether the gradient flag belongs to the gradient flag. If so, the gradient condition is stored as the current playback volume is equal to the audio stream volume. If not, the gradient condition is stored as the playback volume is 0.
优选的,所述S4具体由以下步骤实现:Preferably, the S4 is specifically implemented by the following steps:
通过公式:S=A*B/65536,获得调整后的播放音量,将调整后的播放音量储存成当前播放音量,等待一个渐变时长,返回执行S3;其中S为调整后的播放音量,A为当前播放音量。Obtain the adjusted playback volume through the formula: S=A*B/65536, store the adjusted playback volume as the current playback volume, wait for a gradient time, and return to execute S3; where S is the adjusted playback volume, and A is Current playback volume.
为了达到上述目的之二,本发明所采用的技术方案如下:In order to achieve the second above-mentioned purpose, the technical scheme adopted in the present invention is as follows:
一种网络音频广播渐变音频处理服务器,包括储存器和处理器;A network audio broadcast gradient audio processing server, comprising a storage and a processor;
储存器,用于储存程序指令;a memory for storing program instructions;
处理器,用于运行所述程序指令,以执行如上述的网络音频广播渐变音频处理方法。The processor is configured to run the program instructions to execute the above-mentioned method for processing the gradient audio of the network audio broadcast.
相比现有技术,本发明的有益效果在于:系统主机通过USB驱使单片机处理单元对音频信息进行处理,减少系统主机控制复杂度,不需要应用层参与音量控制,同时控制音量变化的渐变标志以及渐变时长与音频帧同步组合传输,并且使用音量比例表,对数据进行去浮点数运算,使用整数运算,大大提高计算机运算效率。Compared with the prior art, the present invention has the beneficial effects that the system host drives the single-chip processing unit to process the audio information through the USB, reduces the control complexity of the system host, does not require the application layer to participate in the volume control, and simultaneously controls the gradient mark of the volume change and the The gradient duration and the audio frame are synchronously combined and transmitted, and the volume scale table is used to de-float the data, and the integer operation is used to greatly improve the computing efficiency of the computer.
附图说明Description of drawings
图1为本发明中所述的网络音频广播渐变音频处理方法的流程图。FIG. 1 is a flow chart of the network audio broadcast gradient audio processing method described in the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, but not to limit the present invention.
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limiting the invention. Furthermore, the terms "first", "second", and "third" are used for descriptive purposes only and should not be construed to indicate or imply relative importance.
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense, unless otherwise expressly specified and limited, for example, it may be a fixed connection or a detachable connection Connection, or integral connection; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations.
下面,结合附图以及具体实施方式,对本发明做进一步描述:Below, in conjunction with accompanying drawing and specific embodiment, the present invention is further described:
在本发明中,系统主机包括arm嵌入式平台,arm嵌入式平台通过USB接口与单片机处理单元连接,其中arm嵌入式平台负责处理应用控制,单片机处理单元负责实时音频流分发,用户可使用电脑客户端(APP、网页等)通过网络登录到系统主机,从而控制广播系统。优选的,所述单片机处理单元通过千兆网络与网络播放终端连接。In the present invention, the system host includes an arm embedded platform, and the arm embedded platform is connected to the single-chip processing unit through a USB interface, wherein the arm embedded platform is responsible for processing application control, and the single-chip processing unit is responsible for real-time audio stream distribution, and users can use computer clients The terminal (APP, web page, etc.) logs in to the system host through the network to control the broadcasting system. Preferably, the single-chip processing unit is connected to the network playback terminal through a gigabit network.
实施例一:Example 1:
如图1所示,一种网络音频广播渐变音频处理方法,包括以下步骤:As shown in Figure 1, a method for processing gradient audio of network audio broadcasting includes the following steps:
S1:驱使系统主机通过USB配置单片机处理单元里的音频流中的音频信息,并通过网络分发到网络播放终端,其中,所述音频信息包括音频ID、音频流音量、渐变标志和渐变时长字段;S1: drive the system host to configure the audio information in the audio stream in the single-chip processing unit through USB, and distribute it to the network playback terminal through the network, wherein the audio information includes audio ID, audio stream volume, gradient mark and gradient duration field;
具体的,通过将渐变标志和音频帧结合使得网络播放终端能够同时获得渐变标准和音频帧,降低延迟性,在本实施例中,所述S1具体由以下步骤实现:Specifically, by combining the gradient flag and the audio frame, the network playback terminal can obtain the gradient standard and the audio frame at the same time, thereby reducing the delay. In this embodiment, the S1 is specifically implemented by the following steps:
S11:驱使系统主机通过USB配置单片机处理单元里的音频流中的音频信息;S11: Drive the system host to configure the audio information in the audio stream in the single-chip processing unit through USB;
具体的,系统主机通过USB配置单片机处理单元里的音频流中的音频信息,其中音频信息包括音频ID、音频流音量、渐变标志和渐变时长字段,所述音频ID为音频流识别号,所述音频流音量的范围为0-100,所述渐变标志包括表示无渐变的0、表示渐进的1和表示渐出的2,其中1、2和0均可根据实际需求进行自定义设置,在本实施例中,帧头标识、音频流ID、音频流音量、渐变标志和渐变时长依次排列组成音频信息。Specifically, the system host configures the audio information in the audio stream in the single-chip processing unit through USB, wherein the audio information includes audio ID, audio stream volume, gradient flag and gradient duration field, the audio ID is the audio stream identification number, and the audio stream ID is the audio stream identification number. The audio stream volume ranges from 0 to 100. The gradient flags include 0 for no gradient, 1 for gradient and 2 for gradient out. 1, 2 and 0 can be customized according to actual needs. In the embodiment, the frame header identifier, the audio stream ID, the audio stream volume, the gradient flag and the gradient duration are arranged in sequence to form the audio information.
S12:驱使系统主机通过USB传输音频帧到单片机处理单元上,并将音频帧和音频信息组成UDP包,通过网络分发到网络播放终端。S12: Drive the system host to transmit audio frames to the single-chip processing unit through USB, and combine the audio frames and audio information into UDP packets, which are distributed to the network playback terminal through the network.
具体的,系统主机通过USB传输音频帧到单片机处理单元上,并将音频帧和音频信息组成UDP包,其中UDP包头、音频信息、音频数据长度和音频数据组成UDP包,进一步的,在分发之前,单片机处理单元将分发至不同的目标IP的UDP包组成一个三层的网络数据包,通过网络分发到网络播放终端。Specifically, the system host transmits the audio frame to the single-chip processing unit through USB, and forms the audio frame and audio information into a UDP packet, wherein the UDP packet header, audio information, audio data length and audio data form a UDP packet. Further, before distribution , the single-chip processing unit will distribute the UDP packets distributed to different target IPs to form a three-layer network data packet, and distribute it to the network playback terminal through the network.
S2:驱使网络播放终端根据音频数据中的渐变标志判断当前音频流是否需要进行音量渐变,若否,则将音频流音量储存为播放音量,播放音频,若是,则执行S3;S2: drive the network playback terminal to judge whether the current audio stream needs to perform volume gradient according to the gradient mark in the audio data, if not, store the audio stream volume as the playback volume, and play the audio, and if so, execute S3;
具体的,网络播放终端获得网络数据包之后,对网络数据包进行解析,从而判断当前音频流是否需要渐变,在本实施例中,所述S2具体由以下步骤实现:Specifically, after obtaining the network data packet, the network playback terminal parses the network data packet to determine whether the current audio stream needs to be gradually changed. In this embodiment, the S2 is specifically implemented by the following steps:
驱使网络播放终端对UDP包进行解包,提取音频流音量、渐变标志与渐变时长,并根据音频数据中的渐变标志判断当前音频流是否需要渐变,若否,则将音频流音量储存为播放音量,播放音频,若是,则执行S3。Drive the network playback terminal to unpack the UDP packet, extract the audio stream volume, gradient flag and gradient duration, and judge whether the current audio stream needs gradient according to the gradient flag in the audio data, if not, store the audio stream volume as the playback volume , play audio, if yes, execute S3.
具体的,当音频数据中的渐变标志为0,则表示当前音频流无需进行音量渐变,将音频流音量储存为播放音量,播放音频,当渐变标志不为0,则进一步判断渐变标志是否属于渐进标志,若是,则将渐变条件储存为当前播放音量等于音频流音量,若否,则渐变条件储存为播放音量为0。Specifically, when the gradient flag in the audio data is 0, it means that the current audio stream does not need to perform volume gradient, the volume of the audio stream is stored as the playback volume, and the audio is played. When the gradient flag is not 0, it is further determined whether the gradient flag belongs to the gradual change. If it is, the fade condition is stored as the current playback volume is equal to the audio stream volume, if not, the fade condition is stored as the playback volume is 0.
S3:判断当前播放音量是否符合条件,若是,则以当前播放音量播放音频,若否,则调用音量比例表,获得音量比例表中与当前播放音量相对应的B值,并执行S4;S3: Determine whether the current playback volume meets the conditions, if so, play the audio at the current playback volume, if not, call the volume scale table to obtain the B value corresponding to the current playback volume in the volume scale table, and execute S4;
具体的,当渐变标志为渐进标志时,则判断当前播放音量是否等于音频流音量,若是,则以当前播放音量播放音频,结束音量渐变,若否,则调用音量比例表,获得音量比例表这种与当前播放音量相对应的B值继续进行音量渐变处理。Specifically, when the gradient flag is the progressive flag, it is judged whether the current playback volume is equal to the audio stream volume. If so, the audio is played at the current playback volume, and the volume gradient is ended. If not, the volume ratio table is called to obtain the volume ratio table. A B value corresponding to the current playback volume continues to perform volume gradation processing.
当渐变标志为渐出标志时,则判断当前播放音量是否等于0,则以当前播放音量播放音频,结束音量渐变,若否,则调用音量比例表,获得音量比例表这种与当前播放音量相对应的B值继续进行音量渐变处理。When the gradient flag is the fade-out flag, it is judged whether the current playback volume is equal to 0, then the audio is played at the current playback volume, and the volume gradient is ended. The corresponding B value continues to perform volume gradient processing.
优选的,设定每级音量调整为-0.2db,通过公式:20lg(Vo/Vi)=0.2db,获得Vo/Vi=0.977,即每一级衰减0.2db时,音频输出与音频输入之比为0.977,其中Vo为音频输出,Vi为音频输入,由此可得,Vo/Vi=0.977^(100-X),根据Vo/Vi=0.977^(100-X),以及Vi=65536(因为系统音频使用的是16位数据,所以使用65536作为基准),算出每级音量对应的Vo值,形成音量比例表,以实现去浮点化运算,能高速运算出经过音量调整后的数字音频。其中音量比例表如下所示:Preferably, set the volume adjustment of each level to -0.2db, and obtain Vo/Vi=0.977 through the formula: 20lg(Vo/Vi)=0.2db, that is, the ratio of audio output to audio input when each level is attenuated by 0.2db is 0.977, where Vo is the audio output and Vi is the audio input, so that Vo/Vi=0.977^(100-X), according to Vo/Vi=0.977^(100-X), and Vi=65536 (because The system audio uses 16-bit data, so 65536 is used as the benchmark), and the Vo value corresponding to each level of volume is calculated to form a volume ratio table to achieve de-floating operation, and can calculate the digital audio after volume adjustment at high speed. The volume ratio table is as follows:
[0,6706,6862,7022,7185,7353,7524,7699,7879,8062,8250,[0,6706,6862,7022,7185,7353,7524,7699,7879,8062,8250,
8442,8639,8840,9046,9257,9472,9693,9919,10150,10386,8442,8639,8840,9046,9257,9472,9693,9919,10150,10386,
10628,10876,11129,11388,11654,11925,12203,12487,12778,13076,10628,10876,11129,11388,11654,11925,12203,12487,12778,13076,
13380,13692,14011,14337,14671,15013,15363,15720,16087,16461,13380,13692,14011,14337,14671,15013,15363,15720,16087,16461,
16845,17237,17639,18050,18470,18900,19341,19791,20252,20724,16845, 17237, 17639, 18050, 18470, 18900, 19341, 19791, 20252, 20724,
21207,21701,22206,22723,23253,23794,24348,24916,25496,26090,21207, 21701, 22206, 22723, 23253, 23794, 24348, 24916, 25496, 26090,
26698,27319,27956,28607,29273,29955,30653,31367,32098,32845,26698,27319,27956,28607,29273,29955,30653,31367,32098,32845,
33610,34393,35194,36014,36853,37712,38590,39489,40409,41350,42313,43299,44307,45339,46395,47476,48582,49714,50872,52057,53269,54510,55780,57079,58409,59769,61161,62586,64044,65536]33610,34393,35194,36014,36853,37712,38590,39489,40409,41350,42313,43299,44307,45339,46395,47476,48582,49714,50872,52057,53269,54510,55780,57079,58409, 59769, 61161, 62586, 64044, 65536]
S4:通过公式:S=A*B/65536,获得调整后的播放音量,将调整后的播放音量储存成当前播放音量,返回执行S3;其中S为调整后的播放音量,A为当前播放音量。S4: Obtain the adjusted playback volume through the formula: S=A*B/65536, store the adjusted playback volume as the current playback volume, and return to S3; where S is the adjusted playback volume, and A is the current playback volume .
具体的,通过公式:S=A*B/65536,获得调整后的播放音量,将调整后的播放音量储存成当前播放音量,并以当前播放音量进行播放一个渐变时长,然后返回执行S3;其中S为调整后的播放音量,A为当前播放音量.Specifically, through the formula: S=A*B/65536, the adjusted playback volume is obtained, the adjusted playback volume is stored as the current playback volume, and the playback is performed with the current playback volume for a gradual duration, and then returns to execute S3; wherein S is the adjusted playback volume, and A is the current playback volume.
在本实施例中,当当前播放音量为100,那么100相对应的B值位65536,所以S=100,即当当前播放音量为100时,无衰减。当当前播放音量为50,S=50*B/65536=50*0.31,相当于音量衰减2/3,衰减率约为-10.1db。In this embodiment, when the current playback volume is 100, the B value corresponding to 100 is 65536, so S=100, that is, when the current playback volume is 100, there is no attenuation. When the current playback volume is 50, S=50*B/65536=50*0.31, which is equivalent to 2/3 volume attenuation, and the attenuation rate is about -10.1db.
实施例二:Embodiment 2:
一种网络音频广播渐变音频处理服务器,包括储存器和处理器;A network audio broadcast gradient audio processing server, comprising a storage and a processor;
储存器,用于储存程序指令;a memory for storing program instructions;
处理器,用于运行所述程序指令,以执行如实施例一所述的网络音频广播渐变音频处理方法。The processor is configured to run the program instructions to execute the method for processing gradient audio of network audio broadcasting according to the first embodiment.
对本领域的技术人员来说,可根据以上描述的技术方案以及构思,做出其它各种相应的改变以及形变,而所有的这些改变以及形变都应该属于本发明权利要求的保护范围之内。For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all these changes and deformations should fall within the protection scope of the claims of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210813548.2A CN115167806B (en) | 2022-07-11 | 2022-07-11 | A network audio broadcast gradient audio processing method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210813548.2A CN115167806B (en) | 2022-07-11 | 2022-07-11 | A network audio broadcast gradient audio processing method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115167806A true CN115167806A (en) | 2022-10-11 |
CN115167806B CN115167806B (en) | 2023-03-24 |
Family
ID=83493689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210813548.2A Active CN115167806B (en) | 2022-07-11 | 2022-07-11 | A network audio broadcast gradient audio processing method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115167806B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117765839A (en) * | 2023-12-25 | 2024-03-26 | 广东保伦电子股份有限公司 | Indoor intelligent navigation method, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102385888A (en) * | 2010-09-03 | 2012-03-21 | 索尼公司 | Control terminal apparatus and control method |
US20140185831A1 (en) * | 2012-12-28 | 2014-07-03 | Hon Hai Precision Industry Co., Ltd. | Volume control method and system |
CN104685908A (en) * | 2012-09-28 | 2015-06-03 | 三星电子株式会社 | User terminal equipment, electronic device and control method thereof |
-
2022
- 2022-07-11 CN CN202210813548.2A patent/CN115167806B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102385888A (en) * | 2010-09-03 | 2012-03-21 | 索尼公司 | Control terminal apparatus and control method |
CN104685908A (en) * | 2012-09-28 | 2015-06-03 | 三星电子株式会社 | User terminal equipment, electronic device and control method thereof |
US20140185831A1 (en) * | 2012-12-28 | 2014-07-03 | Hon Hai Precision Industry Co., Ltd. | Volume control method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117765839A (en) * | 2023-12-25 | 2024-03-26 | 广东保伦电子股份有限公司 | Indoor intelligent navigation method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115167806B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112291699B (en) | Audio processor and method for processing an audio signal and audio encoder | |
KR102697310B1 (en) | Method for operating a bluetooth device | |
US20160366206A1 (en) | Platform for multiple device playout | |
CN104254007B (en) | A kind of audio-frequency processing method and device | |
CN110189753B (en) | Bluetooth sound box and control method, system and storage medium thereof | |
CN110278205B (en) | Bluetooth sound box base and control method and system thereof | |
JP7476327B2 (en) | AUDIO DATA PROCESSING METHOD, DELAY TIME ACQUISITION METHOD, SERVER, AND COMPUTER PROGRAM | |
PH12014501831B1 (en) | Method and system for transferring speech information | |
CN108737648B (en) | Music volume self-adaptive adjusting method, device, storage medium and terminal | |
CN105828134A (en) | A playback control method and device in an audio and video playback system | |
CN115167806B (en) | A network audio broadcast gradient audio processing method and server | |
CN105810220A (en) | Control method, apparatus and system for music playback system | |
US11109209B2 (en) | Bluetooth device, method of operating bluetooth device, and non-transitory computer readable storage medium | |
CN115102931B (en) | Method for adaptively adjusting audio delay and electronic equipment | |
CN114640740B (en) | Communication processing method, device, electronic equipment and storage medium | |
US20240388866A1 (en) | Audio processing method and terminal | |
CN118544976A (en) | Audio playback method, system and vehicle | |
CN104754464A (en) | Audio playing method, terminal and system | |
WO2024199055A1 (en) | Audio processing method and apparatus, electronic device and computer-readable storage medium | |
CN114416013B (en) | Data transmission method, device, electronic device and computer readable storage medium | |
CN113225574A (en) | Signal processing method and device | |
CN202662184U (en) | Air-ground voice communication management and dispatching system | |
CN111434154A (en) | A management method for peripheral devices in a terminal and a terminal | |
CN115884186A (en) | Wireless intercom system | |
CN210807396U (en) | Background music playing terminal and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: No. 56 Nanli East Road, Shiqi Town, Panyu District, Guangzhou City, Guangdong Province, 510000 Patentee after: Guangdong Baolun Electronics Co.,Ltd. Address before: No.19 Chuangyuan Road, Zhongcun street, Panyu District, Guangzhou, Guangdong 510000 Patentee before: GUANGZHOU ITC ELECTRONIC TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |