技术领域technical field
本发明涉及移动终端技术领域,具体涉及一种音频流处理方法及移动终端。The present invention relates to the technical field of mobile terminals, in particular to an audio stream processing method and a mobile terminal.
背景技术Background technique
随着手机等移动终端通讯产品的日益普及,移动终端逐渐成为人们生活中不可缺少的通信工具,其中,移动终端的音频数据播放功能称为人们最常用的基本功能之一。With the increasing popularity of mobile terminal communication products such as mobile phones, mobile terminals have gradually become an indispensable communication tool in people's lives. Among them, the audio data playback function of mobile terminals is called one of the most commonly used basic functions by people.
当前移动终端的音效处理技术中,生产厂家一般会根据移动终端的类型配置系统音效模式,配合信号处理算法和音频信号处理电路播放各类应用的音频流,但由于移动终端播放音频流时是实时加载系统音效模式对应的音效参数的,且加载音频参数操作占用较多的内存资源,这使得移动终端仅有较少的空闲内存资源执行播放音频流的操作,容易造成内存不足,从而音频流播放过程不够流畅、容易出现卡顿现象,影响用户体验。In the current audio processing technology of mobile terminals, manufacturers generally configure the system audio mode according to the type of mobile terminal, and cooperate with signal processing algorithms and audio signal processing circuits to play audio streams of various applications, but because mobile terminals play audio streams in real time Loading the sound effect parameters corresponding to the system sound effect mode, and the operation of loading audio parameters takes up more memory resources, which makes the mobile terminal only have less free memory resources to perform the operation of playing audio streams, which may easily cause insufficient memory, so that the audio stream playback The process is not smooth enough, and it is prone to stuttering, which affects the user experience.
发明内容Contents of the invention
本发明实施例提供了一种音频流处理方法及移动终端,以期提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。Embodiments of the present invention provide an audio stream processing method and a mobile terminal, in order to improve the fluency of audio stream playback of the mobile terminal, optimize memory resource management, and improve user experience.
第一方面,本发明实施例提供一种音频流处理方法,包括:In a first aspect, an embodiment of the present invention provides an audio stream processing method, including:
在检测到移动终端的系统时间处于预设音效设置时段时,根据预存的音效设置时段与所述移动终端的应用之间的映射关系,确定所述系统时间对应到目标应用;When it is detected that the system time of the mobile terminal is in the preset sound effect setting period, according to the mapping relationship between the prestored sound effect setting period and the application of the mobile terminal, it is determined that the system time corresponds to the target application;
在所述移动终端的运行内存中加载所述目标应用对应的参考音效参数;Loading reference sound effect parameters corresponding to the target application in the running memory of the mobile terminal;
在所述预设音效设置时段内检测到针对音频流的播放控制指令时,判断用于播放所述音频流的应用是否为所述目标应用;When a playback control instruction for an audio stream is detected within the preset sound effect setting period, it is determined whether the application used to play the audio stream is the target application;
若是,则从所述运行内存中读取所述参考音效参数,配置所述音频流的音效参数为所述参考音效参数,并播放所述音频流。If so, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the audio stream as the reference sound effect parameters, and play the audio stream.
可以看出,相对于现有技术中移动终端在播放音频流时才实时加载音效参数的方案,移动终端提前在运行内存中加载参考音效参数,并在检测到针对目标应用的音频流的播放控制指令、且播放音频流的应用为目标应用的情况下,从运行内存中读取参考音效参数,配置移动终端的音效参数为参考音效参数,并播放音频流。避免在音频流在播放过程中,移动终端的音效参数的加载操作占用内存资源被,从而有利于提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。It can be seen that, compared with the prior art solution in which the mobile terminal loads the sound effect parameters in real time when the audio stream is played, the mobile terminal loads the reference sound effect parameters in the running memory in advance, and detects the playback control command for the audio stream of the target application , and the application playing the audio stream is the target application, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the mobile terminal as the reference sound effect parameters, and play the audio stream. Avoiding the loading operation of the sound effect parameters of the mobile terminal from occupying memory resources during the playback of the audio stream, thereby improving the fluency of playing the audio stream of the mobile terminal, optimizing memory resource management, and improving user experience.
结合第一方面,在一些可能的实现方式中,所述在所述移动终端的运行内存中加载所述目标应用对应的参考音效参数,包括:With reference to the first aspect, in some possible implementation manners, the loading the reference sound effect parameters corresponding to the target application in the running memory of the mobile terminal includes:
判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数;judging whether the mobile terminal has created an application-level sound effect parameter corresponding to the target application;
若是,在所述移动终端的运行内存中加载所述应用层级音效参数。If so, loading the application-level sound effect parameters into the running memory of the mobile terminal.
结合第一方面,在一些可能的实现方式中,所述判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数之前,所述方法还包括:With reference to the first aspect, in some possible implementation manners, before determining whether the mobile terminal has created an application-level sound effect parameter corresponding to the target application, the method further includes:
获取用户针对所述目标应用设置的应用层级音效参数。Acquire the application-level sound effect parameters set by the user for the target application.
结合第一方面,在一些可能的实现方式中,所述方法还包括:With reference to the first aspect, in some possible implementations, the method further includes:
若判断出所述移动终端未创建有所述目标应用对应的应用层级音效参数,则所述移动终端的运行内存中加载所述移动终端的全局音效参数。If it is determined that the mobile terminal has not created an application-level sound effect parameter corresponding to the target application, loading the global sound effect parameters of the mobile terminal into the running memory of the mobile terminal.
结合第一方面,在一些可能的实现方式中,所述在检测到移动终端的系统时间处于预设音效设置时段时之前,所述方法还包括:With reference to the first aspect, in some possible implementations, before detecting that the system time of the mobile terminal is within the preset sound effect setting period, the method further includes:
获取所述移动终端的N个音频播放记录,所述音频播放记录包括播放音频流的应用和所述音频流的播放时间,N为大于1的整数;Acquiring N audio playback records of the mobile terminal, the audio playback records include an application for playing audio streams and the playback time of the audio streams, where N is an integer greater than 1;
根据所述N个音频播放记录中的音频流的播放时间,确定所述移动终端的M个音效设置时段,M为小于N的正整数;According to the playback time of the audio stream in the N audio playback records, determine the M sound effect setting periods of the mobile terminal, where M is a positive integer less than N;
根据所述M个音效设置时段中每一个音效设置时段所包含的音频播放记录,确定所述每一个音效设置时段中使用时长或者使用频率或者使用次数最高的应用;According to the audio playback records contained in each sound effect setting period in the M sound effect setting periods, determine the application with the highest usage duration or usage frequency or usage times in each of the sound effect setting periods;
根据确定的所述使用时长或者使用频率最高的应用,以及对应的音频流的音效参数,建立所述音效设置时段和所述应用之间的映射关系。A mapping relationship between the sound effect setting period and the application is established according to the determined use duration or the application with the highest use frequency and the sound effect parameters of the corresponding audio stream.
结合第一方面,在一些可能的实现方式中,所述音效参数包括以下参数中的至少一种:With reference to the first aspect, in some possible implementation manners, the sound effect parameters include at least one of the following parameters:
压缩Compress参数、箱头模拟Amp-Type参数、低音均衡EQ_Bass参数、中音均衡EQ_Mid参数、高音均衡EQ_Treble参数、噪音门Noise_Gate参数。Compression Compression parameter, Amp-Type parameter of amp simulation, bass equalization EQ_Bass parameter, midrange equalization EQ_Mid parameter, treble equalization EQ_Treble parameter, noise gate Noise_Gate parameter.
此外,可选的,在一些可能的实现方式中,所述检测针对音频流的播放控制指令,包括:In addition, optionally, in some possible implementation manners, the detecting the playback control instruction for the audio stream includes:
当检测到针对所述移动终端的音频流的第一选取操作时,输出包含所述目标应用的播放器选取界面;When detecting the first selection operation for the audio stream of the mobile terminal, output a player selection interface including the target application;
当检测到针对所述播放器选取界面中的所述目标应用的第二选取操作时,生成针对所述音频流的播放控制指令。When a second selection operation for the target application in the player selection interface is detected, a playback control instruction for the audio stream is generated.
第二方面,本发明实施例提供了一种移动终端,所述移动终端包括功能模块,所述功能模块用于执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a functional module configured to perform some or all of the steps described in any method in the first aspect of the embodiment of the present invention.
第三方面,本发明实施例提供了一种移动终端,包括:In a third aspect, an embodiment of the present invention provides a mobile terminal, including:
处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线连接并完成相互间的通信;A processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface are connected through the communication bus and complete mutual communication;
所述存储器存储有可执行程序代码,所述通信接口用于无线通信;The memory stores executable program codes, and the communication interface is used for wireless communication;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。The processor is configured to invoke the executable program code in the memory to execute some or all of the steps described in any method of the first aspect of the embodiments of the present invention.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例公开的一种音频流处理方法的流程示意图;FIG. 1 is a schematic flow diagram of an audio stream processing method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种音频流处理方法的流程示意图;FIG. 2 is a schematic flowchart of another audio stream processing method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种音频流处理方法的流程示意图;FIG. 3 is a schematic flowchart of another audio stream processing method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的一种移动终端的单元组成框图;Fig. 4 is a block diagram of unit composition of a mobile terminal disclosed in an embodiment of the present invention;
图5是本发明实施例公开的一种移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention;
图6是本发明实施例公开的另一种移动终端的结构示意图。Fig. 6 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
为了更好理解本发明实施例公开的一种音频流处理方法及移动终端,下面对本发明实施例进行详细介绍。In order to better understand the audio stream processing method and the mobile terminal disclosed in the embodiments of the present invention, the embodiments of the present invention are described in detail below.
请参阅图1,图1是本发明实施例提供了一种音频流处理方法,如图所示,本音频流处理方法包括:Please refer to Figure 1, Figure 1 is an audio stream processing method provided by an embodiment of the present invention, as shown in the figure, the audio stream processing method includes:
S101,移动终端在检测到移动终端的系统时间处于预设音效设置时段时,根据预存的音效设置时段与所述移动终端的应用之间的映射关系,确定所述系统时间对应到目标应用;S101. When the mobile terminal detects that the system time of the mobile terminal is in the preset sound effect setting period, according to the mapping relationship between the pre-stored sound effect setting period and the application of the mobile terminal, determine that the system time corresponds to the target application;
其中,所述预设音效设置时段例如可以是早上7点至8点,早上8点至9点半,中午12点至1点半,等等。所述目标应用例如可以是通话应用、音视频播放应用、录音应用等等。Wherein, the preset sound effect setting time period may be, for example, 7:00 to 8:00 in the morning, 8:00 to 9:30 in the morning, 12:00 to 1:30 in the noon, and so on. The target application may be, for example, a call application, an audio and video playback application, a recording application, and the like.
S102,所述移动终端在所述移动终端的运行内存中加载所述目标应用对应的参考音效参数;S102. The mobile terminal loads reference sound effect parameters corresponding to the target application in the running memory of the mobile terminal;
其中,所述移动终端的内存包括运行内存和非运行内存,所述运行内存是指移动终端运行应用的内存,也称作随机存储器RAM,非运行内存是用来存储数据的内存,也称作只读存储器ROM,如容量为8G的ROM,即拥有8G存储空间的非运行内存。Wherein, the memory of the mobile terminal includes a running memory and a non-running memory, the running memory refers to the memory for running applications in the mobile terminal, also called random access memory RAM, and the non-running memory is a memory for storing data, also called Read-only memory ROM, such as a ROM with a capacity of 8G, is a non-running memory with a storage space of 8G.
其中,所述音效参数具体包括以下至少一种:Wherein, the sound effect parameters specifically include at least one of the following:
压缩Compress参数、箱头模拟Amp-Type参数、低音均衡EQ_Bass参数、中音均衡EQ_Mid参数、高音均衡EQ_Treble参数、噪音门Noise_Gate参数。Compression Compression parameter, Amp-Type parameter of amp simulation, bass equalization EQ_Bass parameter, midrange equalization EQ_Mid parameter, treble equalization EQ_Treble parameter, noise gate Noise_Gate parameter.
本发明一些实施例中,所述移动终端在所述移动终端的运行内存中加载所述目标应用对应的参考音效参数的实现方式为:In some embodiments of the present invention, the implementation manner of the mobile terminal loading the reference sound effect parameters corresponding to the target application in the running memory of the mobile terminal is as follows:
所述移动终端获取用户针对所述目标应用设置的应用层级音效参数。其中,应用层级音效参数具是指用户为具体某一个应用设置的音效参数,移动终端使用该应用播放音频流时的音效即为设置的音效参数对应的音效。The mobile terminal obtains the application-level sound effect parameters set by the user for the target application. Wherein, the application-level sound effect parameters refer to the sound effect parameters set by the user for a specific application, and the sound effect when the mobile terminal uses the application to play the audio stream is the sound effect corresponding to the set sound effect parameters.
所述移动终端判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数;The mobile terminal determines whether the mobile terminal has created an application-level sound effect parameter corresponding to the target application;
若是,所述移动终端在所述移动终端的运行内存中加载所述应用层级音效参数。If yes, the mobile terminal loads the application-level sound effect parameters in the running memory of the mobile terminal.
若判断出所述移动终端未创建有所述目标应用对应的应用层级音效参数,则所述移动终端的运行内存中加载所述移动终端的全局音效参数。If it is determined that the mobile terminal has not created an application-level sound effect parameter corresponding to the target application, loading the global sound effect parameters of the mobile terminal into the running memory of the mobile terminal.
S103,所述移动终端在所述预设音效设置时段内检测到针对音频流的播放控制指令时,判断用于播放所述音频流的应用是否为所述目标应用;S103. When the mobile terminal detects a playback control instruction for the audio stream within the preset sound effect setting period, determine whether the application used to play the audio stream is the target application;
其中,所述播放控制指令例如可以是移动终端在检测到针对目标应用的音频流的选取操作的情况下生成的。具体的,所述移动终端检测针对音频流的播放控制指令的实现方式为为:Wherein, the playback control instruction may be generated, for example, when the mobile terminal detects an operation for selecting an audio stream of a target application. Specifically, the implementation manner of the mobile terminal detecting the playback control instruction for the audio stream is as follows:
所述移动终端当检测到针对所述移动终端的音频流的第一选取操作时,输出包含所述目标应用的播放器选取界面;When the mobile terminal detects a first selection operation for the audio stream of the mobile terminal, output a player selection interface including the target application;
所述移动终端当检测到针对所述播放器选取界面中的所述目标应用的第二选取操作时,生成针对所述音频流的播放控制指令。When the mobile terminal detects a second selection operation for the target application in the player selection interface, generate a playback control instruction for the audio stream.
所述音频流例如可以是提示音、背景音、歌曲、通话音等等。The audio stream may be, for example, a prompt sound, a background sound, a song, a call sound, and the like.
S104,所述移动终端若是,则从所述运行内存中读取所述参考音效参数,配置所述音频流的音效参数为所述参考音效参数,并播放所述音频流。S104. If yes, the mobile terminal reads the reference sound effect parameter from the running memory, configures the sound effect parameter of the audio stream as the reference sound effect parameter, and plays the audio stream.
可以看出,相对于现有技术中移动终端在播放音频流时才实时加载音效参数的方案,移动终端提前在运行内存中加载参考音效参数,并在检测到针对目标应用的音频流的播放控制指令、且播放音频流的应用为目标应用的情况下,从运行内存中读取参考音效参数,配置移动终端的音效参数为参考音效参数,并播放音频流。避免在音频流在播放过程中,移动终端的音效参数的加载操作占用内存资源被,从而有利于提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。It can be seen that, compared with the prior art solution in which the mobile terminal loads the sound effect parameters in real time when the audio stream is played, the mobile terminal loads the reference sound effect parameters in the running memory in advance, and detects the playback control command for the audio stream of the target application , and the application playing the audio stream is the target application, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the mobile terminal as the reference sound effect parameters, and play the audio stream. Avoiding the loading operation of the sound effect parameters of the mobile terminal from occupying memory resources during the playback of the audio stream, thereby improving the fluency of playing the audio stream of the mobile terminal, optimizing memory resource management, and improving user experience.
可选的,本发明一些实施例中,所述移动终端在检测到移动终端的系统时间处于预设音效设置时段时之前,还执行以下操作:Optionally, in some embodiments of the present invention, before the mobile terminal detects that the system time of the mobile terminal is within the preset sound effect setting period, it also performs the following operations:
所述移动终端获取所述移动终端的N个音频播放记录,所述音频播放记录包括播放音频流的应用和所述音频流的播放时间,N为大于1的整数;The mobile terminal acquires N audio playback records of the mobile terminal, the audio playback records include an application for playing an audio stream and the playback time of the audio stream, and N is an integer greater than 1;
所述移动终端根据所述N个音频播放记录中的音频流的播放时间,确定所述移动终端的M个音效设置时段,M为小于N的正整数;The mobile terminal determines M sound effect setting periods of the mobile terminal according to the playing time of the audio stream in the N audio playback records, and M is a positive integer less than N;
所述移动终端根据所述M个音效设置时段中每一个音效设置时段所包含的音频播放记录,确定所述每一个音效设置时段中使用时长或者使用频率或者使用次数最高的应用;The mobile terminal determines the application with the highest usage duration, frequency of use, or number of times of use in each sound effect setting period according to the audio playback records contained in each sound effect setting period of the M sound effect setting periods;
所述移动终端根据确定的所述使用时长或者使用频率最高的应用,以及对应的音频流的音效参数,建立所述音效设置时段和所述应用之间的映射关系。The mobile terminal establishes a mapping relationship between the sound effect setting period and the application according to the determined use duration or the application with the highest use frequency and the sound effect parameters of the corresponding audio stream.
与上述图1所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种音频流处理方法的流程示意图。如图所示,本音频流处理方法包括:Consistent with the above embodiment shown in FIG. 1 , please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another audio stream processing method provided by an embodiment of the present invention. As shown in the figure, the audio stream processing method includes:
S201,移动终端在检测到移动终端的系统时间处于预设音效设置时段时,根据预存的音效设置时段与所述移动终端的应用之间的映射关系,确定所述系统时间对应到目标应用;S201. When the mobile terminal detects that the system time of the mobile terminal is within the preset sound effect setting period, determine that the system time corresponds to the target application according to the mapping relationship between the pre-stored sound effect setting period and the application of the mobile terminal;
S202,所述移动终端获取用户针对所述目标应用设置的应用层级音效参数。S202. The mobile terminal obtains an application-level sound effect parameter set by a user for the target application.
S203,所述移动终端判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数;S203. The mobile terminal determines whether the mobile terminal has created an application-level sound effect parameter corresponding to the target application;
S204,若是,所述移动终端在所述移动终端的运行内存中加载所述应用层级音效参数。S204, if yes, the mobile terminal loads the application-level sound effect parameters in the running memory of the mobile terminal.
S205,所述移动终端在所述预设音效设置时段内检测到针对音频流的播放控制指令时,判断用于播放所述音频流的应用是否为所述目标应用;S205. When the mobile terminal detects a playback control instruction for the audio stream within the preset sound effect setting period, determine whether the application used to play the audio stream is the target application;
S206,若是,则所述移动终端从所述运行内存中读取所述参考音效参数,配置所述音频流的音效参数为所述参考音效参数,并播放所述音频流。S206. If yes, the mobile terminal reads the reference sound effect parameter from the running memory, configures the sound effect parameter of the audio stream as the reference sound effect parameter, and plays the audio stream.
可以看出,相对于现有技术中移动终端在播放音频流时才实时加载音效参数的方案,移动终端提前在运行内存中加载参考音效参数,并在检测到针对目标应用的音频流的播放控制指令、且播放音频流的应用为目标应用的情况下,从运行内存中读取参考音效参数,配置移动终端的音效参数为参考音效参数,并播放音频流。避免在音频流在播放过程中,移动终端的音效参数的加载操作占用内存资源被,从而有利于提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。It can be seen that, compared with the prior art solution in which the mobile terminal loads the sound effect parameters in real time when the audio stream is played, the mobile terminal loads the reference sound effect parameters in the running memory in advance, and detects the playback control command for the audio stream of the target application , and the application playing the audio stream is the target application, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the mobile terminal as the reference sound effect parameters, and play the audio stream. Avoiding the loading operation of the sound effect parameters of the mobile terminal from occupying memory resources during the playback of the audio stream, thereby improving the fluency of playing the audio stream of the mobile terminal, optimizing memory resource management, and improving user experience.
与上述图1和图2所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种音频流处理方法的流程示意图。如图所示,本音频流处理方法包括:Consistent with the above embodiments shown in FIG. 1 and FIG. 2 , please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another audio stream processing method provided by an embodiment of the present invention. As shown in the figure, the audio stream processing method includes:
S301,移动终端在检测到移动终端的系统时间处于预设音效设置时段时,根据预存的音效设置时段与所述移动终端的应用之间的映射关系,确定所述系统时间对应到目标应用;S301. When the mobile terminal detects that the system time of the mobile terminal is within a preset sound effect setting period, determine that the system time corresponds to a target application according to the mapping relationship between the prestored sound effect setting period and the application of the mobile terminal;
S302,所述移动终端获取用户针对所述目标应用设置的应用层级音效参数。S302. The mobile terminal obtains an application-level sound effect parameter set by a user for the target application.
S303,所述移动终端判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数;S303. The mobile terminal determines whether the mobile terminal has created an application-level sound effect parameter corresponding to the target application;
S304,若判断出所述移动终端未创建有所述目标应用对应的应用层级音效参数,则所述移动终端的运行内存中加载所述移动终端的全局音效参数;S304. If it is determined that the mobile terminal has not created an application-level sound effect parameter corresponding to the target application, load the global sound effect parameters of the mobile terminal into the running memory of the mobile terminal;
S305,所述移动终端在所述预设音效设置时段内检测到针对音频流的播放控制指令时,判断用于播放所述音频流的应用是否为所述目标应用;S305. When the mobile terminal detects a playback control instruction for the audio stream within the preset sound effect setting period, determine whether the application used to play the audio stream is the target application;
S306,若是,则所述移动终端从所述运行内存中读取所述参考音效参数,配置所述音频流的音效参数为所述参考音效参数,并播放所述音频流。S306. If yes, the mobile terminal reads the reference sound effect parameter from the running memory, configures the sound effect parameter of the audio stream as the reference sound effect parameter, and plays the audio stream.
可以看出,相对于现有技术中移动终端在播放音频流时才实时加载音效参数的方案,移动终端提前在运行内存中加载参考音效参数,并在检测到针对目标应用的音频流的播放控制指令、且播放音频流的应用为目标应用的情况下,从运行内存中读取参考音效参数,配置移动终端的音效参数为参考音效参数,并播放音频流。避免在音频流在播放过程中,移动终端的音效参数的加载操作占用内存资源被,从而有利于提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。It can be seen that, compared with the prior art solution in which the mobile terminal loads the sound effect parameters in real time when the audio stream is played, the mobile terminal loads the reference sound effect parameters in the running memory in advance, and detects the playback control command for the audio stream of the target application , and the application playing the audio stream is the target application, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the mobile terminal as the reference sound effect parameters, and play the audio stream. Avoiding the loading operation of the sound effect parameters of the mobile terminal from occupying memory resources during the playback of the audio stream, thereby improving the fluency of playing the audio stream of the mobile terminal, optimizing memory resource management, and improving user experience.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。如图4所示,该移动终端可以包括目标应用确定单元401、参数加载单元402、判断单元403以及播放控制单元404,其中:The following are device embodiments of the present invention, and the device embodiments of the present invention are used to execute the methods implemented by the method embodiments of the present invention. As shown in FIG. 4, the mobile terminal may include a target application determining unit 401, a parameter loading unit 402, a judging unit 403, and a playback control unit 404, wherein:
所述目标应用确定单元401,用于在检测到移动终端的系统时间处于预设音效设置时段时,根据预存的音效设置时段与所述移动终端的应用之间的映射关系,确定所述系统时间对应到目标应用;The target application determining unit 401 is configured to determine the system time according to the mapping relationship between the pre-stored sound effect setting period and the application of the mobile terminal when it is detected that the system time of the mobile terminal is within the preset sound effect setting period corresponding to the target application;
所述参数加载单元402,用于在所述移动终端的运行内存中加载所述目标应用对应的参考音效参数;The parameter loading unit 402 is configured to load reference sound effect parameters corresponding to the target application in the running memory of the mobile terminal;
所述判断单元403,用于在所述预设音效设置时段内检测到针对音频流的播放控制指令时,判断用于播放所述音频流的应用是否为所述目标应用;The judging unit 403 is configured to judge whether the application used to play the audio stream is the target application when a playback control instruction for the audio stream is detected within the preset sound effect setting period;
所述播放控制单元404,用于若是,则从所述运行内存中读取所述参考音效参数,配置所述音频流的音效参数为所述参考音效参数,并播放所述音频流。The playback control unit 404 is configured to, if yes, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the audio stream as the reference sound effect parameters, and play the audio stream.
可选的,所述参数加载单元402用于:Optionally, the parameter loading unit 402 is used for:
判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数;judging whether the mobile terminal has created an application-level sound effect parameter corresponding to the target application;
若是,在所述移动终端的运行内存中加载所述应用层级音效参数。If so, loading the application-level sound effect parameters into the running memory of the mobile terminal.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
参数获取单元,用于在所述判断单元判断所述移动终端是否创建有所述目标应用对应的应用层级音效参数之前,获取用户针对所述目标应用设置的应用层级音效参数。The parameter acquiring unit is configured to acquire the application-level sound effect parameters set by the user for the target application before the judging unit judges whether the mobile terminal has created the application-level sound effect parameters corresponding to the target application.
可选的,所述参数加载单元402还用于:Optionally, the parameter loading unit 402 is also used for:
若判断出所述移动终端未创建有所述目标应用对应的应用层级音效参数,则所述移动终端的运行内存中加载所述移动终端的全局音效参数。If it is determined that the mobile terminal has not created an application-level sound effect parameter corresponding to the target application, loading the global sound effect parameters of the mobile terminal into the running memory of the mobile terminal.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
播放记录获取单元,用于在所述目标应用确定单元在检测到移动终端的系统时间处于预设音效设置时段时之前,获取所述移动终端的N个音频播放记录,所述音频播放记录包括播放音频流的应用和所述音频流的播放时间,N为大于1的整数;A playback record acquisition unit, configured to acquire N audio playback records of the mobile terminal before the target application determination unit detects that the system time of the mobile terminal is in the preset sound effect setting period, the audio playback records include playback The application of the audio stream and the playing time of the audio stream, N is an integer greater than 1;
设置时段确定单元,用于根据所述N个音频播放记录中的音频流的播放时间,确定所述移动终端的M个音效设置时段,M为小于N的正整数;The setting period determination unit is used to determine the M sound effect setting periods of the mobile terminal according to the playing time of the audio stream in the N audio playback records, and M is a positive integer less than N;
应用确定单元,用于根据所述M个音效设置时段中每一个音效设置时段所包含的音频播放记录,确定所述每一个音效设置时段中使用时长或者使用频率或者使用次数最高的应用;An application determination unit, configured to determine the application with the highest usage duration, frequency of use, or number of times of use in each sound effect setting period according to the audio playback records contained in each sound effect setting period of the M sound effect setting periods;
关系建立单元,用于根据确定的所述使用时长或者使用频率最高的应用,以及对应的音频流的音效参数,建立所述音效设置时段和所述应用之间的映射关系。The relationship establishing unit is configured to establish a mapping relationship between the sound effect setting period and the application according to the determined application duration or the application with the highest frequency of use, and the corresponding sound effect parameters of the audio stream.
可选的,所述参考音效参数包括以下参数中的至少一种:Optionally, the reference sound effect parameters include at least one of the following parameters:
压缩Compress参数、箱头模拟Amp-Type参数、低音均衡EQ_Bass参数、中音均衡EQ_Mid参数、高音均衡EQ_Treble参数、噪音门Noise_Gate参数。Compression Compression parameter, Amp-Type parameter of amp simulation, bass equalization EQ_Bass parameter, midrange equalization EQ_Mid parameter, treble equalization EQ_Treble parameter, noise gate Noise_Gate parameter.
需要注意的是,本发明装置实施例所描述的移动终端是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the mobile terminal described in the device embodiment of the present invention is presented in the form of a functional unit. The term "unit" used here should be understood as the broadest meaning possible. The object used to realize the functions described by each "unit" can be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware Processors (shared, dedicated, or chipsets) and memories of programs, combinational logic circuits, and/or other suitable components that provide the functions described above.
举例来说,上述参数加载单元401加载音效参数的功能可以由图5所示的移动终端来实现,具体可以通过处理器101通过调用存储器102中的可执行程序代码,在移动终端的运行内存中加载音效参数。For example, the above-mentioned function of loading sound effect parameters by the parameter loading unit 401 can be realized by the mobile terminal shown in FIG. Load sound effect parameters.
可以看出,相对于现有技术中移动终端在播放音频流时才实时加载音效参数的方案,移动终端提前在运行内存中加载参考音效参数,并在检测到针对目标应用的音频流的播放控制指令、且播放音频流的应用为目标应用的情况下,从运行内存中读取参考音效参数,配置移动终端的音效参数为参考音效参数,并播放音频流。避免在音频流在播放过程中,移动终端的音效参数的加载操作占用内存资源被,从而有利于提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。It can be seen that, compared with the prior art solution in which the mobile terminal loads the sound effect parameters in real time when the audio stream is played, the mobile terminal loads the reference sound effect parameters in the running memory in advance, and detects the playback control command for the audio stream of the target application , and the application playing the audio stream is the target application, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the mobile terminal as the reference sound effect parameters, and play the audio stream. Avoiding the loading operation of the sound effect parameters of the mobile terminal from occupying memory resources during the playback of the audio stream, thereby improving the fluency of playing the audio stream of the mobile terminal, optimizing memory resource management, and improving user experience.
本发明实施例还提供了另一种移动终端,如图5所示,包括:处理器101,存储器102,通信接口103、通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本发明方法实施例中具体披露的音频流处理方法,包括以下步骤:The embodiment of the present invention also provides another mobile terminal, as shown in FIG. 5 , including: a processor 101, a memory 102, a communication interface 103, and a communication bus 104; wherein, the processor 101, the memory 102, and the communication interface 103 communicate Bus 104 is connected and completes mutual communication; Processor 101 controls the wireless communication with external cellular network through communication interface 103; Communication interface 103 includes but not limited to antenna, amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low noise amplifier), duplexer, etc. The memory 102 includes at least one of the following: random access memory, non-volatile memory, and external memory, and executable program code is stored in the memory 102, and the executable program code can guide the processor 101 to execute the method embodiment of the present invention The audio stream processing method specifically disclosed in includes the following steps:
所述处理器101在检测到移动终端的系统时间处于预设音效设置时段时,根据预存的音效设置时段与所述移动终端的应用之间的映射关系,确定所述系统时间对应到目标应用;When the processor 101 detects that the system time of the mobile terminal is in the preset sound effect setting period, according to the mapping relationship between the pre-stored sound effect setting period and the application of the mobile terminal, determine that the system time corresponds to the target application;
所述处理器101在所述移动终端的运行内存中加载所述目标应用对应的参考音效参数;The processor 101 loads reference sound effect parameters corresponding to the target application in the running memory of the mobile terminal;
所述处理器101在所述预设音效设置时段内检测到针对音频流的播放控制指令时,判断用于播放所述音频流的应用是否为所述目标应用;When the processor 101 detects a playback control instruction for the audio stream within the preset sound effect setting period, it determines whether the application used to play the audio stream is the target application;
若是,则所述处理器101从所述运行内存中读取所述参考音效参数,配置所述音频流的音效参数为所述参考音效参数,并播放所述音频流。If yes, the processor 101 reads the reference sound effect parameter from the running memory, configures the sound effect parameter of the audio stream as the reference sound effect parameter, and plays the audio stream.
可以看出,相对于现有技术中移动终端在播放音频流时才实时加载音效参数的方案,移动终端提前在运行内存中加载参考音效参数,并在检测到针对目标应用的音频流的播放控制指令、且播放音频流的应用为目标应用的情况下,从运行内存中读取参考音效参数,配置移动终端的音效参数为参考音效参数,并播放音频流。避免在音频流在播放过程中,移动终端的音效参数的加载操作占用内存资源被,从而有利于提升移动终端的音频流播放的流畅度,优化内存资源管理,提升用户体验。It can be seen that, compared with the prior art solution in which the mobile terminal loads the sound effect parameters in real time when the audio stream is played, the mobile terminal loads the reference sound effect parameters in the running memory in advance, and detects the playback control command for the audio stream of the target application , and the application playing the audio stream is the target application, read the reference sound effect parameters from the running memory, configure the sound effect parameters of the mobile terminal as the reference sound effect parameters, and play the audio stream. Avoiding the loading operation of the sound effect parameters of the mobile terminal from occupying memory resources during the playback of the audio stream, thereby improving the fluency of playing the audio stream of the mobile terminal, optimizing memory resource management, and improving user experience.
本发明实施例还提供了另一种移动终端,如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention also provides another mobile terminal, as shown in Figure 6, for the convenience of description, only the parts related to the embodiment of the present invention are shown, and for specific technical details not disclosed, please refer to the method of the embodiment of the present invention part. The mobile terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the mobile terminal as a mobile phone as an example:
图6示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(WirelessFidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 6 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention. Referring to FIG. 6 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WirelessFidelity, WiFi) module 970, a processor 980, And power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图6对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 6:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division MultipleAccess,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(ShortMessaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Generally, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 910 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (Short Messaging Service, SMS), etc.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(音频参数加载功能、音频流播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如全局音效参数、应用层级音效参数等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (audio parameter loading function, audio stream playback function, etc.), etc.; the storage data area can store Data created according to the use of the mobile phone (such as global sound effect parameters, application-level sound effect parameters, etc.), etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。可选的,指纹识别模组931可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组931为电容式指纹识别模组为例,具体包括感应电极(异常感应电极和正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint identification module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. Optionally, the fingerprint identification module 931 may include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. Taking the fingerprint identification module 931 as an example of a capacitive fingerprint identification module, it specifically includes sensing electrodes (abnormal sensing electrodes and normal sensing electrodes) and signal processing circuits (such as amplification circuits, noise suppression circuits, analog sensing electrodes) connected to the sensing electrodes. number conversion circuits, etc.). In addition to the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图6中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和播放功能。The display unit 940 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Optionally, the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Although in FIG. 6, the fingerprint identification module 931 and the display screen 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the fingerprint identification module 931 and the display screen 941 can be Integrated to realize the input and playback functions of the mobile phone.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display screen 941 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the loudspeaker 961, and the loudspeaker 961 converts it into a sound signal for playback; After being received, it is converted into audio data, and after being processed by the audio data playback processor 980, the audio data is sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although FIG. 6 shows a WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 920, and calling data stored in the memory 920, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that, the foregoing modem processor may not be integrated into the processor 980 .
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 980 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
前述图1、图2和图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 1 , FIG. 2 and FIG. 3 , the method flow of each step can be realized based on the structure of the mobile phone.
前述图4所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 4 , the functions of each unit can be realized based on the structure of the mobile phone.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种音频流处理方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, some or all steps of any audio stream processing method described in the above method embodiments are included.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610438869.3ACN105959483B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method and mobile terminal |
| CN201810077886.8ACN108377290B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method, mobile terminal and media product |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610438869.3ACN105959483B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method and mobile terminal |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810077886.8ADivisionCN108377290B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method, mobile terminal and media product |
| Publication Number | Publication Date |
|---|---|
| CN105959483Atrue CN105959483A (en) | 2016-09-21 |
| CN105959483B CN105959483B (en) | 2018-02-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810077886.8AExpired - Fee RelatedCN108377290B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method, mobile terminal and media product |
| CN201610438869.3AExpired - Fee RelatedCN105959483B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method and mobile terminal |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810077886.8AExpired - Fee RelatedCN108377290B (en) | 2016-06-16 | 2016-06-16 | An audio stream processing method, mobile terminal and media product |
| Country | Link |
|---|---|
| CN (2) | CN108377290B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106354471A (en)* | 2016-09-29 | 2017-01-25 | 北京小米移动软件有限公司 | Method and device for audio play control and electronic device |
| CN107197101A (en)* | 2017-06-23 | 2017-09-22 | 努比亚技术有限公司 | Audio regulation method, mobile terminal and computer-readable recording medium |
| CN108664278A (en)* | 2017-03-27 | 2018-10-16 | 上海传英信息技术有限公司 | Start the method and device of audio for communication terminal application module |
| CN114546325A (en)* | 2020-11-24 | 2022-05-27 | 华为技术有限公司 | Audio processing method, electronic device and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108377290B (en)* | 2016-06-16 | 2021-06-01 | Oppo广东移动通信有限公司 | An audio stream processing method, mobile terminal and media product |
| CN109271128A (en)* | 2018-09-04 | 2019-01-25 | Oppo广东移动通信有限公司 | Audio setting method, device, electronic equipment and storage medium |
| CN111782865B (en)* | 2020-06-23 | 2024-07-05 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio information processing method, device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050204125A1 (en)* | 2004-03-12 | 2005-09-15 | Cheng-Hao Chin | Method for automatically changing the hardware settings of a computer in accordance with an executing application program |
| CN1728234A (en)* | 2004-07-30 | 2006-02-01 | 英业达股份有限公司 | Sound control system and method |
| CN103646656A (en)* | 2013-11-29 | 2014-03-19 | 腾讯科技(成都)有限公司 | Sound effect processing method, sound effect processing device, plug-in manager and sound effect plug-in |
| CN105426218A (en)* | 2015-12-10 | 2016-03-23 | 小米科技有限责任公司 | Method and device for controlling audio playing |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9189252B2 (en)* | 2011-12-30 | 2015-11-17 | Microsoft Technology Licensing, Llc | Context-based device action prediction |
| KR20150006614A (en)* | 2013-07-09 | 2015-01-19 | 에스케이하이닉스 주식회사 | Data storage device and operating method thereof |
| CN105022297B (en)* | 2015-07-09 | 2017-10-31 | 广东欧珀移动通信有限公司 | A kind of sound box parameter collocation method, mobile terminal |
| CN108377290B (en)* | 2016-06-16 | 2021-06-01 | Oppo广东移动通信有限公司 | An audio stream processing method, mobile terminal and media product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050204125A1 (en)* | 2004-03-12 | 2005-09-15 | Cheng-Hao Chin | Method for automatically changing the hardware settings of a computer in accordance with an executing application program |
| CN1728234A (en)* | 2004-07-30 | 2006-02-01 | 英业达股份有限公司 | Sound control system and method |
| CN103646656A (en)* | 2013-11-29 | 2014-03-19 | 腾讯科技(成都)有限公司 | Sound effect processing method, sound effect processing device, plug-in manager and sound effect plug-in |
| CN105426218A (en)* | 2015-12-10 | 2016-03-23 | 小米科技有限责任公司 | Method and device for controlling audio playing |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106354471A (en)* | 2016-09-29 | 2017-01-25 | 北京小米移动软件有限公司 | Method and device for audio play control and electronic device |
| CN108664278A (en)* | 2017-03-27 | 2018-10-16 | 上海传英信息技术有限公司 | Start the method and device of audio for communication terminal application module |
| CN107197101A (en)* | 2017-06-23 | 2017-09-22 | 努比亚技术有限公司 | Audio regulation method, mobile terminal and computer-readable recording medium |
| CN114546325A (en)* | 2020-11-24 | 2022-05-27 | 华为技术有限公司 | Audio processing method, electronic device and readable storage medium |
| WO2022111381A1 (en)* | 2020-11-24 | 2022-06-02 | 华为技术有限公司 | Audio processing method, electronic device and readable storage medium |
| CN114546325B (en)* | 2020-11-24 | 2024-04-16 | 华为技术有限公司 | Audio processing method, electronic device, and readable storage medium |
| Publication number | Publication date |
|---|---|
| CN105959483B (en) | 2018-02-27 |
| CN108377290A (en) | 2018-08-07 |
| CN108377290B (en) | 2021-06-01 |
| Publication | Publication Date | Title |
|---|---|---|
| US10649720B2 (en) | Sound effect configuration method and system and related device | |
| CN106126176B (en) | A kind of audio collocation method and mobile terminal | |
| CN105959483B (en) | An audio stream processing method and mobile terminal | |
| CN106126159B (en) | Audio stream processing method and mobile terminal | |
| CN110633067B (en) | Method for adjusting sound effect parameters and mobile terminal | |
| CN106126172B (en) | A sound effect processing method and mobile terminal | |
| CN105933537B (en) | A kind of volume processing method and user terminal | |
| CN106126165B (en) | A kind of audio stream processing method and mobile terminal | |
| CN106095385A (en) | A sound effect setting method and mobile terminal | |
| WO2018049934A1 (en) | Data migration method and terminals | |
| CN106714103A (en) | Network location method and terminal equipment | |
| WO2018103443A1 (en) | Network positioning method and terminal device | |
| CN106126170B (en) | Sound effect setting method of terminal and terminal | |
| CN108415863A (en) | Hardware compatible implementation method of electronic device and related product | |
| CN107707642A (en) | Brush amount terminal determines method and device | |
| CN106686428A (en) | A video playback method and device | |
| CN106126166A (en) | Method and terminal for sound effect processing | |
| CN106024034B (en) | A kind of method and terminal of adjustment audio | |
| CN106534525A (en) | Call recording method and mobile terminal | |
| CN106550143A (en) | A mode switching method and mobile terminal | |
| CN106686695B (en) | Data processing method and terminal equipment | |
| CN106802829A (en) | Resource management method and device | |
| CN112199245A (en) | Mobile terminal screen detection method, system, storage medium and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20180227 |